Difference between revisions of "Template:Ship"

From Federation Space - Official Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if:{{{4|}}} |[[{{{1}}} {{{2}}}, {{{3}}}|''{{{2}}}''{{{4}}}]] |{{#if:{{{3|}}} |[[{{{1}}} {{{2}}}, {{{3}}}|''{{{2}}}'']] |[[{{{1}}} {{{2}}}|''{{{2}}}'']] }...")
 
m
Line 4: Line 4:
 
   |[[{{{1}}} {{{2}}}, {{{3}}}|''{{{2}}}'']]
 
   |[[{{{1}}} {{{2}}}, {{{3}}}|''{{{2}}}'']]
 
   |[[{{{1}}} {{{2}}}|''{{{2}}}'']]
 
   |[[{{{1}}} {{{2}}}|''{{{2}}}'']]
}}}}</includeonly><noinclude>
+
}}}}</includeonly>
 +
 
 +
<includeonly>{{#if:{{{4|}}}
 +
|{{#if:{{{3|}}}
 +
|[[{{{1}}} {{{2}}} ({{#ifeq:{{{3|}}}|alt|alternate reality|{{{3}}}}})|{{{1}}} ''{{{2}}}''{{{4}}}]]
 +
|[[{{{1}}} {{{2}}}|{{{1}}} ''{{{2}}}''{{{4}}}]]}}
 +
  |{{#if:{{{3|}}}
 +
  |[[{{{1}}} {{{2}}} ({{#ifeq:{{{3|}}}|alt|alternate reality|{{{3}}}}})|{{{1}}} ''{{{2}}}'']]
 +
  |[[{{{1}}} {{{2}}}|{{{1}}} ''{{{2}}}'']]}}}}</includeonly>
 +
<noinclude>
  
 
This template is intended to simplify the wikicode needed for properly italicizing a starship's name for use in templates, such as:
 
This template is intended to simplify the wikicode needed for properly italicizing a starship's name for use in templates, such as:

Revision as of 23:49, 16 January 2017



This template is intended to simplify the wikicode needed for properly italicizing a starship's name for use in templates, such as:

[[USS Enterprise (NCC-1701-D)|''Enterprise'']]

The template allows for up to four variables, but only requires two:

  1. Ship prefix (required)
  2. Ship's name (required)
  3. Disambiguation (if any)
  4. Textual postfix (if any)
{{ship|USS|Shipname|Disambiguation|Postfix text}}