Jump to content

Template:Barnstar documentation: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m fix typo (extraneous | breaks the if)
link to the Barnstar page
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{Documentation
<includeonly>{{Documentation
| content =
| content =
{{#ifeq:{{{autosubst|}}}|yes|{{Subst only|auto=yes}}|{{Subst only}}}}
{{substituted}}
{{#if:{{{header|}}}|
{{#if:{{{header|}}}|{{{header|}}}}}{{#if:{{{for|}}}|<h2>Criteria</h2>{{{for|}}}}}
<h2>Usage</h2>
{{{header|}}}}}{{#if:{{{for|}}}|
== Criteria ==
{{{for|}}}}}
== Usage ==
{{#if:{{{usage|}}}|{{{usage}}}|
{{#if:{{{usage|}}}|{{{usage}}}|
To use this template, add <code><nowiki>{{subst:</nowiki>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}{{#ifeq:{{{nomessage|}}}|yes||<nowiki>|1=</nowiki><var>Put your message here.</var>{{#ifeq:{{{autosign|}}}|yes||&#32;<nowiki>~~</nowiki><nowiki>~~</nowiki>}}}}<!-- end of nomessage if --><nowiki>}}</nowiki></code>
To use this [[WP:Barnstars|Barnstar]] template, create a new section on the user talkpage of the user you want to give the award to, and add <code><nowiki>{{subst:</nowiki>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}{{#ifeq:{{{nomessage|}}}|yes||<nowiki>|1=</nowiki><var>Put your message here.</var>{{#ifeq:{{{autosign|}}}|yes||&#32;<nowiki>~~</nowiki><nowiki>~~</nowiki>}}}}<!-- end of nomessage if --><nowiki>}}</nowiki></code>
to the talk page of the user to whom you wish to award it.
to the talk page of the user to whom you wish to award it.


{{#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>|</nowiki>put your message here{{#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>|alt}}
[[Category:Wikipedia barnstar templates with alternative versions]]
}}<!-- end of alt if -->
}}<!-- end of alt if -->
}}<!-- end of usage if -->
}}<!-- end of usage if -->
Line 41: Line 37:
}}<!-- closing tag of [[Template:Documentation]]
}}<!-- closing tag of [[Template:Documentation]]


categorization -->{{Sandbox other||{{#if:{{yesno|{{{nocat|{{{nocats|no}}}}}}}}|<!--
categorization -->{{#ifeq:{{{nocats|no}}}|yes | |{{#ifeq:{{{alt|}}}|yes |[[Category:Wikipedia barnstar templates with alternative versions]] |[[Category:{{{cat|Wikipedia barnstar templates}}}]]}} }}</includeonly><noinclude>
explicit nocat=yes -->|<!--
top-level categories-->{{#ifeq:{{{alt|}}}|yes|[[Category:Wikipedia barnstar templates with alternative versions]]|{{#if:{{{cat|}}}|<!--more specific below-->|[[Category:Wikipedia barnstar templates]]}}}}<!--
parameter "cat"-->{{#if:{{{cat|}}}|[[Category:{{{cat|}}}]]}}<!--
closing of the nocat if-->}}<!-- /sandbox other -->}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:44, 4 December 2021