Difference between revisions of "Template:Award"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(doc)
imported>Mabdul
(placing documentation to an extra page otherwise the content won't be displayed correctly)
Line 1: Line 1:
[[Image:{{{image}}}|left|{{#if:{{{size|}}}|{{{size}}}|100px}}]]{{{text}}}<noinclude>{{doc|content=
+
[[File:{{{image}}}|left|{{#if:{{{size|}}}|{{{size}}}|100px}}]]{{{text}}}<noinclude>
 
+
{{Documentation}}
&#123;&#123;[[Template:Award|award]]&#125;&#125;&#32;&mdash; Gives an award to a person
+
</noinclude>
 
 
<!-- explain what this template does; use it in a sentence -->
 
 
 
== Usage ==
 
<!-- Abstract usage of the template, one variable per row. -->
 
<pre>
 
{{subst:Award
 
  |image=the image to use, defaults to Barnstar.png
 
  |size=The size of the image, defaults to 100px
 
  |topic=The topic for the barnstar, default to "An Award"
 
  |text=The description of the award
 
  |color=The background color of the box, default to #fdffe7
 
}}
 
</pre>
 
 
 
<!-- explain what this template's parameters do -- if no params, delete the definition -->
 
 
 
== Example ==
 
{| class="wikitable"
 
! Code
 
! Result
 
|- style="vertical-align:top;"
 
| <pre>
 
{{subst:Award
 
  |topic=The Barnstar of Good Humor
 
  |image=Barnstar of Humour3.png
 
  |text=The Barnstar of Good Humor
 
may be awarded to
 
particularly light-spirited
 
Wikipedians who, by their
 
unshakably good humor,
 
consistently and reliably
 
lighten the mood, defuse conflicts,
 
and make the Wikipedia a generally
 
better place to be.
 
}}
 
</pre>
 
|[[Image:Barnstar of Humour3.png|left|frame|The Barnstar of Good Humor may be awarded to particularly light-spirited Wikipedians who, by their unshakably good humor, consistently and reliably lighten the mood, defuse conflicts, and make the Wikipedia a generally better place to be.]]
 
|}
 
 
 
[[Category:Wikipedia award templates|{{PAGENAME}}]]
 
 
 
}}</noinclude>
 

Revision as of 15:26, 30 April 2012

[[File:{{{image}}}|left|100px]]{{{text}}}

Script error: No such module "about". {{award}} — Gives an award to a person


Usage

{{subst:Award
  |image=the image to use, defaults to Barnstar.png
  |size=The size of the image, defaults to 100px
  |topic=The topic for the barnstar, default to "An Award"
  |text=The description of the award
  |color=The background color of the box, default to #fdffe7
}}

Example

Code Result
{{subst:Award
  |width=250
  |topic=The Barnstar of Good Humor
  |image=Barnstar of Humour3.png
  |text=The Barnstar of Good Humor may be
awarded to particularly light-spirited
Wikipedians who, by their unshakably
good humor, consistently and reliably
lighten the mood, defuse conflicts,
and make the Wikipedia a
generally better place to be.}}
Barnstar of Humour3.png
The Barnstar of Good Humor may be awarded to particularly light-spirited Wikipedians who, by their unshakably good humor, consistently and reliably lighten the mood, defuse conflicts, and make the Wikipedia a generally better place to be.