Template:Main

From eRepublik Official Wiki
Jump to navigation Jump to search
Languages: 
EnglishIcon-English.png
ShqipIcon-Albania.png
БългарскиIcon-Bulgaria.png
HrvatskiIcon-Croatia.png
فارسیIcon-Iran.png
FrançaisIcon-France.png
DeutschIcon-Germany.png
ΕλληνικάIcon-Greece.png
ItalianoIcon-Italy.png
LatviešuIcon-Latvia.png
МакедонскиIcon-North Macedonia.png
PolskiIcon-Poland.png
RomânăIcon-Romania.png
TürkçeIcon-Turkey.png


[edit] [purge]

Documentation


Template:Main is to be used at the beginning of a section or a topic. It is used to lead to a bigger article with more information about the section or the topic in question.

Usage

There are two main ways how to use the template; either to link it to a single article or multiple articles.

Single article

If you would like to lead the reader to a single article. Let's say you would like to lead her/him to the Raw materials page.

{{Main|Raw materials}}

Which will create:

Main article: Raw materials

If you would like to give a better description of the page you are leading the person...

{{Main|1=Raw materials|l1=List of all raw materials}}

Which will create:

Multiple article

If you would like to lead the reader to multiple articles. Let's say you would like to lead her/him to the Raw materials and Productivity pages.

{{Main|Raw materials|Productivity}}

Which will create:

Main articles: Raw materials and Productivity

If you would like to give a better description of the pages you are leading the person...

{{Main|1=Raw materials|l1=List of all raw materials|2=Productivity|l2=Productivity formula}}

Which will create:


If you would like to lead the reader to even more multiple articles. Let's say you would like to lead her/him to the Buildings, Raw materials and Productivity pages.

{{Main|Buildings|Raw materials|Productivity}}

Which will create:

Main articles: Buildings, Raw materials, and Productivity

If you would like to give a better description of the pages you are leading the person...

{{Main|1=Buildings|l1=List of all factories you can produce raw materials|2=Raw materials|l2=List of all raw materials|3=Productivity|l3=Productivity formula}}

Which will create:

Important notes

  • With one Main template, it is possible to link up to 10 articles
  • When you want to "label" the link where you guide the reader, please use both codes 1= for the link and l1= for the name of the link you would like it to show
  • It is important if you are using multiple articles with labels you need to use codes for each of the articles you are linking; like in an example beforehand

Translations

To translate the template into your own language, simply show more languages on the top menu of this template, click on the flag of the language you want to translate, copy the following code and replace ONLY THE FOLLOWING WORDS (written in order as they appear in the code):

Main articles - will be shown if multiple articles are linked
Main article - will be shown if a single article is linked
and - will be shown if multiple articles are linked (make sure you change all 9 words "and" without removing the code pieces for empty space)
(too many parameters in {{Main}} template) - will be shown if more than 10 articles are linked
Copy the code from Template:Main/English and replace [[Category:Template Backup]] with {{LangMenu}}[[Category:Translated Templates]]