Difference between revisions of "Template:ELink/doc"

From eRepublik Official Wiki
Jump to: navigation, search
m (cat added)
m (Documentation updated.)
Line 1: Line 1:
== Usage ==
+
{{Tl|eLink}} is a template easily allowing to create links to the game by their IDs.
 +
 
 +
==Usage==
 
<pre>{{eLink|article,profile,company,...|number|text}}</pre>
 
<pre>{{eLink|article,profile,company,...|number|text}}</pre>
  
== Linking possibilities ==
+
==Linking possibilities==
 
You can use this template to link following pages withing eRepublik by adding the one of the following words as first parameter:
 
You can use this template to link following pages withing eRepublik by adding the one of the following words as first parameter:
* profile or citizen: Link to citizen profile
+
* profile or citizen: link to citizen profile
* article: Link to newspaper article
+
* article: link to newspaper article
* newspaper: Link to newspaper
+
* newspaper: link to newspaper
* organization: Link to organization profile
+
* organization: link to organization profile
* war: Link to war details
+
* war: link to war details
* company: Link to company presentation page
+
* company: link to company presentation page
* forum or topic: Link to forum topic
+
* country: link to country profile
* country: Link to country profile
+
* party: link to party page
* party: Link to party page
+
* battle: link to battlefield
* battle: Link to battlefield
+
* land: link to someone's land
* land: Link to someone's land
+
* unit or militaryunit: link to military unit profile
* unit or militaryunit: Link to military unit profile
+
* update: link to game update
 +
* post: link to post
 +
* unitpost: link to military unit post
 +
* partypost: link to party post
  
 
Number is the ID found from the URL (a many-digit number in the URL, ONLY NUMBERS). Exception: link to country page requires the country link (found from URL of come page about the country) - not country ID.
 
Number is the ID found from the URL (a many-digit number in the URL, ONLY NUMBERS). Exception: link to country page requires the country link (found from URL of come page about the country) - not country ID.
  
=== Examples ===
+
===Examples===
 
* <code><nowiki>{{eLink|profile|2|Plato}}</nowiki></code>
 
* <code><nowiki>{{eLink|profile|2|Plato}}</nowiki></code>
 
** {{eLink|profile|2|Plato}}
 
** {{eLink|profile|2|Plato}}
Line 32: Line 37:
 
** {{eLink|country|United-Kingdom|United Kingdom}}
 
** {{eLink|country|United-Kingdom|United Kingdom}}
  
* <code><nowiki>{{eLink|topic|110827|New raw materials - all of them can be yours!}}</nowiki></code>
+
* <code><nowiki>{{eLink|update|10|Health to Energy}}</nowiki></code>
** {{eLink|topic|110626|New raw materials - all of them can be yours!}}
+
** {{eLink|update|10|Health to Energy}}
 +
 
 +
* <code><nowiki>{{eLink|post|15909524|Sample post}}</nowiki></code>
 +
** {{eLink|post|15909524|Sample post}}
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 13:17, 17 February 2015

{{eLink}} is a template easily allowing to create links to the game by their IDs.

Usage

{{eLink|article,profile,company,...|number|text}}

Linking possibilities

You can use this template to link following pages withing eRepublik by adding the one of the following words as first parameter:

  • profile or citizen: link to citizen profile
  • article: link to newspaper article
  • newspaper: link to newspaper
  • organization: link to organization profile
  • war: link to war details
  • company: link to company presentation page
  • country: link to country profile
  • party: link to party page
  • battle: link to battlefield
  • land: link to someone's land
  • unit or militaryunit: link to military unit profile
  • update: link to game update
  • post: link to post
  • unitpost: link to military unit post
  • partypost: link to party post

Number is the ID found from the URL (a many-digit number in the URL, ONLY NUMBERS). Exception: link to country page requires the country link (found from URL of come page about the country) - not country ID.

Examples

  • {{eLink|profile|2|Plato}}