Difference between revisions of "Template:Ship"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trappist the monk
m (Synch from sandbox;)
blackwiki>DePiep
(Add tracking categories; ch formatting into HMS ''123'' (italics). See talk. sandbox tested.)
Line 1: Line 1:
<noinclude>{{Template sandbox notice}}</noinclude><includeonly>{{safesubst:#if:{{{up|}}}
+
<includeonly><!-- add unlinked prefix:
| {{{1}}}&#32;
+
-->{{#switch:{{lc:{{{up|no}}}}}|yes|y|1|true={{{1|}}}&#32;}}<!-- prefix outside the link
}}[[{{safesubst:#if:{{{1|}}}|{{{1}}}&#32;}}{{{2}}}{{safesubst:#if:{{{3|}}}| &#32;({{{3}}})}}|{{safesubst:#switch:{{{4|7}}}
+
 
|1 = {{safesubst:#if:{{{3|}}}|{{{3}}}|Hull Number Missing}}
+
build the wikilink:
|2 = ''{{{2}}}''
+
-->[[<!--
|3 = ''{{{2}}}''&nbsp;{{safesubst:#if:{{{3|}}}|({{{3}}})|Hull Number Missing}}
+
targetpage: -->{{#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{#if:{{{3|}}}|&#32;({{{3|}}})}}|<!--
|4 = Invalid Optional Parameter
+
 
|5 = {{{1}}}&nbsp;{{safesubst:#if:{{{3|}}}|({{{3}}})|Hull Number Missing}}
+
wikilabel:  -->{{#switch:{{{4|}}}
|6 = {{safesubst:#if:{{{1|}}}|{{{1}}}&nbsp;}}''{{{2}}}''
+
||4|#default={{#if:{{{1|}}}|{{#switch:{{lc:{{{up|no}}}}}|yes|y|true|1=<!-- prefix not part of the link
| {{safesubst:#if:{{{1|}}}|{{{1}}}&nbsp;}}''{{{2}}}''{{safesubst:#if:{{{3|}}}|&nbsp;({{{3}}})}}
+
-->|#default={{{1|}}}&nbsp;}}}}''{{{2|}}}''{{#if:{{{3|}}}|&nbsp;({{{3}}})}}
}}]]</includeonly><noinclude>
+
|1 = ''{{{3|}}}''
{{Documentation}}  
+
|2 = ''{{{2|}}}''
<!-- Add categories to the /doc subpage, not here!  -->
+
|3 = ''{{{2|}}}''{{#if:{{{3|}}}|&nbsp;({{{3}}})}}
</noinclude>
+
|5 = {{#if:{{{1|}}}|{{{1|}}}&#32;}}''{{{3|}}}''
 +
|6 = {{#ifeq:{{{up|no}}}|yes||{{#if:{{{1|}}}|{{{1}}}&nbsp;}}}}''{{{2}}}''}}<!--
 +
close the wikilink:
 +
-->]]<!--
 +
 
 +
tracking (two categories):
 +
-->{{main other|1={{Ship/maintenancecategory|message=<!--
 +
-->{{#if:{{{2|}}}||N}}<!--
 +
-->{{#switch:{{{4|}}}
 +
|=
 +
|1 = {{#if:{{{3|}}}||A}}
 +
|2 =
 +
|3 = {{#if:{{{3|}}}||C}}
 +
|4 = D
 +
|5 = {{#if:{{{3|}}}||E}}
 +
|6 =
 +
|#default=0_{{{4|}}}}}<!--
 +
-->{{#switch:{{lc:{{{up|}}}}}||yes|y|1|true=|no|0|false=|#default=W}}<!--
 +
-->}}}}<!-- eo main_other, eo subtemplate
 +
 
 +
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|1=[[Category:Pages using Ship with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Ship]] with unknown parameter "_VALUE_"|ignoreblank=y|showblankpositional=1|1|2|3|4|up}}</includeonly><!--
 +
 
 +
--><noinclude>{{Documentation}}</noinclude>

Revision as of 15:10, 10 March 2018

Template documentation[create]