模板:NSWcity/doc
此页面是Template:NSWcity的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板文档被引用于许多页面。 为了避免造成大规模的影响,所有对此模板文档的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板文档中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
This is the basic syntax you need to get a listing of appropriately wikilinked New South Wales cities, suburbs, and features. This is mainly used for junction and exit list tables for NSW highways, but can be used elsewhere.
Usage
编辑- Link to a disambiguated article
- Instead of [[Article, New South Wales|Article]], use
{{NSWcity|Article}}
- Instead of [[Article (New South Wales)|Article]], use
{{NSWcity|b1=on|Article}}
- All parameters
{{NSWcity|1|2|3|4|b1=|b2=|b3=|b4=|pre=}}
Here's what you should fill in
编辑- 1, 2, 3, 4: The name of the city, suburb, or feature to be wikilinked to.
- The text entered here is what will be displayed in the list.
- Enter the text exactly as it appears in the article title, but without disambiguation
- The parameters replace the numbers, i.e. it should not be 1=Abbotsbury, just simply Abbotsbury.
- b1=, b2=, b3=, b4=: Can be set to on or omitted.
- Set as on if the article uses brackets for disambiguation, in the form of "<article> (New South Wales)".
- Omit parameter if the article uses a comma for disambiguation, in the form of "<article>, New South Wales".
- pre= or p= or dash=: Can be used to include punctuation at the start of the list (a comma or ndash).
- If set to dash, or ndash, or d, or n, or on, the list will be preceded by an ndash (–).
- If set to comma, or equivalently , (an actual comma), the list will be preceded by a comma (,). This can be used to continue a list if multiple instances of this template are used.
- If omitted, or set to off, or equivalently no, the list will not be preceded by any punctuation
- All parameters except for 1 are optional.
Examples
编辑What you type | What you get |
---|---|
{{NSWcity|Abbotsbury}} | Abbotsbury |
{{NSWcity|Murulla|Hunter River|b2=on}} | Murulla、Hunter River |
{{NSWcity|Tweed Heads|dash=on}} | – Tweed Heads |
See also
编辑{{AUSinttop}}, {{NSWint}}, {{Jctbtm}}: Used to generate an MOS:RJL compliant junction table
{{AUshield}}: Used to generate shields for Australian routes