Difference between revisions of "Template:Badge Display/doc"
imported>BoonDock (→Usage: Fixed =) |
imported>GoingBatty m (typo(s) fixed: etc → etc. using AWB (11376)) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| + | |||
== Usage == | == Usage == | ||
Use this template by inserting the following: {{tlx|Badge Display|Short Code for Badge|display size}} | Use this template by inserting the following: {{tlx|Badge Display|Short Code for Badge|display size}} | ||
| Line 14: | Line 15: | ||
== Future == | == Future == | ||
| − | Having an if statement with parameters to allow the turning on or off of the ribbon display etc would be nice. | + | Having an if statement with parameters to allow the turning on or off of the ribbon display etc. would be nice. |
Latest revision as of 18:32, 5 September 2015
| This is a documentation subpage for Template:Badge Display. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Use this template by inserting the following: {{Badge Display|Short Code for Badge|display size}}
The first parameter must be the short code of the badge using the abbreviation from the list on the specific country page and the wikilinked name of the badge will be displayed, preceded by the image of the badge (if available).
The second, optional, param is the size that the image must be, for example 25px. The default size is 40px.
The default country is {{Badge Display/ZAR}}
To specify other countries, include the parameter country=YYY e.g. {{Badge Display|BRVS|country=XXX|100px}}
Issues
At this point, using these in a list causes the list to generate a new UL for each item. Corrections to fix this would be greatly appreciated.
Future
Having an if statement with parameters to allow the turning on or off of the ribbon display etc. would be nice.