Template:Barnstar documentation and Template:Barnstar documentation/sandbox: Difference between pages
(Difference between pages)
Content deleted Content added
link to the Barnstar page |
No edit summary |
||
Line 5: | Line 5: | ||
<h2>Usage</h2> |
<h2>Usage</h2> |
||
{{#if:{{{usage|}}}|{{{usage}}}| |
{{#if:{{{usage|}}}|{{{usage}}}| |
||
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 |
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 {{#tag:syntaxhighlight|<nowiki>{{subst:</nowiki>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}{{#ifeq:{{{nomessage|}}}|yes||<nowiki>|1=</nowiki>Put your message here.{{#ifeq:{{{autosign|}}}|yes||<nowiki> ~~</nowiki><nowiki>~~</nowiki>}}}}<!-- end of nomessage if --><nowiki>}}</nowiki>|lang=wikitext|inline=1}} |
||
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>|2=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: |
||
{{#tag:syntaxhighlight|<nowiki>{{subst:</nowiki>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}<nowiki>|1=</nowiki>Put your message here.{{#ifeq:{{{autosign|}}}|yes||<nowiki> ~~</nowiki><nowiki>~~</nowiki>}}<nowiki>|2=alt}}</nowiki>|lang=wikitext|inline=1}}<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}} |