Template:Sup
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
orbeta
- greenremoved
- 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 =
).
=
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.