Template:UK NCN route/sandbox
[[National Cycle Route {{{route}}}| {{{route}}} ]]
This is the template sandbox page for Template:UK NCN route (diff). |
This template displays formatted text with an appropriate link for National Cycle Network routes in the United Kingdom.
Usage
[edit]Code | Result | Links to |
---|---|---|
{{UK NCN route|7}} or {{UK NCN route|route=7}} |
7 | National Cycle Network National Cycle Route 7 |
{{UK NCN route|72}} or {{UK NCN route|route=72}} |
72 | National Cycle Network National Cycle Route 72 |
{{UK NCN route|725}} or {{UK NCN route|route=725}} |
725 | National Cycle Network National Cycle Route 725 |
Adding the optional parameter |regional=yes
or |reg=yes
will change from a national to a regional route:
Note: regional routes are not wikilinked.
The default height for the route number is 12 pixels, but this can be changed by specifying a different value for the optional |height=
parameter:
Adding the optional parameter |symbol=false
or |symbol=no
or |symbol=n
will omit the cycle route symbol (e.g. for use in a list):
{{UK NCN route|7|symbol=false}}
→ 7{{UK NCN route|72|symbol=no}}
→ 72{{UK NCN route|725|symbol=n}}
→ 725
TemplateData
[edit]TemplateData for UK NCN route
This template displays formatted text with an appropriate image and link for National Cycle Network routes in the UK
Parameter | Description | Type | Status | |
---|---|---|---|---|
NCN Route | route 1 | National Cycle Network route number
| Number | required |
Height | height | Route number height, in pixels
| Number | optional |
Symbol | symbol | Set to ''no'' or ''false'' if you want to omit the cycle route symbol (e.g. for use in lists, etc.)
| Boolean | optional |
Regional | regional reg | Set to ''yes'' or ''true'' if the route is a regional one (blue background for the number).
| Boolean | optional |
reg | reg | no description | Unknown | optional |