Template:NAX party
From MicrasWiki
Jump to navigationJump to search
[edit] []
Template documentation
This template renders the logo of a Nouvelle Alexandrie political party as a small inline icon, optionally followed by a link to the party's article. It is the party-and-logo counterpart of {{team flag}}, and is meant for tables, infoboxes, and running prose where a party needs to be shown compactly, such as the voting-record tables of enacted legislation.
The party is named by its abbreviation, which is not case-sensitive. Logo files and party colors are held in the companion data page {{NAX party/data}}; update that page when a party changes its logo or color, and every use updates with it.
Usage
{{NAX party|ABBREV}}: logo icon followed by the linked party name.{{NAX party|ABBREV|logo}}: logo icon only, with no trailing name.{{NAX party|ABBREV|swatch}}: a color swatch followed by the linked name, with no logo.{{NAX party|ABBREV|swatchlogo}}: a color swatch, then the logo, then the linked name.
Parameters
| Parameter | Effect |
|---|---|
1 (first) |
The party abbreviation. Required. One of the keys in the table below; case does not matter. |
2 (second) |
Display mode: leave empty for logo and name, or set to logo, swatch, or swatchlogo as above.
|
size= |
Overrides the logo size. Default x20px (twenty pixels tall). Give a full image-size token, for example size=x30px.
|
abbr=yes |
Uses the abbreviation instead of the full name as the label text. |
notext=yes |
Shows the logo only, with no label (same result as the logo mode).
|
nolink=yes |
Shows the label as plain text and removes the link from the logo. |
Party keys
| Key | Party |
|---|---|
DSP |
Democratic Socialist Party |
WPP |
Wakara People's Party |
CGA |
Civic Governance Alliance |
FCP (or FC) |
Federal Consensus Party |
FHP |
Federal Humanist Party |
RPO |
Republican Party of Oportia |
AJNA |
Alliance for a Just Nouvelle Alexandrie |
UfA |
United for Alvelo (dissolved 1753 AN) |
An unknown key returns a visible error message rather than a broken image.
Examples
| Markup | Result |
|---|---|
{{NAX party|DSP}} |
|
{{NAX party|FHP|logo}} |
|
{{NAX party|WPP|swatchlogo}} |
|
{{NAX party|CGA|swatch}} |
Civic Governance Alliance |
{{NAX party|FCP|abbr=yes}} |
See also
- {{team flag}}, the region-flag counterpart
- {{NAX party/data}}, the logo and color data behind this template
| The above documentation is transcluded from Template:NAX party/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |