Template:AUshield/doc
此頁面是Template:AUshield的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
本模板含有複雜而精密的扩展语法。 編輯本模板前,建議您先熟悉解析器函數与本模板的设计思路、运作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行測試。 |
This is the basic syntax you need to get an Australian shield for use in a junction listing. Just place this prior to a road name and fill in the variables.
Some helpful usage hints can also be found here.
Usage
{{AUshield|1|2|3|4|5|6|7|8}}
Here's what you should fill in
- 1, 3, 5, 7: The code for the type of route. See the table below for the codes to use.
- 2, 4, 6, 8: The route number.
- For state routes that are alphanumeric, this is just the number, not the prefix letter.
- For national highways that are alphanumeric, this includes the prefix letter.
- Parameters 3 to 8 are optional, and should only be used when two ore more routes are multiplexed on the same road.
- Always use an even number of parameters, as using an odd number of parameters will generate an error.
- The parameters replace the numbers, i.e. it should not be
|1=S
, just simply|S
.
Route Types
Route Type | Code | Example | Example image |
---|---|---|---|
National Highway (numeric) | N | {{AUshield|N|1}} | |
National Highway (alpha-numeric) | {{AUshield|N|M1}} | ||
National Highway (ACT standard) | ACTN | {{AUshield|ACTN|23}} | |
National Route | R | {{AUshield|R|1}} | |
Alternate National Route | {{AUshield|R|ALT23}} | ||
State Route (numeric) | S | {{AUshield|S|2}} | |
Alternate State Route (numeric) | {{AUshield|S|ALT30}} | ||
State Route (numeric) – tollway | {{AUshield|S|TOLL43}} | ||
Alpha-numeric Route Use state where highway is located. For interstate routes without a shield and name change use AN. For alpha-numeric National Highways, use N. |
AN | {{AUshield|AN|A1}} | |
NSW | {{AUshield|NSW|M1}} | ||
NT | {{AUshield|NT|C80}} | ||
QLD | {{AUshield|QLD|M2}} | ||
{{AUshield|QLD|ALTA2}} | |||
SA | {{AUshield|SA|B90}} | ||
TAS | {{AUshield|TAS|B34}} | ||
VIC | {{AUshield|VIC|B400}} | ||
Alphanumeric (ACT standard) | ACT | {{AUshield|ACT|B23}} | |
VIC / new QLD Toll Alpha-numeric Route | Toll | {{AUshield|Toll|M6}} | |
Metroad | Met | {{AUshield|Met|1}} | |
Tourist Drive | T | {{AUshield|T|2}} | |
Old ACT Tourist Drive | ACTT | {{AUshield|ACTT|3}} | |
Old Brisbane freeway route | Bris | {{AUshield|Bris|F3}} | |
Old Melbourne freeway route | Mel | {{AUshield|Mel|F80}} | |
Old New South Wales freeway route | NSWF | {{AUshield|NSWF|F4}} | |
NSW detour route | D | {{AUshield|D|D1}} | |
Additional icons: | |||
Airport | + | {{AUshield|+|airport}} | |
Hospital | {{AUshield|+|hospital}} | ||
Special: | |||
No Route Marker (Blank) Used to align text on articles that would look messy otherwise. Use common sense. |
None | {{AUshield|None|<shield>}} See below for accepted inputs. |
Foo Highway Foo Street Foo Highway Foo Highway Foo Motorway Foo Avenue |
Other settings
- Alt text: By default, alt text and image linking is turned off. Use
|alt=on
to include alt text (e.g. State Route 2) and the default image link. - Size: The default size is x20px (height of 20 pixels). To change this, use
|size=
parameter, which accepts the same values as the [[File ]] syntax. - ALT/BUS shield sizes: The default size for alternative or business National Routes is 17px, while the default size for alternative State Routes is 21px, this will ensure the "main" part of the shield is equivalent to the default size of the standard shields.
What you type | What you get |
---|---|
{{AUshield|S|2|alt=on}} | |
{{AUshield|S|2|size=35px}} |
Blank Markers
Currently available blanks exist for the following marker types:
- N
- N Alpha
- R
- S
- Met
- NSW Small
- NSW Mid
- NSW Large
- AN4
- AN3
- AN2
Note: AN# refers to generic Non-NSW alphanumerics, with # denoting the number of characters on the shield (including lead letter).
Technical documentation
|
---|
The following notes describe the inner workings of the {{AUshield}} group of templates. They are intended to assist template maintainers – for standard usage of the template in articles, see the documentation above.
|
TemplateData
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A template to generate Australian route markers (shields). Up to four can be listed using this template.
|
See also
- {{AUSinttop}}, and {{Jctbtm}}: Used to generate table header and footer rows for a MOS:RJL compliant junction table
- {{AUS-WAint}}, {{ACTint}}, {{NSWint}}, {{NTint}}, {{QLDint}}, {{SAint}}, {{TASint}}, {{VICint}}: Used to generate table rows for each junction or feature in a MOS:RJL compliant junction table
- {{ACTcity}}, {{NSWcity}}, {{NTcity}}, {{QLDcity}}, {{SAcity}}, {{TAScity}}, {{VICcity}}, {{WAcity}}: Used to generate a list of suburbs (or cities or features) as a destination list in a road junction table that is MOS:RJL compliant