Template:RoadType/doc View history

(Created doc)
 
(Updated documentation)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Overview ==
== Overview ==


This template currently links to the USA Road type page specific to the road type entered, along with a generic link to the road type page for all other countries. When other countries replicate the same details as in the USA page, we can consider automating the link to go to country specific pages for one road type.
This template creates a link to the section name or {{tl|Anchor}} entered as the only unnamed parameter on the [[Road types]] page. It does not perform any error checking, so if the passed parameter is not a valid section name, the user will be sent to the top of the page.


== Usage ==
== Usage ==
The only parameter is the name of the subsection or anchor on the [[Road types/USA]] page. The template also provides a link to the general [[Road types]] page for all other countries.
The only parameter is the name of the subsection or anchor on the [[Road types]] page. Excluding a parameter or using a parameter not listed as an anchor or subsection will link to the general [[Road types]] page.
 
== Examples ==
{{nowrapcode|<nowiki>{{RoadType|Railroad}}</nowiki>}} results in:<br /><br />
{{RoadType|Railroad}}<br /><br />
 
{{nowrapcode|<nowiki>{{RoadType|Primary Street}}</nowiki>}} results in:<br /><br />
{{RoadType|Primary Street}}<br /><br />


<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Templates]]<!-- likely need to move to a template subgroup.-->
[[Category:Linking templates]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->


</includeonly>
</includeonly>

Latest revision as of 14:41, 25 August 2022

This is a documentation subpage for Template:RoadType.
It contains usage information, categories and other content that is not part of the original template page.

Overview

This template creates a link to the section name or {{Anchor}} entered as the only unnamed parameter on the Road types page. It does not perform any error checking, so if the passed parameter is not a valid section name, the user will be sent to the top of the page.

Usage

The only parameter is the name of the subsection or anchor on the Road types page. Excluding a parameter or using a parameter not listed as an anchor or subsection will link to the general Road types page.

Examples

{{RoadType|Railroad}} results in:

For more information on Railroad select this link.

{{RoadType|Primary Street}} results in:

For more information on Primary Street select this link.