Template:Sup

From PZwiki
Notebook.pngTemplate Documentation

This template is used to display a superscripted label with a different color depending on the label.

This template uses /core for the translation logic.

Usage

Parameters

1 Required
The label to display. Can be any text other than the following values (case-insensitive) will display a different color:
  • future or beta - green
  • removed - red
The first letter of the label will be capitalized.
2
The color attribute can be customized. This will bypass the default colors.

Example

  • text {{sup|future}} -> text Future
  • text {{sup|removed}} -> text Removed
  • text {{sup|required}} -> text Required

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

LightBulbBlue.png
This template allows more customizability on the translation side than most. You can add, remove and adjust the values on both sides of the = symbol. Below is how it's used on the English template.
{{#switch: {{lc: {{{1|}}} }}
| future|beta = #006400;
| removed = #8b0000;
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.