Difference between revisions of "Template:Regions"

From eRepublik Official Wiki
Jump to: navigation, search
m (Protected "Template:Regions": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
m
 
(3 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
{{Regions/Regions|{{{country|{{Regions/Owners|{{{1|}}}}}}}}}}
 
{{Regions/Regions|{{{country|{{Regions/Owners|{{{1|}}}}}}}}}}
 
|}
 
|}
</center></includeonly>
+
</center>
<noinclude>
+
{{#if:{{{country|}}}||{{#ifeq:{{FULLPAGENAME}}|Template:Regions||{{#ifeq:{{Regions/Owners|{{{1|}}}}}|FAIL|[[Category:Regions not assigned to a country]]|}}}}}}</includeonly><noinclude>
 
{{Regions|Aland}}
 
{{Regions|Aland}}
 
This template is used to show regions owned by countries in the region page. When you create a page for new region, add <nowiki>{{Regions|{{BASEPAGENAME}}}}</nowiki> to the page.
 
This template is used to show regions owned by countries in the region page. When you create a page for new region, add <nowiki>{{Regions|{{BASEPAGENAME}}}}</nowiki> to the page.
Line 15: Line 15:
 
{{Regions|country=Finland}}
 
{{Regions|country=Finland}}
  
This template will be updated using eRep API normally once a day.
+
This template will be updated normally once a month.
  
 
== Customizing ==
 
== Customizing ==

Latest revision as of 03:27, 22 March 2016

This template is used to show regions owned by countries in the region page. When you create a page for new region, add {{Regions|{{BASEPAGENAME}}}} to the page.

To show "Regions of country" add the country name as country=name| parameter. For example {{Regions|country=Finland}} will produce


This template will be updated normally once a month.

Customizing

There are few ways of customizing this template.

Changing the color of the header

To change the color of the header, you need to add an entry for your country to Template:Regions/Header with background:#XXXXXX - CSS property. See other entries to get an example about entering the value for your country.

Note: It's important that you use the same name for your country as can be found here. Spelling it in any other way will not work.

Changing the color of the header text

To change the color of the header text, you need to add an entry for your country to Template:Regions/HeaderText with "thenameofthecolor" -code. See other entries to get an example about entering the value for your country.

Note: It's important that you use the same name for your country as can be found here. Spelling it in any other way will not work.