Difference between revisions of "Template:Ship"

From blackwiki
Jump to navigation Jump to search
blackwiki>DePiep
(Add tracking categories; ch formatting into HMS ''123'' (italics). See talk. sandbox tested.)
blackwiki>DePiep
(add preview-warning message)
Line 4: Line 4:
 
  build the wikilink:
 
  build the wikilink:
 
-->[[<!--
 
-->[[<!--
  targetpage: -->{{#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{#if:{{{3|}}}|&#32;({{{3|}}})}}|<!--
+
  target page: -->{{#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{#if:{{{3|}}}|&#32;({{{3|}}})}}|<!--
  
 
  wikilabel:  -->{{#switch:{{{4|}}}
 
  wikilabel:  -->{{#switch:{{{4|}}}
Line 17: Line 17:
 
  -->]]<!--
 
  -->]]<!--
  
  tracking (two categories):
+
  tracking categories:
 
-->{{main other|1={{Ship/maintenancecategory|message=<!--
 
-->{{main other|1={{Ship/maintenancecategory|message=<!--
-->{{#if:{{{2|}}}||N}}<!--
+
-->{{#if:{{{2|}}}||{{#switch:{{{4|0}}}|1|5=|#default=N}}}}<!--
 
-->{{#switch:{{{4|}}}
 
-->{{#switch:{{{4|}}}
 
|=
 
|=
Line 25: Line 25:
 
|2 =  
 
|2 =  
 
|3 = {{#if:{{{3|}}}||C}}
 
|3 = {{#if:{{{3|}}}||C}}
|4 = D
+
|4 = D<!-- this message should be removed after March 2018: only needed after function change checks -->
 
|5 = {{#if:{{{3|}}}||E}}
 
|5 = {{#if:{{{3|}}}||E}}
 
|6 =  
 
|6 =  
|#default=0_{{{4|}}}}}<!--
+
|#default=0}}<!--
 
-->{{#switch:{{lc:{{{up|}}}}}||yes|y|1|true=|no|0|false=|#default=W}}<!--
 
-->{{#switch:{{lc:{{{up|}}}}}||yes|y|1|true=|no|0|false=|#default=W}}<!--
 
-->}}}}<!-- eo main_other, eo subtemplate
 
-->}}}}<!-- eo main_other, eo subtemplate

Revision as of 18:42, 10 March 2018

Template documentation[create]