Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ship: Difference between revisions

Template page
m More work on the error message.
m Rewrite. The old #if: {{{2}}} always tested true. Because the transcluded pages did/do their own testing for the value of mode that did not matter. It still does not matter, but the code here now at least functions as intended.
 
Line 1: Line 1:
<includeonly>{{
<includeonly>{{ #if:{{{1|}}}
#if:{{{1|}}}
| {{ :{{{1}}}|mode= {{#if: {{{2|}}} | {{{2}}} | tooltip }} }}
|{{#if: {{{2}}}
| {{Co|red|!!}} No ship name specified [[Template:Ship/doc|(please read the documentation.)]] {{Co|red|!!}}
|{{:{{{1}}}|mode={{{2|tooltip}}}}}
|{{:{{{1}}}|mode=tooltip}}
    }}
|{{Co|red|!!}} No ship name specified [[Template:Ship/doc|(please read the documentation.)]] {{Co|red|!!}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>