Template:BadgeBox: Difference between revisions
imported>Sekoia m (temporary tweak so that I can find certain pages...) |
imported>Sekoia |
||
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> | |}</div></includeonly><noinclude>__NOTOC__ | ||
==Overview== | ==Overview== | ||
This template is used to generate a badge box for displaying the badge graphic, badge name, and badge description for a badge. | This template is used to generate a badge box for displaying the badge graphic, badge name, and badge description for a badge. |
Revision as of 09:18, 5 August 2007
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:
{{BadgeBox|Image.png|Badge Name|Description}}
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.)
{{BadgeBox|Image.png|Badge Name}}
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 {{Image}} template. (If either do not exist, an error occurs.)
{{BadgeBox|Badge Name}}
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:
- {{BadgeBox|badge_stature_03.png|Plague Stopper|Custom description.}}
This will output:
Plague Stopper Template:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit. |
Here is an example template call for a badge, using the automatic description:
- {{BadgeBox|badge_stature_03.png|Plague Stopper}}
This will output:
Plague Stopper Template:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit. |
Here is an example template call for a badge, using the automatic description and image:
- {{BadgeBox|Plague Stopper}}
This will output:
Plague Stopper You were key in stopping a plague from overtaking Paragon City. |
Here is an example template call showing how to suppress the description completely:
- {{BadgeBox|badge_stature_03.png|Plague Stopper|3= }}
This will output:
Plague Stopper Template:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit. |