Template:GRCinttop
This template creates a WP:RJL-compliant header for exit lists of roads in Greece: it does not call {{Jcttop/core}} for improved efficiency.
It can be combined with {{GRCint}} to create a complete, standardized table for a route.
Usage
[edit]The basic usage is {{GRCinttop}}, which will give you the regional unit, distance (in both kilometres and miles), destination and notes columns. Use |value, after the template name and before any additional parameters, to add or remove columns:
{{GRCinttop|municipality}}renames the regional unit column to municipality, which is useful if a route does not cross many regional units{{GRCinttop|nounits}}removes the distance column{{GRCinttop|exit}}adds the exit number column{{GRCinttop|name}}adds the exit name column{{GRCinttop|nonotes}}removes the notes column
Multiple values may be used, separated by a comma (e.g. exit,name).
Exit lists must end with {{Jctbtm}}. Only use {{Jctbtm|col=n}}, where n is the number of columns, if the header has seven or more columns.
Reference parameters
[edit]This template accepts the following parameters for citing sources, all optional:
- sub_ref adds a reference for regional units or municipalities in the table. The reference will be placed next to the "Regional unit" or "Municipality" heading
- unit_ref adds a reference for metric distances in the table. The reference will be placed next to the "km" heading
- unit2_ref adds a reference for imperial distances in the table. The reference will be placed next to the "mi" heading
- exit_ref adds a reference for exit numbers in the table. The reference will be placed next to the "Exit" heading
- name_ref adds a reference for exit names in the table. The reference will be placed next to the "Name" heading
- dest_ref adds a reference for destinations in the table. The reference will be placed next to the "Destinations" heading
For notes, use references in applicable cells.
Examples
[edit]| Markup | Renders as | |||||||
|---|---|---|---|---|---|---|---|---|
{{GRCinttop}} |
| |||||||
{{GRCinttop|municipality}} |
| |||||||
{{GRCinttop|nounits}} |
| |||||||
{{GRCinttop|exit}} |
| |||||||
{{GRCinttop|name}} |
| |||||||
{{GRCinttop|nonotes}} |
| |||||||
{{GRCinttop|municipality,exit,name}} |
| |||||||
| {{GRCinttop|municipality,exit,name|sub_ref=<ref>Reference for regional units go here.</ref>|unit_ref=<ref name="units">Reference for distances go here.</ref>|unit2_ref=<ref name="units"/>|exit_ref=<ref name="exits">Reference for exits and exit names go here.</ref>|name_ref=<ref name="exits"/>|dest_ref=<ref>Reference for destinations go here.</ref>}} |
See also
[edit]This template can be used with: