Template:PNS/doc
Appearance
This is a documentation subpage for Template:PNS. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This is a typing short cut for linking to Pakistan Navy ship articles named in the format "PNS Shushuk (S132)". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[PNS Shushuk (S132)|PNS ''Shushuk'' (S132)]]
. This template halves that to {{PNS|Shushuk|S132}}
.
Formal usage
[edit]- {{PNS|Ship Name}}
- {{PNS|Ship Name|ID}}, where ID can be the hull number, launch year, or pennant number, as specified in the article title.
Examples
[edit]Template usage | Equivalent wikicode | Final result |
---|---|---|
{{PNS|Shushuk|S132}} | [[PNS Shushuk (S132)|PNS ''Shushuk'' (S132)]] | PNS Shushuk (S132) |
{{PNS|Babur|1956}} | [[PNS Babur (1956)|PNS ''Babur'' (1956)]] | PNS Babur (1956) |
{{PNS|Nasr}} | [[PNS Nasr|PNS ''Nasr'']] | PNS Nasr |
Last example could be used to link to ship index (disambiguation) page
TemplateData
[edit]This section:
TemplateData
| |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:PNS in articles based on its TemplateData.
TemplateData for PNS This template provides a wikilink to a ship's page, with label options
|
See also
[edit]