Difference between revisions of "Template:ACTint/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Evad37
(substitue from {{AUSintcore/doc|state=ACT}})
 
blackwiki>Evad37
(remove LGA related parameters (no LGAs in the ACT))
Line 1: Line 1:
This is a template for generating an intersection or exit for a {{#switch:ACT
+
This is a template for generating an intersection or exit for an Australian Capital Territory road article. It is a member of the {{tl|Jctint}} suite of templates.
|ACT=Australian Capital Territory
 
|NSW=New South Wales
 
|NT=Northern Territory
 
|QLD=Queensland
 
|SA=South Australia
 
|TAS=Tasmania
 
|VIC=Victoria
 
|WA=Western Australia
 
|#default={{error|State not specified correctly - Must be the uppercase 2-to-3 letter abbreviation ie "WA" or "NSW"}}
 
}} road article. It is a member of the {{tl|Jctint}} suite of templates.
 
  
 
==General usage==
 
==General usage==
 
This is the basic syntax you need to get a complete intersection table.  Just copy and paste the code below:
 
This is the basic syntax you need to get a complete intersection table.  Just copy and paste the code below:
 
{{pre|
 
{{pre|
<nowiki>{{AUSinttop}}</nowiki>
+
<nowiki>{{AUSinttop|noLGA=yes}}</nowiki>
{{#switch:ACT
+
<nowiki>{{ACTint</nowiki>
|ACT=<nowiki>{{ACTint</nowiki>
 
|NSW=<nowiki>{{NSWint</nowiki>
 
|NT=<nowiki>{{AUS-NTint</nowiki>
 
|QLD=<nowiki>{{QLDint</nowiki>
 
|SA=<nowiki>{{SAint</nowiki>
 
|TAS=<nowiki>{{TASint</nowiki>
 
|VIC=<nowiki>{{VICint</nowiki>
 
|WA=<nowiki>{{AUS-WAint</nowiki>
 
|#default={{error|State not specified correctly}}
 
}}
 
 
 
<nowiki>|LGA=</nowiki>
 
 
 
<nowiki>|LGAspan=</nowiki>
 
  
 
<nowiki>|location=</nowiki>
 
<nowiki>|location=</nowiki>
Line 49: Line 25:
 
...and fill in the variables!  For more entries, use this:
 
...and fill in the variables!  For more entries, use this:
 
{{pre|
 
{{pre|
{{#switch:ACT
+
<nowiki>{{ACTint</nowiki>
|ACT=<nowiki>{{ACTint</nowiki>
 
|NSW=<nowiki>{{NSWint</nowiki>
 
|NT=<nowiki>{{AUS-NTint</nowiki>
 
|QLD=<nowiki>{{QLDint</nowiki>
 
|SA=<nowiki>{{SAint</nowiki>
 
|TAS=<nowiki>{{TASint</nowiki>
 
|VIC=<nowiki>{{VICint</nowiki>
 
|WA=<nowiki>{{AUS-WAint</nowiki>
 
|#default={{error|State not specified correctly}}
 
}}
 
 
 
<nowiki>|LGA=</nowiki>
 
 
 
<nowiki>|LGAspan=</nowiki>
 
  
 
<nowiki>|location=</nowiki>
 
<nowiki>|location=</nowiki>
Line 78: Line 40:
  
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
}}
 
 
==Within a single LGA==
 
If a road is entirely within a single local government area, you may omit the LGA column by using the following code:
 
{{pre|
 
<nowiki>{{AUSinttop|noLGA=yes}}</nowiki>
 
{{#switch:ACT
 
|ACT=<nowiki>{{ACTint</nowiki>
 
|NSW=<nowiki>{{NSWint</nowiki>
 
|NT=<nowiki>{{AUS-NTint</nowiki>
 
|QLD=<nowiki>{{QLDint</nowiki>
 
|SA=<nowiki>{{SAint</nowiki>
 
|TAS=<nowiki>{{TASint</nowiki>
 
|VIC=<nowiki>{{VICint</nowiki>
 
|WA=<nowiki>{{AUS-WAint</nowiki>
 
|#default={{error|State not specified correctly}}
 
}}
 
<nowiki>|location=
 
|lspan=
 
|type=
 
|km=
 
|road=
 
|notes=
 
}}
 
{{Jctbtm}}</nowiki>
 
}}
 
Just copy and paste the above code, and fill in the variables! Also note that the table should be preceded by line explaining the omitted column, such as:
 
<pre width=100%>
 
The entire freeway is in the [[City of Mitcham]].
 
</pre>
 
For more entries, use this:
 
{{pre|
 
{{#switch:ACT
 
|ACT=<nowiki>{{ACTint</nowiki>
 
|NSW=<nowiki>{{NSWint</nowiki>
 
|NT=<nowiki>{{AUS-NTint</nowiki>
 
|QLD=<nowiki>{{QLDint</nowiki>
 
|SA=<nowiki>{{SAint</nowiki>
 
|TAS=<nowiki>{{TASint</nowiki>
 
|VIC=<nowiki>{{VICint</nowiki>
 
|WA=<nowiki>{{AUS-WAint</nowiki>
 
|#default={{error|State not specified correctly}}
 
}}
 
<nowiki>|location=
 
|lspan=
 
|type=
 
|km=
 
|road=
 
|notes=
 
}}</nowiki>
 
 
}}
 
}}
  
 
==Parameters==
 
==Parameters==
 
For the above parameters, here's what you should fill in:
 
For the above parameters, here's what you should fill in:
* '''LGA:''' The name of the local government the intersection is in.  Full wiki markup is required, for example {{para|LGA}}<code><nowiki>[[City of Mitcham|Mitcham]]</nowiki></code>. Parameters such as '''LGAC''' can be used intsead to avoid using full wiki markup (see below)
+
* '''location:''' the suburb the intersection is in. The text entered here will be wikilinked to ''<text entered>, Australian Capital Territory'', so if the intersection is in multiple suburbs, you must use '''location_special''' (see below).
* '''LGAspan:''' number of rows the LGA spans. If value=1, omit this parameter. If set, '''LGA''' (or '''LGAC''' etc) should be omitted from the other rows it spans.
 
* '''location:''' the suburb the intersection is in. The text entered here will be wikilinked to ''<text entered>, {{#switch:ACT
 
|ACT=Australian Capital Territory
 
|NSW=New South Wales
 
|NT=Northern Territory
 
|QLD=Queensland
 
|SA=South Australia
 
|TAS=Tasmania
 
|VIC=Victoria
 
|WA=Western Australia
 
|#default={{error|State not specified correctly}}
 
}}'', so if the intersection is in multiple suburbs, you must use '''location_special''' (see below).
 
 
* '''lspan:''' number of rows the location spans—if value=1, omit this parameter. If set, '''location''' (or '''location_special''') should be omitted from the other rows it spans
 
* '''lspan:''' number of rows the location spans—if value=1, omit this parameter. If set, '''location''' (or '''location_special''') should be omitted from the other rows it spans
 
* '''type:''' use to specify a shading for that intersection's row. The permitted types are:
 
* '''type:''' use to specify a shading for that intersection's row. The permitted types are:
Line 151: Line 51:
 
** '''unbuilt:''' for unbuilt roadway intersections/interchanges.
 
** '''unbuilt:''' for unbuilt roadway intersections/interchanges.
 
** '''incomplete:''' for incomplete intersections/interchanges where all movements are not supported (Northbound exit and southbound entrance, etc)
 
** '''incomplete:''' for incomplete intersections/interchanges where all movements are not supported (Northbound exit and southbound entrance, etc)
** '''hov''' for interchanges that are only for High occupancy vehicle lanes"
+
** '''hov''' for interchanges that are only for High occupancy vehicle lanes
** '''toll'' or '''etc''' for an interchange where tolls or electronic toll are collected"
+
** '''toll''' or '''etc''' for an interchange where tolls or electronic toll are collected
 
** Note: If the type parameter is used, the table must include a colour key at the bottom of the table. Use {{tl|LegendRJL}} instead of {{tl|jctbtm}} to generate a compliant legend.
 
** Note: If the type parameter is used, the table must include a colour key at the bottom of the table. Use {{tl|LegendRJL}} instead of {{tl|jctbtm}} to generate a compliant legend.
 
* '''km:''' the distance, in kilometres, of the intersection from the start of the road. Only enter numerical values, as these will be used to automatically generate a Miles column. Use '''km2''' if the location is in a range of kilometres (see below)
 
* '''km:''' the distance, in kilometres, of the intersection from the start of the road. Only enter numerical values, as these will be used to automatically generate a Miles column. Use '''km2''' if the location is in a range of kilometres (see below)
Line 158: Line 58:
 
** Generate route shields using {{tl|AUshield}}
 
** Generate route shields using {{tl|AUshield}}
 
** If there are multiple roads (ie intersecting road changes name at this intersection), use a slash (/) to separate roads
 
** If there are multiple roads (ie intersecting road changes name at this intersection), use a slash (/) to separate roads
** Generate an ndash (&ndash;) and wikilinked destinations using {{#switch:ACT
+
** Generate an ndash (&ndash;) and wikilinked destinations using {{tl|ACTcity}}
|ACT={{tl|ACTcity}}
 
|NSW={{tl|NSWcity}}
 
|NT={{tl|NTcity}}
 
|QLD={{tl|QLDcity}}
 
|SA={{tl|SAcity}}
 
|TAS={{tl|TAScity}}
 
|VIC={{tl|VICcity}}
 
|WA={{tl|WAcity}}
 
|#default={{error|State not specified correctly}}
 
}}
 
 
** If destinations are to be entered manually, an ndash can be generated by the HTML character code &amp;ndash;
 
** If destinations are to be entered manually, an ndash can be generated by the HTML character code &amp;ndash;
 
* '''notes:''' any notes regarding that junction. This must include an explanation for any usage of the type-generated shading.
 
* '''notes:''' any notes regarding that junction. This must include an explanation for any usage of the type-generated shading.
Line 174: Line 64:
 
===Additional Parameters===
 
===Additional Parameters===
 
In addition to those in the basic syntax, the following parameters may be used:
 
In addition to those in the basic syntax, the following parameters may be used:
* '''LGA_note:''' a note that appears in <small>small text</small> below the LGA
 
 
* '''location_special:''' (replaces '''location''') the location where the junction is located - use for custom entries only, such as when an intersection is in multiple suburbs. Requires full wiki markup.
 
* '''location_special:''' (replaces '''location''') the location where the junction is located - use for custom entries only, such as when an intersection is in multiple suburbs. Requires full wiki markup.
 
* '''km2:''' use as the second measurement (km being the first) if an there are intersections with a road spread out between two points along the article route.
 
* '''km2:''' use as the second measurement (km being the first) if an there are intersections with a road spread out between two points along the article route.
Line 182: Line 71:
 
* '''place''' or '''bridge''' or '''tunnel:''' a feature, such as a bridge or tunnel. This will appear in a multicolumn cell (centre aligned) that spans the destinations and notes columns. Full wiki markup is required for links, otherwise the result will be plain text.
 
* '''place''' or '''bridge''' or '''tunnel:''' a feature, such as a bridge or tunnel. This will appear in a multicolumn cell (centre aligned) that spans the destinations and notes columns. Full wiki markup is required for links, otherwise the result will be plain text.
 
* '''pspan''' or '''bspan''' or '''tspan:''' number of rows the above multicolumn cell spans-if value=1, omit this parameter.
 
* '''pspan''' or '''bspan''' or '''tspan:''' number of rows the above multicolumn cell spans-if value=1, omit this parameter.
* Parameters that replace '''LGA''': The parameters in the table below allow you to enter the LGA name as plain text, and the template will generate the necessary piped link. For example, {{para|LGAC}}<code>Mitcham</code> will generate &nbsp;[[City of Mitcham|Mitcham]] , which links to the Wikipedia article [[City of Mitcham]]
 
{|class=wikitable
 
|-
 
!Parameter
 
!Type of LGA<br/>(name of article on Wikipedia)
 
|-
 
!LGAC
 
|"City of <name>"
 
|-
 
!LGA-C
 
|"<name> City"
 
|-
 
!LGARC
 
|"Rural City of <name>"
 
|-
 
!LGA-Co
 
|"<name> Council"
 
|-
 
!LGADC
 
|"District Council of <name>"
 
|-
 
!LGA-DC
 
|"<name> District Council"
 
|-
 
!LGAM
 
|"Municipality of <name>"
 
|-
 
!LGA-M
 
|"<name> Municipality"
 
|-
 
!LGA-R
 
|"<name> Region"
 
|-
 
!LGAS
 
|"Shire of <name>"
 
|-
 
!LGA-S
 
|"<name> Shire"
 
|-
 
!LGAAS
 
|"Aboriginal Shire of <name>"
 
|-
 
!LGAT
 
|"Town of <name>"
 
|}
 
  
 
Any parameter which is empty can be omitted.
 
Any parameter which is empty can be omitted.
  
 
==See also==
 
==See also==
*{{tl|jctname}}, {{tl|AUshield}} and {{tl|WAcity}}, are templates used to generate route shields and wikilinked destinations
+
*{{tl|jctname}}, {{tl|AUshield}} and {{tl|ACTcity}}, are templates used to generate route shields and wikilinked destinations
 
*{{tl|AUSinttop}}, a template that generates a [[MOS:RJL]]-compliant header for the junction list
 
*{{tl|AUSinttop}}, a template that generates a [[MOS:RJL]]-compliant header for the junction list
 
*{{tl|jctbtm}}, a template that closes the junction list table
 
*{{tl|jctbtm}}, a template that closes the junction list table

Revision as of 12:21, 14 April 2013

This is a template for generating an intersection or exit for an Australian Capital Territory road article. It is a member of the {{Jctint}} suite of templates.

General usage

This is the basic syntax you need to get a complete intersection table. Just copy and paste the code below:

{{AUSinttop|noLGA=yes}}
{{ACTint

|location=

|lspan=

|type=

|km=

|road=

|notes=

}}

{{Jctbtm}}

...and fill in the variables! For more entries, use this:

{{ACTint

|location=

|lspan=

|type=

|km=

|road=

|notes=

}}

Parameters

For the above parameters, here's what you should fill in:

  • location: the suburb the intersection is in. The text entered here will be wikilinked to <text entered>, Australian Capital Territory, so if the intersection is in multiple suburbs, you must use location_special (see below).
  • lspan: number of rows the location spans—if value=1, omit this parameter. If set, location (or location_special) should be omitted from the other rows it spans
  • type: use to specify a shading for that intersection's row. The permitted types are:
    • closed: for highway intersections or interchanges that are now closed to traffic
    • mplex or concur: for a route multiplexing terminus or concurrencies.
    • unbuilt: for unbuilt roadway intersections/interchanges.
    • incomplete: for incomplete intersections/interchanges where all movements are not supported (Northbound exit and southbound entrance, etc)
    • hov for interchanges that are only for High occupancy vehicle lanes
    • toll or etc for an interchange where tolls or electronic toll are collected
    • Note: If the type parameter is used, the table must include a colour key at the bottom of the table. Use {{LegendRJL}} instead of {{jctbtm}} to generate a compliant legend.
  • km: the distance, in kilometres, of the intersection from the start of the road. Only enter numerical values, as these will be used to automatically generate a Miles column. Use km2 if the location is in a range of kilometres (see below)
  • road: road that the article route intersects at this junction. This should be formatted as follows:<route shield/s> <wikilinked Road Name> <ndash> <wikilinked destinations>
    • Generate route shields using {{AUshield}}
    • If there are multiple roads (ie intersecting road changes name at this intersection), use a slash (/) to separate roads
    • Generate an ndash (–) and wikilinked destinations using {{ACTcity}}
    • If destinations are to be entered manually, an ndash can be generated by the HTML character code &ndash;
  • notes: any notes regarding that junction. This must include an explanation for any usage of the type-generated shading.

Additional Parameters

In addition to those in the basic syntax, the following parameters may be used:

  • location_special: (replaces location) the location where the junction is located - use for custom entries only, such as when an intersection is in multiple suburbs. Requires full wiki markup.
  • km2: use as the second measurement (km being the first) if an there are intersections with a road spread out between two points along the article route.
  • uspan: number of rows the units spans—if value=1, omit this parameter. If set, km and km2) should be omitted from the other rows it spans.
  • rcspan: number of columns the road cell spans-if value=1, omit this parameter. Set |rcspan=2 to generate a left aligned cell that spans both the destination and notes column. Do not use for features such as a rivers and bridges - see place below. Important: if using this parameter, set |notes=none to avoid the notes cell spilling over the edge of the table.
  • nspan: number of rows the notes spans—if value=1, omit this parameter. If set, notes should be omitted from the other rows it spans.
  • place or bridge or tunnel: a feature, such as a bridge or tunnel. This will appear in a multicolumn cell (centre aligned) that spans the destinations and notes columns. Full wiki markup is required for links, otherwise the result will be plain text.
  • pspan or bspan or tspan: number of rows the above multicolumn cell spans-if value=1, omit this parameter.

Any parameter which is empty can be omitted.

See also

  • {{jctname}}, {{AUshield}} and {{ACTcity}}, are templates used to generate route shields and wikilinked destinations
  • {{AUSinttop}}, a template that generates a MOS:RJL-compliant header for the junction list
  • {{jctbtm}}, a template that closes the junction list table
  • {{jcttop}}, {{CTint}}, {{ILint}}, {{INint}}, {{MIint}}, {{MNint}}, {{NHint}}, {{NYint}}, {{OHint}}, {{PAint}}, {{VTint}}, {{WIint}} are other templates in the {{Jctint}} suite, used in American road junction lists
  • {{jctbridge}}, a template that generates rows for bridge crossings
  • {{jctco}}, a template that generates rows for counties without junctions
  • {{jctgap}}, a template for generating a row for a gap in the route
  • {{jcttunnel}}, a template that generates rows for tunnel crossings
  • {{jctrestarea}}, a template that generates rows for rest areas, service areas and the like
  • {{legendRJL}}, a template for creating a MOS:RJL-compliant color key at the bottom of the table