Template:ShipLink: Difference between revisions
From The Dreadnought Project
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ShipType|t={{{t|}}}|f={{{f|}}}}}[[{{ShipPageName|p={{{p|}}}|n={{{n}}}|| | <includeonly>{{ShipType|t={{{t|}}}|f={{{f|}}}}}[[{{ShipPageName|p={{{p|}}}|n={{{n}}}||tn={{{tn|}}}|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 as the name for the page title, but not for the displayed link. 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> |
Revision as of 23:00, 30 December 2014
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 as the name for the page title, but not for the displayed link. 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.