Template:BadgeBox/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
Badge data is automatically filled in from the badge's article.
{{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.
Additionally, you can supply the which= option to specify which of a set of disambig pages to refer to; the which= should refer to the parenthetical after the badge name.
{{BadgeBox|Badge Name|which=Type}}
Additionally, you can specify a width for the left using left=. You should provide a number, which will be treated as a width in pixels. This allows a series of badge boxes to line up well.
{{BadgeBox|Badge Name|left=number}}
Additionally, you can supply the monument= option to add additional information after the description, for instance the monument coordinates.
{{BadgeBox|Badge Name|monument=text}}
Limitation
BadgeBox may only be used once per badge if you're going to let it auto-detect the description. If you call the same badge twice on one page, the second one will get a page link instead of the description. (However, we shouldn't have multiple BadgeBoxes for a single badge on a page anyway.)
Examples
Here is an example template call for a badge:
- {{BadgeBox|Apex}}
This will output:
Apex tracked Dr. Vahzilok down to this location, but interference from the Circle of Thorns prevented him from capturing the mad scientist.
Here is an example with the which= option:
- {{BadgeBox|Resolute|which=Vet}}
This will output:
- Hero
- For 75 months in City of Heroes you will earn an additional 10% Prestige from defeating enemies.
- Villain
- For 75 months in City of Heroes you will earn an additional 10% Prestige from defeating enemies.
Here is an example using the left= option:
- {{BadgeBox|left=78|Top Dog}}
- {{BadgeBox|Atlas Tour Guide}}
This will output:
The top of Atlas' statue is the first place many flying heroes will go.
You've obtained this Accolade by earning every Exploration badge within Atlas Park.
Here is an example using the monument= option:
- {{BadgeBox|Intellectual|monument=* [[Intellectual Badge#Monument 1|Monument 1]] {{coords|2381|0|-1251}}}}
This will output:
You have learned the history of the Lost's attempt to control the minds of Paragon City's people.
- Monument 1 (2381, 0, -1251)