Difference between revisions of "Template:ShortName"
Template page
Line 1: | Line 1: | ||
{{#switch: {{{x|}}} | {{#switch: {{{x|}}} | ||
| United Federation of Planets = Federation | |||
| Klingon Empire = Klingon | |||
| Romulan Star Empire = Romulan | |||
| Cardassian Union = Cardassian | |||
| {{{x}}} | |||
}} | }} | ||
<noinclude> | |||
===ShortName=== | |||
This template exists to allow for the shortening of long names via a switch replacement within formulas without needing to list them all within the formula itself. Externalising functions for use elsewhere in the wiki and templates? Madness! | |||
Add to it as required if you have the right permissions and need for it. And feel confident you won't invoke the Wiki Goblin. | |||
Primarily used in the Specifications template. | |||
<pre> | |||
{{#switch: {{{x|}}} | |||
| United Federation of Planets = Federation | |||
| Klingon Empire = Klingon | |||
| Romulan Star Empire = Romulan | |||
| Cardassian Union = Cardassian | |||
| {{{x}}} | |||
}} | |||
</pre> | |||
</noinclude> |
Revision as of 04:58, 22 April 2023
{{{x}}}
ShortName
This template exists to allow for the shortening of long names via a switch replacement within formulas without needing to list them all within the formula itself. Externalising functions for use elsewhere in the wiki and templates? Madness!
Add to it as required if you have the right permissions and need for it. And feel confident you won't invoke the Wiki Goblin.
Primarily used in the Specifications template.
{{#switch: {{{x|}}} | United Federation of Planets = Federation | Klingon Empire = Klingon | Romulan Star Empire = Romulan | Cardassian Union = Cardassian | {{{x}}} }}