Difference between revisions of "Template:Neighbors"

From eRepublik Official Wiki
Jump to: navigation, search
m (removing extra line)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LangMenu}}
 
 
 
<includeonly>{{#if: {{{region|}}} | {{{region|}}} | {{BASEPAGENAME}}}} is neighbored by following regions:
 
<includeonly>{{#if: {{{region|}}} | {{{region|}}} | {{BASEPAGENAME}}}} is neighbored by following regions:
{{#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|}}}}}}}, [[{{Neighbors/CreateLink|{{{1|}}}}}|{{{1|}}}]]|}}{{#if:{{{2|}}}|*{{CountryLink|{{Regions/Owners|{{{2|}}}}}}}, [[{{Neighbors/CreateLink|{{{2|}}}}}|{{{2|}}}]]|}}{{#if:{{{3|}}}|*{{CountryLink|{{Regions/Owners|{{{3|}}}}}}}, [[{{Neighbors/CreateLink|{{{3|}}}}}|{{{3|}}}]]|}}{{#if:{{{4|}}}|*{{CountryLink|{{Regions/Owners|{{{4|}}}}}}}, [[{{Neighbors/CreateLink|{{{4|}}}}}|{{{4|}}}]]|}}{{#if:{{{5|}}}|*{{CountryLink|{{Regions/Owners|{{{5|}}}}}}}, [[{{Neighbors/CreateLink|{{{5|}}}}}|{{{5|}}}]]|}}{{#if:{{{6|}}}|*{{CountryLink|{{Regions/Owners|{{{6|}}}}}}}, [[{{Neighbors/CreateLink|{{{6|}}}}}|{{{6|}}}]]|}}{{#if:{{{7|}}}|*{{CountryLink|{{Regions/Owners|{{{7|}}}}}}}, [[{{Neighbors/CreateLink|{{{7|}}}}}|{{{7|}}}]]|}}{{#if:{{{8|}}}|*{{CountryLink|{{Regions/Owners|{{{8|}}}}}}}, [[{{Neighbors/CreateLink|{{{8|}}}}}|{{{8|}}}]]|}}{{#if:{{{9|}}}|*{{CountryLink|{{Regions/Owners|{{{9|}}}}}}}, [[{{Neighbors/CreateLink|{{{9|}}}}}|{{{9|}}}]]|}}{{#if:{{{10|}}}|*{{CountryLink|{{Regions/Owners|{{{10|}}}}}}}, [[{{Neighbors/CreateLink|{{{10|}}}}}|{{{10|}}}]]|}}{{#if:{{{11|}}}|*{{CountryLink|{{Regions/Owners|{{{11|}}}}}}}, [[{{Neighbors/CreateLink|{{{11|}}}}}|{{{11|}}}]]|}}{{#if:{{{12|}}}|*{{CountryLink|{{Regions/Owners|{{{12|}}}}}}}, [[{{Neighbors/CreateLink|{{{12|}}}}}|{{{12|}}}]]|}}{{#if:{{{13|}}}|*{{CountryLink|{{Regions/Owners|{{{13|}}}}}}}, [[{{Neighbors/CreateLink|{{{13|}}}}}|{{{13|}}}]]|}}{{#if:{{{14|}}}|*{{CountryLink|{{Regions/Owners|{{{14|}}}}}}}, [[{{Neighbors/CreateLink|{{{14|}}}}}|{{{14|}}}]]|}}{{#if:{{{15|}}}|*{{CountryLink|{{Regions/Owners|{{{15|}}}}}}}, [[{{Neighbors/CreateLink|{{{15|}}}}}|{{{15|}}}]]|}}{{#if:{{{16|}}}|*{{CountryLink|{{Regions/Owners|{{{16|}}}}}}}, [[{{Neighbors/CreateLink|{{{16|}}}}}|{{{16|}}}]]|}}{{#if:{{{17|}}}|*{{CountryLink|{{Regions/Owners|{{{17|}}}}}}}, [[{{Neighbors/CreateLink|{{{17|}}}}}|{{{17|}}}]]|}}{{#if:{{{18|}}}|*{{CountryLink|{{Regions/Owners|{{{18|}}}}}}}, [[{{Neighbors/CreateLink|{{{18|}}}}}|{{{18|}}}]]|}}{{#if:{{{19|}}}|*{{CountryLink|{{Regions/Owners|{{{19|}}}}}}}, [[{{Neighbors/CreateLink|{{{19|}}}}}|{{{19|}}}]]|}}{{#if:{{{20|}}}|*{{CountryLink|{{Regions/Owners|{{{20|}}}}}}}, [[{{Neighbors/CreateLink|{{{20|}}}}}|{{{20|}}}]]|}}</includeonly><noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>
+

Revision as of 15:24, 30 November 2018

[edit] [purge]

Documentation

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:
California is neighbored by the following regions:

Example 2 (Rajasthan):

{{Neighbors|Gujarat|Madhya Pradesh|Northern India|Punjab|Sindh|Uttar Pradesh}}

on Rajasthan page gives:
Rajasthan is neighbored by the following regions:

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>