--- Comment #6 from Conrad Irwin <> 2010-01-29 22:37:01 
UTC ---
Created an attachment (id=7050)
 --> (
A "for interest" patch implementing {{subst}}

This is an alternative solution, instead of having subst: and safesubst:, we
have subst: and {{subst}}. 

{{subst}} is a magic word that is automatically substituted (i.e.
{{subst:subst}} == {{subst}}) and which returns "subst:" during the PST and ""
thereafter. The `problem` with this is that it feels too "magic"; I don't
expect things to substitute themselves unless they are prefixed by subst:
(obviously if the patch were changed to require {{subst:subst}} to be used
intstead of {{subst}}, the "magic" happens in the other direction). - maybe
this isn't so much of a problem?

<includeonly>{{{{subst}}#if:{{subst}}||Please substitute this

may be clearer than

<includeonly>{{safesubst:#if:{{subst:ns:0}}||Please substitute this template}}

In the examples above, "safesubst:" may be replaced directly by "{{subst}}" and
preserve the intended meaning; however I feel sticking to an alternative prefix
is more consistent.

(Sorry Voyagerfan, I'll just let it lie)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

Wikibugs-l mailing list

Reply via email to