Difference between revisions of "Template:ShortName"

Template page
(Created page with "{{#switch: {{{1|}}} | United Federation of Planets = Federation | Klingon Empire = Klingon | {{{1}}} }}")
 
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}
{{#switch: {{{x|}}}
| United Federation of Planets = Federation
| United Federation of Planets = Federation
| Klingon Empire = Klingon
| [[United Federation of Planets]] = Federation
| {{{1}}}
| Klingon Empire = Klingon
| [[Klingon Empire]] = Klingon
| Romulan Star Empire = Romulan
| *[[Old Romulan Star Empire]]
*[[Romulan Star Empire]] = Romulan
| [[Old Romulan Star Empire]] = Romulan
| [[Romulan Star Empire]] = Romulan
| Cardassian Union = Cardassian
| [[Cardassian Union]] = Cardassian
| Retired = Retired
| *Retired (Starfleet)
*Active (Starfleet Auxiliary) = Retired
| Out of Production = Retired
}}<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
| [[United Federation of Planets]] = Federation
| Klingon Empire = Klingon
| [[Klingon Empire]] = Klingon
| Romulan Star Empire = Romulan
| *[[Old Romulan Star Empire]]
*[[Romulan Star Empire]] = Romulan
| [[Old Romulan Star Empire]] = Romulan
| [[Romulan Star Empire]] = Romulan
| Cardassian Union = Cardassian
| [[Cardassian Union]] = Cardassian
}}
}}
</pre>
[[Category:Infobox Templates]]
</noinclude>

Latest revision as of 01:07, 19 May 2024

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
| [[United Federation of Planets]] = Federation
| Klingon Empire = Klingon
| [[Klingon Empire]] = Klingon
| Romulan Star Empire = Romulan
| *[[Old Romulan Star Empire]]
*[[Romulan Star Empire]] = Romulan
| [[Old Romulan Star Empire]] = Romulan
| [[Romulan Star Empire]] = Romulan
| Cardassian Union = Cardassian
| [[Cardassian Union]] = Cardassian
}}