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
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{4|}}}
+
<includeonly>{{#if:{{{3|}}}
|[[{{{1}}} {{{2}}}, {{{3}}}|''{{{2}}}''{{{4}}}]]
+
  |[[{{{1}}} {{{2}}}, {{{3|}}}|{{{1}}} ''{{{2}}}'', {{{3|}}}]]
|{{#if:{{{3|}}}
+
   |[[{{{1}}} {{{2}}}|{{{1}}} ''{{{2}}}'']]}}</includeonly><noinclude>[[Category:Templates|Ship]]</noinclude>
   |[[{{{1}}} {{{2}}}, {{{3}}}|''{{{2}}}'']]
 
  |[[{{{1}}} {{{2}}}|''{{{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:
 
<nowiki>[[USS Enterprise (NCC-1701-D)|''Enterprise'']]</nowiki>
 
 
 
The template allows for up to four variables, but only requires two:
 
# Ship prefix (required)
 
# Ship's name (required)
 
# Disambiguation (if any)
 
# Textual postfix (if any)
 
 
 
<nowiki>{{ship|USS|Shipname|Disambiguation|Postfix text}}</nowiki>
 
[[Category:Templates|Ship]]</noinclude>
 

Latest revision as of 10:25, 29 March 2017