Template:Emblem/doc: Difference between revisions
m (cat) |
m (removed cat sort) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Displays a small emblem (such as a seal, arms or flag) for a [[Factions|faction]], planetary government or similar entity. For ship logo picker, see [[Template:Logo]]. | Displays a small emblem (such as a seal, arms or flag) for a [[Factions|faction]], planetary government or similar entity. For ship logo picker, see [[Template:Logo]]. | ||
Line 13: | Line 11: | ||
<pre>{{Emblem | | variant = | link = | text = | size = | font size = | tstyle = }}</pre> | <pre>{{Emblem | | variant = | link = | text = | size = | font size = | tstyle = }}</pre> | ||
'''Unnamed parameter''' determines the emblem of which entity is shown. If the entity is not on the list or is spelled differently, a placeholder is displayed. Unless ''text'' or ''link'' parameters are used, the name of the entity is displayed as spelled in the unnamed parameter. | '''Unnamed parameter''' determines the emblem of which entity is shown. If the entity is not on the list or is spelled differently, a placeholder is displayed. Unless ''text'' or ''link'' parameters are used, the name of the entity is displayed as spelled in the unnamed parameter. Different capitalizations are accepted by the emblem picker, but not by the links, so be careful to check how the article name is spelled or create a redirect. Note also that some entities don't have articles written about them. '''Important:''' Be careful with species names! In some cases, the species name is also accepted for the entity name. Remember that not all members of a species serve or live in the same state. | ||
'''variant''' determines which variant of is used for the emblem if multiple exist. Some entities may have, for example, a grey variant, historical variants or flags. Unless determined, a default emblem is displayed. | '''variant''' determines which variant of is used for the emblem if multiple exist. Some entities may have, for example, a grey variant, historical variants or flags. Unless determined, a default emblem is displayed. | ||
Line 23: | Line 21: | ||
'''size''' determines the size of the emblem. Use standard wiki image size options. Defaults to 20x20px. | '''size''' determines the size of the emblem. Use standard wiki image size options. Defaults to 20x20px. | ||
'''font size''' determines the size of the text after the emblem. Use standard wiki font size options | '''font size''' determines the size of the text after the emblem. Use standard wiki font size options. | ||
'''tstyle''' allows further text formatting options. Use CSS. | '''tstyle''' allows further text formatting options. Use CSS. | ||
== List of recognized emblems == | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Entity !! Variant | |||
|- | |||
| Andoria || {{emblem|Andoria}} <br> {{emblem|Andorian}} <br> {{emblem|Andor}} <br> {{emblem|Andorian Imperial Guard}} | |||
|- | |||
| Apakan || {{emblem|Apakan}} | |||
|- | |||
| Bajor || {{emblem|Bajor}} <br> {{emblem|Bajoran}} <br> {{emblem|Bajoran Militia}} | |||
|- | |||
| Betazoid || {{emblem|Betazoid}} <br> {{emblem|Betazed}} | |||
|- | |||
| Bolian || {{emblem|Bolian}} | |||
|- | |||
| Borg || {{emblem|Borg}} <br> {{emblem|Borg Collective}} <br> {{emblem|Borg Queen}} | |||
|- | |||
| rowspan="2" |Cardassian Union | |||
| '''Default''' <br> {{emblem|Cardassian Union}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Cardassian Union|variant=grey}} | |||
|- | |||
| Edo || {{emblem|Edo}} <br> {{emblem|Rubicun}} <br> {{emblem|Rubicun III}} <br> {{emblem|Edo God}} | |||
|- | |||
| rowspan="3" |Federation <br> <small>Starfleet separate for brevity</small> | |||
| '''Default''' <br> {{emblem|Federation}} <br> {{emblem|United Federation of Planets}} <br> {{emblem|UFP}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Federation|variant=grey}} | |||
|- | |||
| '''Black''' <br> {{emblem|Federation|variant=black}} | |||
|- | |||
| Gorn || {{emblem|Gorn}} | |||
|- | |||
| rowspan="2" |Kathesis Pact | |||
| '''Default''' <br> {{emblem|Kathesis Pact}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Kathesis Pact|variant=grey}} | |||
|- | |||
| rowspan="3" |Klingon Empire | |||
| '''Default''' <br> {{emblem|Klingon Empire}} <br> {{emblem|Klingon}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Klingon Empire|variant=grey}} | |||
|- | |||
| '''TNG''' <br> {{emblem|Klingon Empire|variant=tng}} | |||
|- | |||
| rowspan="2" |Kobali | |||
| '''Default''' <br> {{emblem|Kobali}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Kobali|variant=grey}} | |||
|- | |||
| Maquis Reborn || {{emblem|Maquis Reborn}} <br> {{emblem|Maquis}} | |||
|- | |||
| Medusan || {{emblem|Medusan}} | |||
|- | |||
| Rigelian Assembly || {{emblem|Rigelian Assembly}} <br> {{emblem|Rigelian}} | |||
|- | |||
| Risian || {{emblem|Risian}} <br> {{emblem|Risa}} <br> {{emblem|Risian Hedony}} | |||
|- | |||
| rowspan="2" |Romulan Republic | |||
| '''Default''' <br> {{emblem|Romulan Republic}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Romulan Republic|variant=grey}} | |||
|- | |||
| rowspan="3" |Romulan Star Empire | |||
| '''Default''' <br> {{emblem|Romulan Star Empire}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Romulan Star Empire|variant=grey}} | |||
|- | |||
| '''TNG''' <br> {{emblem|Romulan Star Empire|variant=tng}} | |||
|- | |||
| Starfleet <br> <small>Body of Federation</small> || {{emblem|Starfleet}} | |||
|- | |||
| Tellar || {{emblem|Tellar}} <br> {{emblem|Tellarite}} | |||
|- | |||
| rowspan="2" |Terran Empire | |||
| '''Default''' <br> {{emblem|Terran Empire}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Terran Empire|variant=grey}} | |||
|- | |||
| rowspan="2" |Tholian Assembly | |||
| '''Default''' <br> {{emblem|Tholian Assembly}} <br> {{emblem|Tholian}} | |||
|- | |||
| '''Grey''' <br> {{emblem|Tholian Assembly|variant=grey}} | |||
|- | |||
| T'kon Empire || {{emblem|T'kon}} <br> {{emblem|T'kon Empire}} <br> {{emblem|Tkon}} | |||
|- | |||
| Trill || {{emblem|Trill}} | |||
|- | |||
| Vulcan || {{emblem|Vulcan}} | |||
|- | |||
| Zaldan || {{emblem|Zaldan}} | |||
|} | |||
== Examples == | == Examples == | ||
Line 70: | Line 161: | ||
{{Emblem|Federation|link=Narala|text=no}} | {{Emblem|Federation|link=Narala|text=no}} | ||
<includeonly>[[Category:Templates | == TemplateData == | ||
{{Navbox|title=TemplateData| | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Name", | |||
"description": "Name of the entity. See documentation for recognized entities.", | |||
"example": "Federation", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"variant": { | |||
"label": "Variant", | |||
"description": "Variant of the emblem. See documentation for recognized variants.", | |||
"type": "line" | |||
}, | |||
"size": { | |||
"label": "Size", | |||
"description": "Size of emblem in px", | |||
"type": "line", | |||
"default": "20x20px" | |||
}, | |||
"link": { | |||
"label": "Link", | |||
"description": "Link to another article. If \"no\", displays plain text instead.", | |||
"type": "wiki-page-name" | |||
}, | |||
"text": { | |||
"label": "Text", | |||
"description": "Text after the emblem. If \"no\", no text displayed.", | |||
"type": "line" | |||
}, | |||
"font size": { | |||
"label": "Font size", | |||
"description": "Font size of text after the emblem. Use e.g. px, em, %.", | |||
"type": "line" | |||
}, | |||
"tstyle": { | |||
"label": "Text style", | |||
"description": "CSS style for text", | |||
"type": "content" | |||
} | |||
}, | |||
"description": "Displays emblem and name of faction/state/entity", | |||
"format": "inline" | |||
} | |||
</templatedata>}} | |||
<includeonly>[[Category:Templates]]__NOTOC__</includeonly> | |||
<noinclude>[[Category:Documentation subpages]]</noinclude> | <noinclude>[[Category:Documentation subpages]]</noinclude> |
Latest revision as of 16:54, 18 July 2024
Displays a small emblem (such as a seal, arms or flag) for a faction, planetary government or similar entity. For ship logo picker, see Template:Logo.
Usage
Simple usage:
{{Emblem | }}
More complex usage:
{{Emblem | | variant = | link = }}
Full usage:
{{Emblem | | variant = | link = | text = | size = | font size = | tstyle = }}
Unnamed parameter determines the emblem of which entity is shown. If the entity is not on the list or is spelled differently, a placeholder is displayed. Unless text or link parameters are used, the name of the entity is displayed as spelled in the unnamed parameter. Different capitalizations are accepted by the emblem picker, but not by the links, so be careful to check how the article name is spelled or create a redirect. Note also that some entities don't have articles written about them. Important: Be careful with species names! In some cases, the species name is also accepted for the entity name. Remember that not all members of a species serve or live in the same state.
variant determines which variant of is used for the emblem if multiple exist. Some entities may have, for example, a grey variant, historical variants or flags. Unless determined, a default emblem is displayed.
link changes the link of the emblem and the text following it. If “no” entered, disables links. If text parameter is not given and link is, the value of the link parameter is displayed as text.
text determines the text displayed after the link. If “no” entered, disables the text and only shows the emblem.
size determines the size of the emblem. Use standard wiki image size options. Defaults to 20x20px.
font size determines the size of the text after the emblem. Use standard wiki font size options.
tstyle allows further text formatting options. Use CSS.
List of recognized emblems
Examples
Basic example
{{Emblem|Federation}}
Note how the name of the entity changes when the given name is changed. Be careful with capitalization!
{{Emblem|United Federation of Planets}}
If the entity has no recognized emblem, a placeholder is displayed. Consider adding one if you know one!
{{Emblem|Da'al}}
Some emblems have different variants:
{{Emblem|Klingon Empire|variant=grey}}
Different text
The text following the emblem doesn't have to be the name of the entity! For example, it can be a location within the entity, a person serving the entity, an agency of the entity or something else! Note how the link behaves in the following examples, depending on if text or link parameters are used.
{{Emblem|Federation|link=Narala}}
{{Emblem|Federation|link=Narala}}
{{Emblem|Federation|text=President|link=Narala}}
If link is set to “no”, the text won't be a link. Likewise, if text is set to “no”, the text is not visible at all.
{{Emblem|Federation|link=no}}
Federation
{{Emblem|Federation|link=no|text=Narala}}
Narala
{{Emblem|Federation|link=Narala|text=no}}
TemplateData
Displays emblem and name of faction/state/entity
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | 1 | Name of the entity. See documentation for recognized entities.
| Line | required |
Variant | variant | Variant of the emblem. See documentation for recognized variants. | Line | optional |
Size | size | Size of emblem in px
| Line | optional |
Link | link | Link to another article. If "no", displays plain text instead. | Page name | optional |
Text | text | Text after the emblem. If "no", no text displayed. | Line | optional |
Font size | font size | Font size of text after the emblem. Use e.g. px, em, %. | Line | optional |
Text style | tstyle | CSS style for text | Content | optional |