Difference between revisions of "Template:ELink/doc"

From eRepublik Official Wiki
Jump to: navigation, search
m (cat added)
(update)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Usage ==
+
{{Documentation subpage}}{{TOCright}}
<pre>{{eLink|article,profile,company,...|number|text}}</pre>
+
{{Tl|eLink}} is a template easily allowing to create links to the game by their IDs. For adding links to laws, please check {{Tl|eLinkLaw}}.
  
== Linking possibilities ==
+
==Usage==
You can use this template to link following pages withing eRepublik by adding the one of the following words as first parameter:
+
<pre>{{eLink|article,citizen,unit,...|number|text}}</pre>
* 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
+
* forum or topic: Link to forum topic
+
* 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
+
  
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.
+
==Linking possibilities==
 +
You can use this template to link following pages withing eRepublik by adding one of the following words as the first parameter:
 +
* '''citizen''': link to the citizen profile
 +
* '''organization''': link to the organization profile
 +
* '''profile''' link to the citizen or organization profile
 +
* '''newspaper''': link to the newspaper
 +
* '''article''': link to the newspaper article
 +
* '''party''': link to the party page
 +
* '''suspended''': link to the suspended party page (leads to the reason why did party got dissolved) / please note that if you use this link and the party is '''not''' suspended, it will be written that party ''was suspended for breaking the rules of the New World'' although that is not applicable. So use it only for the suspended party pages!
 +
* '''war''': link to the war details
 +
* '''battle''': link to the battlefield
 +
* '''unit''': link to the military unit profile
 +
* '''update''': link to a game update
 +
* '''city''': link to the city page
 +
* '''country''': link to the country profile
 +
* '''region''': link to the region page
 +
* <s>'''post''': link to post</s>
 +
* <s>'''unitpost''': link to military unit post</s>
 +
* <s>'''partypost''': link to party post</s>
 +
* <s>'''company''': link to company presentation page</s>
 +
* <s>'''land''': link to someone's land</s>
  
=== Examples ===
+
Number is the ID found from the URL (a many-digit number in the URL, ONLY NUMBERS).<br>
* <code><nowiki>{{eLink|profile|2|Plato}}</nowiki></code>
+
'''Exceptions''':
** {{eLink|profile|2|Plato}}
+
:''link to country page requires the '''''country name link''''' (found from URL of the country page) - not country ID; name link to be used as is in-game.''
 +
:''link to region page requires the '''''region name link''''' (found from URL of the region page) -  name link to be used as is in-game''
  
* <code><nowiki>{{eLink|newspaper|81|eRepublik Insider}}</nowiki></code>
+
===Examples===
** {{eLink|newspaper|81|eRepublik Insider}}
+
* <code><nowiki>{{eLink|citizen|2|Plato}}</nowiki></code> = {{eLink|citizen|2|Plato}}
 
+
* <code><nowiki>{{eLink|organization|1271772|Organizacion Bancaria Mexicana}}</nowiki></code> = {{eLink|organization|1271772|Organizacion Bancaria Mexicana}}
* <code><nowiki>{{eLink|company|204163|Plato's Food}}</nowiki></code>
+
* <code><nowiki>{{eLink|profile|2|Plato}}</nowiki></code> = {{eLink|profile|2|Plato}}
** {{eLink|company|204163|Plato's Food}}
+
* <code><nowiki>{{eLink|newspaper|81|eRepublik Insider}}</nowiki></code> = {{eLink|newspaper|81|eRepublik Insider}}
 
+
* <code><nowiki>{{eLink|article|2512394|Koliko nas ima?}}</nowiki></code> = {{eLink|article|2512394|Koliko nas ima?}}
* <code><nowiki>{{eLink|country|United-Kingdom|United Kingdom}}</nowiki></code>
+
* <code><nowiki>{{eLink|party|3683|P.O.R.R.A.D.A.}}</nowiki></code> = {{eLink|party|3683|P.O.R.R.A.D.A.}}
** {{eLink|country|United-Kingdom|United Kingdom}}
+
* <code><nowiki>{{eLink|suspended|144|Party 144}}</nowiki></code> = {{eLink|suspended|144|Party 144}}
 
+
* <code><nowiki>{{eLink|war|1344|Latvia-Estonia War}}</nowiki></code> = {{eLink|war|1344|Latvia-Estonia War}}
* <code><nowiki>{{eLink|topic|110827|New raw materials - all of them can be yours!}}</nowiki></code>
+
* <code><nowiki>{{eLink|battle|311416|Lika and Gorski Kotar battle}}</nowiki></code> = {{eLink|battle|311416|Lika and Gorski Kotar battle}}
** {{eLink|topic|110626|New raw materials - all of them can be yours!}}
+
* <code><nowiki>{{eLink|unit|3751|Unit 3751}}</nowiki></code> = {{eLink|unit|3751|Unit 3751}}
<noinclude>[[Category:Template documentation]]</noinclude>
+
* <code><nowiki>{{eLink|update|10|Health to Energy}}</nowiki></code> = {{eLink|update|10|Health to Energy}}
 +
* <code><nowiki>{{eLink|city|111|Turin}}</nowiki></code> = {{eLink|city|111|Turin}}
 +
* <code><nowiki>{{eLink|country|United-Kingdom|United Kingdom}}</nowiki></code> = {{eLink|country|United-Kingdom|United Kingdom}}
 +
* <code><nowiki>{{eLink|region|Northwest-Croatia|Northwest Croatia}}</nowiki></code> = {{eLink|region|Northwest-Croatia|Northwest Croatia}}
 +
<!-- Can't find an example that works as these posts don't last that long;
 +
* <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|partypost|2|Test}}</nowiki></code> = {{eLink|partypost|2|Test}}
 +
-->
 +
==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
 +
===May 2017===
 +
*Adding link to {{Tl|eLinkLaw}}
 +
*Minor styling to the usage
 +
===December 2018===
 +
*'''militaryunit''' is NO LONGER IN USE - '''unit''' should be used instead!
 +
*'''city''' and '''region''' added / description for them added in April 2020
 +
===October 2020===
 +
*Link to the suspended party page is possible now via eLink
 +
*Corrections to the documentation - replaced dead links

Latest revision as of 00:17, 21 October 2020

edit

Edit-copy green.png Documentation subpage

This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:ELink.

{{eLink}} is a template easily allowing to create links to the game by their IDs. For adding links to laws, please check {{eLinkLaw}}.

Usage

{{eLink|article,citizen,unit,...|number|text}}

Linking possibilities

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

  • citizen: link to the citizen profile
  • organization: link to the organization profile
  • profile link to the citizen or organization profile
  • newspaper: link to the newspaper
  • article: link to the newspaper article
  • party: link to the party page
  • suspended: link to the suspended party page (leads to the reason why did party got dissolved) / please note that if you use this link and the party is not suspended, it will be written that party was suspended for breaking the rules of the New World although that is not applicable. So use it only for the suspended party pages!
  • war: link to the war details
  • battle: link to the battlefield
  • unit: link to the military unit profile
  • update: link to a game update
  • city: link to the city page
  • country: link to the country profile
  • region: link to the region page
  • post: link to post
  • unitpost: link to military unit post
  • partypost: link to party post
  • company: link to company presentation page
  • land: link to someone's land

Number is the ID found from the URL (a many-digit number in the URL, ONLY NUMBERS).
Exceptions:

link to country page requires the country name link (found from URL of the country page) - not country ID; name link to be used as is in-game.
link to region page requires the region name link (found from URL of the region page) - name link to be used as is in-game

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

May 2017

  • Adding link to {{eLinkLaw}}
  • Minor styling to the usage

December 2018

  • militaryunit is NO LONGER IN USE - unit should be used instead!
  • city and region added / description for them added in April 2020

October 2020

  • Link to the suspended party page is possible now via eLink
  • Corrections to the documentation - replaced dead links