Difference between revisions of "Template:Neighbors/doc"
Democr1tus (Talk | contribs) m |
(translation info added; minor corrections) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
− | This template creates periodically updated neighbors list. | + | This template creates a periodically updated neighbors list. |
==Usage== | ==Usage== | ||
<pre>{{Neighbors}}</pre> | <pre>{{Neighbors}}</pre> | ||
Line 7: | Line 7: | ||
<pre>{{Neighbors|Neighbor 1|Neighbor 2|Neighbor 3|Neighbor 4}} and so on, up to 20</pre> | <pre>{{Neighbors|Neighbor 1|Neighbor 2|Neighbor 3|Neighbor 4}} and so on, up to 20</pre> | ||
==Examples== | ==Examples== | ||
− | <span style="color:red;">Note: examples are based | + | <span style="color:red;">Note: examples are based on different regions, the first one is [[California]] and the second one is [[Rajasthan]].</span><br/> |
− | Example 1: | + | Example 1 (California): |
<pre>{{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada}}</pre> | <pre>{{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada}}</pre> | ||
on [[California]] page gives:<br> | on [[California]] page gives:<br> | ||
{{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada|region=California}} | {{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada|region=California}} | ||
− | Example 2: | + | Example 2 (Rajasthan): |
<pre>{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}</pre> | <pre>{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}</pre> | ||
on [[Rajasthan]] page gives:<br> | on [[Rajasthan]] page gives:<br> | ||
{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh|region=Rajasthan}} | {{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh|region=Rajasthan}} | ||
+ | ==Translation== | ||
+ | To translate this template, simply show more languages on the top of this template, click on the flag of the language you want to translate, copy the following code, replace ONLY THE TEXT "'''is neighbored by the following regions:'''" with the translation in your language. | ||
+ | |||
+ | ===Translation template page should look like=== | ||
+ | <nowiki><noinclude>{{LangMenu|Template:Neighbors}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude><includeonly>is neighbored by the following regions:</includeonly></nowiki> |
Latest revision as of 11:03, 30 March 2023
To view the Template page itself, see Template:Neighbors.
This template creates a periodically updated neighbors list.
Contents
Usage
{{Neighbors}}
Parameters
Basic usage is:
{{Neighbors|Neighbor 1|Neighbor 2|Neighbor 3|Neighbor 4}} and so on, up to 20
Examples
Note: examples are based on different regions, the first one is California and the second one is Rajasthan.
Example 1 (California):
{{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada}}
on California page gives:
To view the Template page itself, see Template:Neighbors.
This template creates a periodically updated neighbors list.
Usage
{{Neighbors}}
Parameters
Basic usage is:
{{Neighbors|Neighbor 1|Neighbor 2|Neighbor 3|Neighbor 4}} and so on, up to 20
Examples
Note: examples are based on different regions, the first one is California and the second one is Rajasthan.
Example 1 (California):
{{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada}}
on California page gives:
Template loop detected: Template:Neighbors
Example 2 (Rajasthan):
{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}
on Rajasthan page gives:
Template loop detected: Template:Neighbors
Translation
To translate this template, simply show more languages on the top of this template, click on the flag of the language you want to translate, copy the following code, replace ONLY THE TEXT "is neighbored by the following regions:" with the translation in your language.
Translation template page should look like
<noinclude>{{LangMenu|Template:Neighbors}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude><includeonly>is neighbored by the following regions:</includeonly>
- Netherlands, Arizona
- Mexico, Baja
- USA, Hawaii
- USA, Nevada
- United Kingdom, Northwest of Mexico
- USA, Nevada
Example 2 (Rajasthan):
{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}
on Rajasthan page gives:
To view the Template page itself, see Template:Neighbors.
This template creates a periodically updated neighbors list.
Usage
{{Neighbors}}
Parameters
Basic usage is:
{{Neighbors|Neighbor 1|Neighbor 2|Neighbor 3|Neighbor 4}} and so on, up to 20
Examples
Note: examples are based on different regions, the first one is California and the second one is Rajasthan.
Example 1 (California):
{{Neighbors|Arizona|Baja|Hawaii|Nevada|Northwest of Mexico|Nevada}}
on California page gives:
Template loop detected: Template:Neighbors
Example 2 (Rajasthan):
{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}
on Rajasthan page gives:
Template loop detected: Template:Neighbors
Translation
To translate this template, simply show more languages on the top of this template, click on the flag of the language you want to translate, copy the following code, replace ONLY THE TEXT "is neighbored by the following regions:" with the translation in your language.
Translation template page should look like
<noinclude>{{LangMenu|Template:Neighbors}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude><includeonly>is neighbored by the following regions:</includeonly>
- Canada, Gujarat
- Bulgaria, Madhya Pradesh
- India, Northern India
- Nigeria, Punjab
- Finland, Sindh
- Switzerland, Uttar Pradesh
Translation
To translate this template, simply show more languages on the top of this template, click on the flag of the language you want to translate, copy the following code, replace ONLY THE TEXT "is neighbored by the following regions:" with the translation in your language.
Translation template page should look like
<noinclude>{{LangMenu|Template:Neighbors}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude><includeonly>is neighbored by the following regions:</includeonly>