Difference between revisions of "Template:ELink/doc"
From eRepublik Official Wiki
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: | + | * profile or citizen: link to citizen profile |
− | * article: | + | * article: link to newspaper article |
− | * newspaper: | + | * newspaper: link to newspaper |
− | * organization: | + | * organization: link to organization profile |
− | * war: | + | * war: link to war details |
− | * company: | + | * company: link to company presentation page |
− | + | * country: link to country profile | |
− | * country: | + | * party: link to party page |
− | * party: | + | * battle: link to battlefield |
− | * battle: | + | * land: link to someone's land |
− | * land: | + | * unit or militaryunit: link to military unit profile |
− | * unit or militaryunit: | + | * 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| | + | * <code><nowiki>{{eLink|update|10|Health to Energy}}</nowiki></code> |
− | ** {{eLink| | + | ** {{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}}
-
{{eLink|newspaper|81|eRepublik Insider}}
-
{{eLink|company|204163|Plato's Food}}
-
{{eLink|country|United-Kingdom|United Kingdom}}
-
{{eLink|update|10|Health to Energy}}
-
{{eLink|post|15909524|Sample post}}