https://bugzilla.wikimedia.org/show_bug.cgi?id=22297

--- Comment #6 from Conrad Irwin <conrad.ir...@gmail.com> 2010-01-29 22:37:01 
UTC ---
Created an attachment (id=7050)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?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
template}}</includeonly>

may be clearer than

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

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: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to