Difference between revisions of "Template:ShipPageName"

From The Dreadnought Project
Jump to navigationJump to search
Line 1: Line 1:
<includeonly>{{#if:{{{p|}}}|{{{p}}} {{#if:{{{tn}}}|{{{tn}}}|{{{n}}}}} ({{{y}}})|{{#if:{{{tn}}}|{{{tn}}}|{{{n}}}}} ({{{y}}})}}</includeonly><noinclude>Outputs a ship's page name, building it from provided parameters of prefix, name, and year, supplied in parameters '''p''', '''n''' and '''y'''.  If '''p''' is not provided, there will be no prefix (e.g., as for French and Japanese ships).  If parameter '''tn''' is set ("title name"), it is used instead of the name for that portion.</noinclude>
+
<includeonly>{{#if:{{{p|}}}|{{{p}}} {{{tn|{{{n}}}}}} ({{{y}}})|{{{tn|{{{n}}}}}} ({{{y}}})}}</includeonly><noinclude>Outputs a ship's page name, building it from provided parameters of prefix, name, and year, supplied in parameters '''p''', '''n''' and '''y'''.  If '''p''' is not provided, there will be no prefix (e.g., as for French and Japanese ships).  If parameter '''tn''' is set ("title name"), it is used instead of the name for that portion.</noinclude>

Revision as of 23:28, 30 December 2014

Outputs a ship's page name, building it from provided parameters of prefix, name, and year, supplied in parameters p, n and y. If p is not provided, there will be no prefix (e.g., as for French and Japanese ships). If parameter tn is set ("title name"), it is used instead of the name for that portion.