|
|
Line 8: |
Line 8: |
| {{!}} style="width:100%; padding: 0.25em;" {{!}} '''[[{{{1}}} Badge|{{{1}}}]]'''<br> | | {{!}} style="width:100%; padding: 0.25em;" {{!}} '''[[{{{1}}} Badge|{{{1}}}]]'''<br> |
| {{#dpl: title={{{1}}} Badge | includepage=#Description}}}} | | {{#dpl: title={{{1}}} Badge | includepage=#Description}}}} |
− | |}</div></includeonly><noinclude>__NOTOC__ | + | |}</div></includeonly><noinclude>{{{{PAGENAME}}/Doc}} |
− | ==Overview==
| + | |
− | This template is used to generate a badge box for displaying the badge graphic, badge name, and badge description for a badge.
| + | |
− | ==Usage==
| + | |
− | There are three ways to use this template.
| + | |
− | | + | |
− | The first way is to specify the graphic, the badge name, and the badge description as thus:
| + | |
− | | + | |
− | <nowiki>{{BadgeBox|Image.png|Badge Name|Description}}</nowiki>
| + | |
− | | + | |
− | The second way is to omit the description. If the description is omitted, the description will automatically be filled in from the badge's article using the section titled "Description". (If there is no such section, an error occurs.)
| + | |
− | | + | |
− | <nowiki>{{BadgeBox|Image.png|Badge Name}}</nowiki>
| + | |
− | | + | |
− | The third way is to omit the graphic and the description. If omitted, they will both be automatically filled in from the badge's article using the section titled "Description" and the image displayed through the {{tl|Image}} template. (If either do not exist, an error occurs.)
| + | |
− | | + | |
− | <nowiki>{{BadgeBox|Badge Name}}</nowiki>
| + | |
− | | + | |
− | Note that some badges have a different graphic and/or a different description for heroes and villains. Most badges will work fine automatically (once set up), but some may require additional parameters to get the exact effect you want.
| + | |
− | | + | |
− | ==Examples==
| + | |
− | Here is an example template call for a badge, providing a custom description:
| + | |
− | :<nowiki>{{BadgeBox|badge_stature_03.png|Plague Stopper|Custom description.}}</nowiki>
| + | |
− | | + | |
− | This will output:
| + | |
− | {{BadgeBox|badge_stature_03.png|Plague Stopper|Custom description.}}
| + | |
− | | + | |
− | | + | |
− | Here is an example template call for a badge, using the automatic description:
| + | |
− | : <nowiki>{{BadgeBox|badge_stature_03.png|Plague Stopper}}</nowiki>
| + | |
− | | + | |
− | This will output:
| + | |
− | {{BadgeBox|badge_stature_03.png|Plague Stopper}}
| + | |
− | | + | |
− | | + | |
− | Here is an example template call for a badge, using the automatic description and image:
| + | |
− | : <nowiki>{{BadgeBox|Plague Stopper}}</nowiki>
| + | |
− | | + | |
− | This will output:
| + | |
− | {{BadgeBox|Plague Stopper}}
| + | |
− | | + | |
− | | + | |
− | Here is an example template call showing how to suppress the description completely:
| + | |
− | : <nowiki>{{BadgeBox|badge_stature_03.png|Plague Stopper|3=&nbsp;}}</nowiki>
| + | |
− | | + | |
− | This will output:
| + | |
− | {{BadgeBox|badge_stature_03.png|Plague Stopper|3= }}
| + | |
− | | + | |
| [[Category:Templates]]</noinclude> | | [[Category:Templates]]</noinclude> |