Difference between revisions of "Template:ShortName"

Template page
Line 4: Line 4:
| Romulan Star Empire = Romulan
| Romulan Star Empire = Romulan
| Cardassian Union = Cardassian
| Cardassian Union = Cardassian
| {{#ifexpr: {{{x}}} >= 2350 and {{{x}}} < 2368|Federation Starship Classes (2350–2368)|Unspecified era}}
| {{#ifexpr: {{{x}}} >= 2350 and {{{x}}} < 2368|Federation Starship Classes (2350–2368)}}
| {{#ifexpr: {{{x}}} >= 2368 and {{{x}}} < 2375|Federation Starship Classes (2368–2375)|Unspecified era}}
| {{#ifexpr: {{{x}}} >= 2368 and {{{x}}} < 2375|Federation Starship Classes (2368–2375)}}
| {{#ifexpr: {{{x}}} >= 2375 and {{{x}}} < 2385|Federation Starship Classes (2375–2385)|Unspecified era}}
| {{#ifexpr: {{{x}}} >= 2375 and {{{x}}} < 2385|Federation Starship Classes (2375–2385)}}
| {{#ifexpr: {{{x}}} >= 2385 and {{{x}}} < 2397|Federation Starship Classes (2385–2397)|Unspecified era}}
| {{#ifexpr: {{{x}}} >= 2385 and {{{x}}} < 2397|Federation Starship Classes (2385–2397)}}
}}<noinclude>
}}<noinclude>
===ShortName===
===ShortName===

Revision as of 07:02, 22 April 2023

Expression error: Unrecognized punctuation character "{".

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

}}