Difference between revisions of "Template:Ship"

From blackwiki
Jump to navigation Jump to search
blackwiki>DePiep
(add preview-warning message)
m (37 revisions imported)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><!-- add unlinked prefix:
+
<includeonly><noinclude><!-- add unlinked prefix:
-->{{#switch:{{lc:{{{up|no}}}}}|yes|y|1|true={{{1|}}}&#32;}}<!-- prefix outside the link
+
--></noinclude>{{safesubst:<noinclude />#switch:{{safesubst:<noinclude />lc:{{{up|no}}}}}|yes|y|1|true={{{1|}}}&#32;}}<noinclude><!-- prefix outside the link
  
 
  build the wikilink:
 
  build the wikilink:
-->[[<!--
+
--></noinclude>{{safesubst:<noinclude />Yesno|{{safesubst:<noinclude />#if:{{{wl|}}}|{{{wl|}}}|yes}}|no=|yes={{safesubst:<noinclude />Square bracket open|2}}<noinclude><!--
  target page: -->{{#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{#if:{{{3|}}}|&#32;({{{3|}}})}}|<!--
+
  target page: --></noinclude>{{safesubst:<noinclude />#if:{{{1|}}}|{{{1}}}&#32;}}{{{2|}}}{{safesubst:<noinclude />#if:{{{3|}}}|&#32;({{{3|}}})}}{{safesubst:<noinclude />!}}}}<noinclude><!--
  
  wikilabel:  -->{{#switch:{{{4|}}}
+
  wikilabel:  --></noinclude>{{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:{{safesubst:<noinclude />lc:{{{up|no}}}}}|yes|y|true|1=<noinclude><!-- prefix not part of the link
  -->|#default={{{1|}}}&nbsp;}}}}''{{{2|}}}''{{#if:{{{3|}}}|&nbsp;({{{3}}})}}
+
  --></noinclude>|#default={{{1|}}}&nbsp;}}}}{{safesubst:<noinclude />#if:{{{2|}}}|''{{{2|}}}''}}{{safesubst:<noinclude />#if:{{{3|}}}|&nbsp;{{nowrap|({{{3}}})}}}}
  |1 = ''{{{3|}}}''
+
  |1 = {{{3|}}}
  |2 = ''{{{2|}}}''
+
  |2 = {{safesubst:<noinclude />#if:{{{2|}}}|''{{{2|}}}''}}
  |3 = ''{{{2|}}}''{{#if:{{{3|}}}|&nbsp;({{{3}}})}}
+
  |3 = {{safesubst:<noinclude />#if:{{{2|}}}|''{{{2|}}}''}}{{safesubst:<noinclude />#if:{{{3|}}}|&nbsp;{{nowrap|({{{3}}})}}}}
  |5 = {{#if:{{{1|}}}|{{{1|}}}&#32;}}''{{{3|}}}''
+
  |5 = {{safesubst:<noinclude />#if:{{{1|}}}|{{{1|}}}&#32;}}''{{nowrap|{{{3|}}}}}''
  |6 = {{#ifeq:{{{up|no}}}|yes||{{#if:{{{1|}}}|{{{1}}}&nbsp;}}}}''{{{2}}}''}}<!--
+
  |6 = {{safesubst:<noinclude />#ifeq:{{{up|no}}}|yes||{{safesubst:<noinclude />#if:{{{1|}}}|{{{1}}}&nbsp;}}}}{{safesubst:<noinclude />#if:{{{2|}}}|''{{{2|}}}''}}}}<noinclude><!--
 
  close the wikilink:
 
  close the wikilink:
  -->]]<!--
+
  --></noinclude>{{safesubst:<noinclude />Yesno|{{safesubst:<noinclude />#if:{{{wl|}}}|{{{wl|}}}|yes}}|no=|yes={{safesubst:<noinclude />Square bracket close|2}}}}<noinclude><!--
  
 
  tracking categories:
 
  tracking categories:
-->{{main other|1={{Ship/maintenancecategory|message=<!--
+
--></noinclude>{{safesubst:<noinclude />Ship/maintenancecategory|message=<noinclude><!--
-->{{#if:{{{2|}}}||{{#switch:{{{4|0}}}|1|5=|#default=N}}}}<!--
+
--></noinclude>{{safesubst:<noinclude />#if:{{{2|}}}||{{safesubst:<noinclude />#switch:{{{4|0}}}|1|5=|#default=N}}}}<noinclude><!--
-->{{#switch:{{{4|}}}
+
--></noinclude>{{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}}<noinclude><!--
-->{{#switch:{{lc:{{{up|}}}}}||yes|y|1|true=|no|0|false=|#default=W}}<!--
+
--></noinclude>{{safesubst:<noinclude />#switch:{{lc:{{{up|}}}}}||yes|y|1|true=|no|0|false=|#default=W}}<noinclude><!--
-->}}}}<!-- eo main_other, eo subtemplate
+
--></noinclude>}}<noinclude><!-- 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>{{safesubst:<noinclude />#invoke:Check for unknown parameters|check|unknown={{main other|1=[[Category:Pages using Ship with unknown parameters|_VALUE_ {{safesubst:<noinclude />PAGENAME}}]]}}|preview=Page using [[Template:Ship]] with unknown parameter "_VALUE_"|ignoreblank=y|showblankpositional=1|1|2|3|4|up|wl}}</includeonly><noinclude><!--
  
--><noinclude>{{Documentation}}</noinclude>
+
--></noinclude><noinclude>{{Documentation}}</noinclude>

Latest revision as of 10:03, 30 September 2020

50px Template documentation[create]