Difference between revisions of "Template:Ship"
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: | ||
| − | < | + | <includeonly><!-- add unlinked prefix: |
| − | | {{{1}}}  | + | -->{{#switch:{{lc:{{{up|no}}}}}|yes|y|1|true={{{1|}}} }}<!-- prefix outside the link |
| − | }}[[{{ | + | |
| − | | | + | build the wikilink: |
| − | | | + | -->[[<!-- |
| − | + | targetpage: -->{{#if:{{{1|}}}|{{{1}}} }}{{{2|}}}{{#if:{{{3|}}}| ({{{3|}}})}}|<!-- | |
| − | | | + | |
| − | | | + | wikilabel: -->{{#switch:{{{4|}}} |
| − | | | + | ||4|#default={{#if:{{{1|}}}|{{#switch:{{lc:{{{up|no}}}}}|yes|y|true|1=<!-- prefix not part of the link |
| − | | {{ | + | -->|#default={{{1|}}} }}}}''{{{2|}}}''{{#if:{{{3|}}}| ({{{3}}})}} |
| − | }} | + | |1 = ''{{{3|}}}'' |
| − | {{ | + | |2 = ''{{{2|}}}'' |
| − | <!-- | + | |3 = ''{{{2|}}}''{{#if:{{{3|}}}| ({{{3}}})}} |
| − | </noinclude> | + | |5 = {{#if:{{{1|}}}|{{{1|}}} }}''{{{3|}}}'' |
| + | |6 = {{#ifeq:{{{up|no}}}|yes||{{#if:{{{1|}}}|{{{1}}} }}}}''{{{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> | ||