Template:Emblem/doc

From 118Wiki
< Template:Emblem
Revision as of 12:38, 27 May 2024 by Jovenan (talk | contribs) (templatedata; typo; -wip (could still do with more emblems))
Jump to navigation Jump to search

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. Note: Different capitalizations are accepted by the emblem picker, but not by the links! If you see the correct emblem but a red link, check your capitalization or use text or link parameters. The only mandatory parameter.

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. Defaults to 95%.

tstyle allows further text formatting options. Use CSS.

List of recognized emblems

Entity Variant
Bolian Bolian Bolian
Cardassian Union Default
Cardassian Union Cardassian Union
Grey
Cardassian Union Cardassian Union
Federation Default
Federation Federation
United Federation of Planets United Federation of Planets
UFP UFP
Grey
Federation Federation
Kathesis Pact Default
Kathesis Pact Kathesis Pact
Grey
Kathesis Pact Kathesis Pact
Klingon Empire Default
Klingon Empire Klingon Empire
Grey
Klingon Empire Klingon Empire
TNG
Klingon Empire Klingon Empire
Maquis Reborn Maquis Reborn Maquis Reborn
Rigelian Assembly Rigelian Assembly Rigelian Assembly
Risian Risian Risian
Romulan Republic Default
Romulan Republic Romulan Republic
Grey
Romulan Republic Romulan Republic
Romulan Star Empire Default
Romulan Star Empire Romulan Star Empire
Grey
Romulan Star Empire Romulan Star Empire
TNG
Romulan Star Empire Romulan Star Empire
Tholian Assembly Default
Tholian Assembly Tholian Assembly
Grey
Tholian Assembly Tholian Assembly
Vulcan Vulcan Vulcan

Examples

Basic example

{{Emblem|Federation}}

Federation Federation

Note how the name of the entity changes when the given name is changed. Be careful with capitalization!

{{Emblem|United Federation of Planets}}

United Federation of Planets 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}}

Da'al Da'al

Some emblems have different variants:

{{Emblem|Klingon Empire|variant=grey}}

Klingon Empire Klingon Empire

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}}

Federation Narala

{{Emblem|Federation|link=Narala}}

Federation Narala

{{Emblem|Federation|text=President|link=Narala}}

Federation President

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 Federation

{{Emblem|Federation|link=no|text=Narala}}

Federation Narala

{{Emblem|Federation|link=Narala|text=no}}

Federation

TemplateData

TemplateData

Displays emblem and name of faction/state/entity

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1

Name of the entity. See documentation for recognized entities.

Example
Federation
Linerequired
Variantvariant

Variant of the emblem. See documentation for recognized variants.

Lineoptional
Sizesize

Size of emblem in px

Default
20x20px
Lineoptional
Linklink

Link to another article. If "no", displays plain text instead.

Page nameoptional
Texttext

Text after the emblem. If "no", no text displayed.

Lineoptional
Font sizefont size

Font size of text after the emblem. Use e.g. px, em, %.

Default
95%
Lineoptional
Text styletstyle

CSS style for text

Contentoptional