Jump to content

Template:Barnstar documentation: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Noticed that I hadn't synchronized completely.
I just found out that the "|alt" does not work... BUT, the |2=alt" works!
Tag: Reverted
Line 9: Line 9:


{{#ifeq:{{{alt|}}}|yes
{{#ifeq:{{{alt|}}}|yes
|This barnstar has an alternate version.<br />To use, add <code><nowiki>|alt</nowiki></code> to the end:
|This barnstar has an alternate version.<br />To use, add <code><nowiki>|2=alt</nowiki></code> to the end:
<code><nowiki>{{subst:</nowiki>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}<nowiki>|1=</nowiki><var>Put your message here.</var>{{#ifeq:{{{autosign|}}}|yes||&#32;<nowiki>~~</nowiki><nowiki>~~</nowiki>}}<nowiki>|alt}}</nowiki></code><br>
<code><nowiki>{{subst:</nowiki>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}<nowiki>|1=</nowiki><var>Put your message here.</var>{{#ifeq:{{{autosign|}}}|yes||&#32;<nowiki>~~</nowiki><nowiki>~~</nowiki>}}<nowiki>|2=alt}}</nowiki></code><br>
Which produces:
Which produces:
{{ {{FULLPAGENAME}}|put your message here <nowiki>~~</nowiki><nowiki>~~</nowiki>|alt}}
{{ {{FULLPAGENAME}}|put your message here <nowiki>~~</nowiki><nowiki>~~</nowiki>|2=alt}}
[[Category:Wikipedia barnstar templates with alternative versions]]
[[Category:Wikipedia barnstar templates with alternative versions]]
}}<!-- end of alt if -->
}}<!-- end of alt if -->

Revision as of 14:05, 4 February 2021