Difference between revisions of "Template:ELink/doc"

From eRepublik Official Wiki
Jump to: navigation, search
m (Documentation updated.)
(update)
Line 2: Line 2:
  
 
==Usage==
 
==Usage==
<pre>{{eLink|article,profile,company,...|number|text}}</pre>
+
<pre>{{eLink|article,profile,unit,...|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
+
* <s>'''company''': link to company presentation page</s>
* 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
+
* <s>'''land''': link to someone's land</s>
* unit or militaryunit: link to military unit profile
+
* '''unit''' or '''militaryunit''': link to military unit profile
* update: link to game update
+
* '''update''': link to game update
* post: link to post
+
* '''post''': link to post
* unitpost: link to military unit post
+
* '''unitpost''': link to military unit post
* partypost: link to party 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).<br>
 +
'''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}}
+
* <code><nowiki>{{eLink|citizen|2|Plato}}</nowiki></code> = {{eLink|citizen|2|Plato}}
 
+
* <code><nowiki>{{eLink|article|2512394|Koliko nas ima?}}</nowiki></code> = {{eLink|article|2512394|Koliko nas ima?}}
* <code><nowiki>{{eLink|newspaper|81|eRepublik Insider}}</nowiki></code>
+
* <code><nowiki>{{eLink|newspaper|81|eRepublik Insider}}</nowiki></code> = {{eLink|newspaper|81|eRepublik Insider}}
** {{eLink|newspaper|81|eRepublik Insider}}
+
* <code><nowiki>{{eLink|organization|1271772|Organizacion Bancaria Mexicana}}</nowiki></code> = {{eLink|organization|1271772|Organizacion Bancaria Mexicana}}
 
+
* <code><nowiki>{{eLink|war|1344|Latvia-Estonia War}}</nowiki></code> = {{eLink|war|1344|Latvia-Estonia War}}
* <code><nowiki>{{eLink|company|204163|Plato's Food}}</nowiki></code>
+
* <code><nowiki>{{eLink|country|United-Kingdom|United Kingdom}}</nowiki></code> = {{eLink|country|United-Kingdom|United Kingdom}}
** {{eLink|company|204163|Plato's Food}}
+
* <code><nowiki>{{eLink|party|3683|P.O.R.R.A.D.A.}}</nowiki></code> = {{eLink|party|3683|P.O.R.R.A.D.A.}}
 
+
* <code><nowiki>{{eLink|battle|10193|Heilongjiang}}</nowiki></code> = {{eLink|battle|10193|Heilongjiang}}
* <code><nowiki>{{eLink|country|United-Kingdom|United Kingdom}}</nowiki></code>
+
* <code><nowiki>{{eLink|unit|3751|Unit 3751}}</nowiki></code> = {{eLink|unit|3751|Unit 3751}}
** {{eLink|country|United-Kingdom|United Kingdom}}
+
* <code><nowiki>{{eLink|militaryunit|3751|Unit 3751}}</nowiki></code> = {{eLink|militaryunit|3751|Unit 3751}}
 
+
* <code><nowiki>{{eLink|update|10|Health to Energy}}</nowiki></code> = {{eLink|update|10|Health to Energy}}
* <code><nowiki>{{eLink|update|10|Health to Energy}}</nowiki></code>
+
<!-- Can't find an example that works as this posts don't last that long;
** {{eLink|update|10|Health to Energy}}
+
* <code><nowiki>{{eLink|post|15909524|Sample post}}</nowiki></code> = {{eLink|post|15909524|Sample post}}
 
+
* <code><nowiki>{{eLink|unitpost|2|Test}}</nowiki></code> = {{eLink|unitpost|2|Test}}
* <code><nowiki>{{eLink|post|15909524|Sample post}}</nowiki></code>
+
* <code><nowiki>{{eLink|partypost|2|Test}}</nowiki></code> = {{eLink|partypost|2|Test}}
** {{eLink|post|15909524|Sample post}}
+
-->
 +
==Changes==
 +
===April 2011===
 +
*Fixes for economy/forum subdomains
 +
===October 2013===
 +
*Organization correction
 +
===November 2013===
 +
*Update added
 +
===February 2015===
 +
*Battle link corrected
 +
*Post, unitpost and partypost added
 +
*Forum and topic corrections
 +
*Example list updated
 +
===May 2015===
 +
*Company removed from the list; they don't exist anymore in the game as they did before
 +
*Land removed from the list; impossible to access
 +
*Country linking corrected
 +
*Example list includes all of the possibilities
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 15:35, 27 May 2015

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

Usage

{{eLink|article,profile,unit,...|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

Changes

April 2011

  • Fixes for economy/forum subdomains

October 2013

  • Organization correction

November 2013

  • Update added

February 2015

  • Battle link corrected
  • Post, unitpost and partypost added
  • Forum and topic corrections
  • Example list updated

May 2015

  • Company removed from the list; they don't exist anymore in the game as they did before
  • Land removed from the list; impossible to access
  • Country linking corrected
  • Example list includes all of the possibilities