Difference between revisions of "Template:LocalLinkBox/doc"

From Wazeopedia
(Created page with "{{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> To be added on bottom of all global pages so they can link directly to the related local pages. For each country in...")
 
Line 4: Line 4:
  
 
For each country in the list, clicking the link will go to their main page, unless a specific link is added.
 
For each country in the list, clicking the link will go to their main page, unless a specific link is added.
To add a link for you country you need to add a parameter. The name of the parameter is your country name, and the value of the parameter is the FULLPAGENAME of the page in your wiki you want to link to. For the country name you must use the spelling as it is in the URL for you wiki.
+
To add a link for you country you need to add a parameter. The name of the parameter is your country name, and the value of the parameter is the FULLPAGENAME of the page in your wiki you want to link to. For the country name you must use the spelling as it is spelled in the country dropdown on the left sidebar for you wiki.
 
{{Para|Country|FULLPAGENAME}} for example: {{Para|UnitedKingdom|Road Names}}<br>
 
{{Para|Country|FULLPAGENAME}} for example: {{Para|UnitedKingdom|Road Names}}<br>
 
In the example below all countries link to their Main Page, but the USA and the UK link directly to a page. To add another country you just add the parameter on a new line.
 
In the example below all countries link to their Main Page, but the USA and the UK link directly to a page. To add another country you just add the parameter on a new line.
 
  <nowiki>{{</nowiki>[[Template:LocalLinkBox|LocalLinkBox]]
 
  <nowiki>{{</nowiki>[[Template:LocalLinkBox|LocalLinkBox]]
 
  |USA = Road Names
 
  |USA = Road Names
  |UnitedKingdom = Road Names and Types/UK
+
  |United Kingdom = Road Names and Types/UK
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
{{LocalLinkBox|USA=Road Names|UnitedKingdom=Road Names and Types/UK}}
+
{{LocalLinkBox|USA=Road Names|United Kingdom=Road Names and Types/UK}}
 
<includeonly>
 
<includeonly>
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->

Revision as of 05:00, 21 February 2017

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

To be added on bottom of all global pages so they can link directly to the related local pages.

For each country in the list, clicking the link will go to their main page, unless a specific link is added. To add a link for you country you need to add a parameter. The name of the parameter is your country name, and the value of the parameter is the FULLPAGENAME of the page in your wiki you want to link to. For the country name you must use the spelling as it is spelled in the country dropdown on the left sidebar for you wiki. |Country=FULLPAGENAME for example: |UnitedKingdom=Road Names
In the example below all countries link to their Main Page, but the USA and the UK link directly to a page. To add another country you just add the parameter on a new line.

{{LocalLinkBox
|USA = Road Names
|United Kingdom = Road Names and Types/UK
}}