Difference between revisions of "Template:Neighbors"
From eRepublik Official Wiki
m |
m (langmenu added;) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{{region|}}} | {{{region|}}} | {{BASEPAGENAME}}}} | + | <includeonly>{{#if: {{{region|}}} | {{{region|}}} | {{BASEPAGENAME}}}} {{Neighbors/{{TemplateLang|Neighbors}}}} |
− | {{#if:{{{1|}}}|*{{CountryLink|{{Regions/Owners|{{{1|}}}}}}}, [[{{{1|}}}]]|}}{{#if:{{{2|}}}|*{{CountryLink|{{Regions/Owners|{{{2|}}}}}}}, [[{{{2|}}}]]|}}{{#if:{{{3|}}}|*{{CountryLink|{{Regions/Owners|{{{3|}}}}}}}, [[{{{3|}}}]]|}}{{#if:{{{4|}}}|*{{CountryLink|{{Regions/Owners|{{{4|}}}}}}}, [[{{{4|}}}]]|}}{{#if:{{{5|}}}|*{{CountryLink|{{Regions/Owners|{{{5|}}}}}}}, [[{{{5|}}}]]|}}{{#if:{{{6|}}}|*{{CountryLink|{{Regions/Owners|{{{6|}}}}}}}, [[{{{6|}}}]]|}}{{#if:{{{7|}}}|*{{CountryLink|{{Regions/Owners|{{{7|}}}}}}}, [[{{{7|}}}]]|}}{{#if:{{{8|}}}|*{{CountryLink|{{Regions/Owners|{{{8|}}}}}}}, [[{{{8|}}}]]|}}{{#if:{{{9|}}}|*{{CountryLink|{{Regions/Owners|{{{9|}}}}}}}, [[{{{9|}}}]]|}}{{#if:{{{10|}}}|*{{CountryLink|{{Regions/Owners|{{{10|}}}}}}}, [[{{{10|}}}]]|}}{{#if:{{{11|}}}|*{{CountryLink|{{Regions/Owners|{{{11|}}}}}}}, [[{{{11|}}}]]|}}{{#if:{{{12|}}}|*{{CountryLink|{{Regions/Owners|{{{12|}}}}}}}, [[{{{12|}}}]]|}}{{#if:{{{13|}}}|*{{CountryLink|{{Regions/Owners|{{{13|}}}}}}}, [[{{{13|}}}]]|}}{{#if:{{{14|}}}|*{{CountryLink|{{Regions/Owners|{{{14|}}}}}}}, [[{{{14|}}}]]|}}{{#if:{{{15|}}}|*{{CountryLink|{{Regions/Owners|{{{15|}}}}}}}, [[{{{15|}}}]]|}}{{#if:{{{16|}}}|*{{CountryLink|{{Regions/Owners|{{{16|}}}}}}}, [[{{{16|}}}]]|}}{{#if:{{{17|}}}|*{{CountryLink|{{Regions/Owners|{{{17|}}}}}}}, [[{{{17|}}}]]|}}{{#if:{{{18|}}}|*{{CountryLink|{{Regions/Owners|{{{18|}}}}}}}, [[{{{18|}}}]]|}}{{#if:{{{19|}}}|*{{CountryLink|{{Regions/Owners|{{{19|}}}}}}}, [[{{{19|}}}]]|}}{{#if:{{{20|}}}|*{{CountryLink|{{Regions/Owners|{{{20|}}}}}}}, [[{{{20|}}}]]|}}</includeonly> | + | {{#if:{{{1|}}}|*{{CountryLink|{{Regions/Owners|{{{1|}}}}}|{{Regions/Owners|{{{1|}}}}}}}, [[{{Neighbors/CreateLink|{{{1|}}}}}|{{{1|}}}]]|}}{{#if:{{{2|}}}|*{{CountryLink|{{Regions/Owners|{{{2|}}}}}|{{Regions/Owners|{{{2|}}}}}}}, [[{{Neighbors/CreateLink|{{{2|}}}}}|{{{2|}}}]]|}}{{#if:{{{3|}}}|*{{CountryLink|{{Regions/Owners|{{{3|}}}}}|{{Regions/Owners|{{{3|}}}}}}}, [[{{Neighbors/CreateLink|{{{3|}}}}}|{{{3|}}}]]|}}{{#if:{{{4|}}}|*{{CountryLink|{{Regions/Owners|{{{4|}}}}}|{{Regions/Owners|{{{4|}}}}}}}, [[{{Neighbors/CreateLink|{{{4|}}}}}|{{{4|}}}]]|}}{{#if:{{{5|}}}|*{{CountryLink|{{Regions/Owners|{{{5|}}}}}|{{Regions/Owners|{{{5|}}}}}}}, [[{{Neighbors/CreateLink|{{{5|}}}}}|{{{5|}}}]]|}}{{#if:{{{6|}}}|*{{CountryLink|{{Regions/Owners|{{{6|}}}}}|{{Regions/Owners|{{{6|}}}}}}}, [[{{Neighbors/CreateLink|{{{6|}}}}}|{{{6|}}}]]|}}{{#if:{{{7|}}}|*{{CountryLink|{{Regions/Owners|{{{7|}}}}}|{{Regions/Owners|{{{7|}}}}}}}, [[{{Neighbors/CreateLink|{{{7|}}}}}|{{{7|}}}]]|}}{{#if:{{{8|}}}|*{{CountryLink|{{Regions/Owners|{{{8|}}}}}|{{Regions/Owners|{{{8|}}}}}}}, [[{{Neighbors/CreateLink|{{{8|}}}}}|{{{8|}}}]]|}}{{#if:{{{9|}}}|*{{CountryLink|{{Regions/Owners|{{{9|}}}}}|{{Regions/Owners|{{{9|}}}}}}}, [[{{Neighbors/CreateLink|{{{9|}}}}}|{{{9|}}}]]|}}{{#if:{{{10|}}}|*{{CountryLink|{{Regions/Owners|{{{10|}}}}}|{{Regions/Owners|{{{10|}}}}}}}, [[{{Neighbors/CreateLink|{{{10|}}}}}|{{{10|}}}]]|}}{{#if:{{{11|}}}|*{{CountryLink|{{Regions/Owners|{{{11|}}}}}|{{Regions/Owners|{{{11|}}}}}}}, [[{{Neighbors/CreateLink|{{{11|}}}}}|{{{11|}}}]]|}}{{#if:{{{12|}}}|*{{CountryLink|{{Regions/Owners|{{{12|}}}}}|{{Regions/Owners|{{{12|}}}}}}}, [[{{Neighbors/CreateLink|{{{12|}}}}}|{{{12|}}}]]|}}{{#if:{{{13|}}}|*{{CountryLink|{{Regions/Owners|{{{13|}}}}}|{{Regions/Owners|{{{13|}}}}}}}, [[{{Neighbors/CreateLink|{{{13|}}}}}|{{{13|}}}]]|}}{{#if:{{{14|}}}|*{{CountryLink|{{Regions/Owners|{{{14|}}}}}|{{Regions/Owners|{{{14|}}}}}}}, [[{{Neighbors/CreateLink|{{{14|}}}}}|{{{14|}}}]]|}}{{#if:{{{15|}}}|*{{CountryLink|{{Regions/Owners|{{{15|}}}}}|{{Regions/Owners|{{{15|}}}}}}}, [[{{Neighbors/CreateLink|{{{15|}}}}}|{{{15|}}}]]|}}{{#if:{{{16|}}}|*{{CountryLink|{{Regions/Owners|{{{16|}}}}}|{{Regions/Owners|{{{16|}}}}}}}, [[{{Neighbors/CreateLink|{{{16|}}}}}|{{{16|}}}]]|}}{{#if:{{{17|}}}|*{{CountryLink|{{Regions/Owners|{{{17|}}}}}|{{Regions/Owners|{{{17|}}}}}}}, [[{{Neighbors/CreateLink|{{{17|}}}}}|{{{17|}}}]]|}}{{#if:{{{18|}}}|*{{CountryLink|{{Regions/Owners|{{{18|}}}}}|{{Regions/Owners|{{{18|}}}}}}}, [[{{Neighbors/CreateLink|{{{18|}}}}}|{{{18|}}}]]|}}{{#if:{{{19|}}}|*{{CountryLink|{{Regions/Owners|{{{19|}}}}}|{{Regions/Owners|{{{19|}}}}}}}, [[{{Neighbors/CreateLink|{{{19|}}}}}|{{{19|}}}]]|}}{{#if:{{{20|}}}|*{{CountryLink|{{Regions/Owners|{{{20|}}}}}|{{Regions/Owners|{{{20|}}}}}}}, [[{{Neighbors/CreateLink|{{{20|}}}}}|{{{20|}}}]]|}}</includeonly><noinclude>{{LangMenu|Template:Neighbors}} |
− | <noinclude>{{Documentation}}</noinclude> | + | {{Documentation}}[[Category:Complex]] |
+ | </noinclude> |
Latest revision as of 09:42, 30 March 2023
Languages: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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:
California is neighbored by the following regions:
- USA, Arizona
- United Kingdom, Baja
- USA, Hawaii
- Netherlands, Nevada
- Mexico, Northwest of Mexico
- Netherlands, Nevada
Example 2 (Rajasthan):
{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}
on Rajasthan page gives:
Rajasthan is neighbored by the following regions:
- 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.