Difference between revisions of "Template:Ship"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trappist the monk
(synch from sandbox;)
blackwiki>Ahecht
(Sync with sandbox per Template_talk:Ship#Unlink_option?)
Line 1: Line 1:
 
<includeonly><!-- add unlinked prefix:
 
<includeonly><!-- add unlinked prefix:
-->{{#switch:{{lc:{{{up|no}}}}}|yes|y|1|true={{{1|}}}&#32;}}<!-- prefix outside the link
+
-->{{safesubst:<noinclude />#switch:{{lc:{{{up|no}}}}}|yes|y|1|true={{{1|}}}&#32;}}<!-- prefix outside the link
  
 
  build the wikilink:
 
  build the wikilink:
-->[[<!--
+
-->{{Yesno|{{#if:{{{wl|}}}|{{{wl|}}}|yes}}|no=|yes={{Square bracket open|2}}<!--
  target page: -->{{#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{#if:{{{3|}}}|&#32;({{{3|}}})}}|<!--
+
  target page: -->{{safesubst:<noinclude />#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{safesubst:<noinclude />#if:{{{3|}}}|&#32;({{{3|}}})}}{{!}}}}<!--
  
  wikilabel:  -->{{#switch:{{{4|}}}
+
  wikilabel:  -->{{safesubst:<noinclude />#switch:{{{4|}}}
  ||4|#default={{#if:{{{1|}}}|{{#switch:{{lc:{{{up|no}}}}}|yes|y|true|1=<!-- prefix not part of the link
+
  ||4|#default={{safesubst:<noinclude />#if:{{{1|}}}|{{safesubst:<noinclude />#switch:{{lc:{{{up|no}}}}}|yes|y|true|1=<!-- prefix not part of the link
  -->|#default={{{1|}}}&nbsp;}}}}''{{{2|}}}''{{#if:{{{3|}}}|&nbsp;({{{3}}})}}
+
  -->|#default={{{1|}}}&nbsp;}}}}''{{{2|}}}''{{safesubst:<noinclude />#if:{{{3|}}}|&nbsp;({{{3}}})}}
 
  |1 = {{{3|}}}
 
  |1 = {{{3|}}}
 
  |2 = ''{{{2|}}}''
 
  |2 = ''{{{2|}}}''
  |3 = ''{{{2|}}}''{{#if:{{{3|}}}|&nbsp;({{{3}}})}}
+
  |3 = ''{{{2|}}}''{{safesubst:<noinclude />#if:{{{3|}}}|&nbsp;({{{3}}})}}
  |5 = {{#if:{{{1|}}}|{{{1|}}}&#32;}}''{{{3|}}}''
+
  |5 = {{safesubst:<noinclude />#if:{{{1|}}}|{{{1|}}}&#32;}}''{{{3|}}}''
  |6 = {{#ifeq:{{{up|no}}}|yes||{{#if:{{{1|}}}|{{{1}}}&nbsp;}}}}''{{{2}}}''}}<!--
+
  |6 = {{safesubst:<noinclude />#ifeq:{{{up|no}}}|yes||{{safesubst:<noinclude />#if:{{{1|}}}|{{{1}}}&nbsp;}}}}''{{{2}}}''}}<!--
 
  close the wikilink:
 
  close the wikilink:
  -->]]<!--
+
  -->{{Yesno|{{#if:{{{wl|}}}|{{{wl|}}}|yes}}|no=|yes={{Square bracket close|2}}}}<!--
  
 
  tracking categories:
 
  tracking categories:
 
-->{{main other|1={{Ship/maintenancecategory|message=<!--
 
-->{{main other|1={{Ship/maintenancecategory|message=<!--
-->{{#if:{{{2|}}}||{{#switch:{{{4|0}}}|1|5=|#default=N}}}}<!--
+
-->{{safesubst:<noinclude />#if:{{{2|}}}||{{safesubst:<noinclude />#switch:{{{4|0}}}|1|5=|#default=N}}}}<!--
-->{{#switch:{{{4|}}}
+
-->{{safesubst:<noinclude />#switch:{{{4|}}}
 
|=
 
|=
|1 = {{#if:{{{3|}}}||A}}
+
|1 = {{safesubst:<noinclude />#if:{{{3|}}}||A}}
 
|2 =  
 
|2 =  
|3 = {{#if:{{{3|}}}||C}}
+
|3 = {{safesubst:<noinclude />#if:{{{3|}}}||C}}
|4 = D<!-- this message should be removed after March 2018: only needed after function change checks -->
+
|4 =  
|5 = {{#if:{{{3|}}}||E}}
+
|5 = {{safesubst:<noinclude />#if:{{{3|}}}||E}}
 
|6 =  
 
|6 =  
 
|#default=0}}<!--
 
|#default=0}}<!--
-->{{#switch:{{lc:{{{up|}}}}}||yes|y|1|true=|no|0|false=|#default=W}}<!--
+
-->{{safesubst:<noinclude />#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 13:39, 30 July 2018

50px Template documentation[create]