Difference between revisions of "Template:ShipLink"

From The Dreadnought Project
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ShipType|t={{{t|}}}|f={{{f|}}}}}[[{{ShipPageName|p={{{p|}}}|n={{{n}}}|y={{{y}}}}}|{{ShipName|n={{{n}}}|f={{{f}}}|p={{{p}}}}}]]</includeonly><noinclude>Outputs a customized link to a ship page whose data are specified by parameters prefix='''p''', name='''n''', type='''t''', year='''y'''.  The value of parameter '''f''' specifies whether the type and/or prefix should be used in the link, by the presence of characters "t" and "p", respectively).  If the parameter '''tn''' is set, it is used instead of '''n''' for the name portion of the page title.  This permits two ship links to point to the same page, with one having a different display name, obviating the need for a redirect page, e.g., <nowiki>tn=Narwhal|n=D-1</nowiki>.</noinclude>
+
<includeonly>{{ShipClass|c={{{c|}}}|f={{{f|}}}}}{{ShipType|t={{{t|}}}|c={{{c|}}}|f={{{f|}}}}}[[{{ShipPageName|p={{{p|}}}|n={{{tn|{{{n}}}}}}|y={{{y}}}}}|{{ShipName|n={{{n}}}|f={{{f}}}|p={{{p}}}}}]]</includeonly><noinclude>Outputs a customized link to a ship page whose data are specified by parameters prefix='''p''', name='''n''', type='''t''', class='''c'''', year='''y'''.  The value of parameter '''f''' specifies whether the type and/or prefix should be used in the link, by the presence of characters '''c''', "t" or "p", respectively).  If the parameter '''tn''' is set, it is used instead of '''n''' for the name portion of the page title.  This permits two ship links to point to the same page, with one having a different display name, obviating the need for a redirect page, e.g., <nowiki>tn=Narwhal|n=D-1</nowiki>.</noinclude>

Latest revision as of 16:37, 5 September 2015

Outputs a customized link to a ship page whose data are specified by parameters prefix=p, name=n, type=t, class=c', year=y. The value of parameter f specifies whether the type and/or prefix should be used in the link, by the presence of characters c, "t" or "p", respectively). If the parameter tn is set, it is used instead of n for the name portion of the page title. This permits two ship links to point to the same page, with one having a different display name, obviating the need for a redirect page, e.g., tn=Narwhal|n=D-1.