Difference between revisions of "Template:EB/doc"
From eRepublik Official Wiki
(Created page with "{{Documentation subpage}} This is the '''Energy Bar template'''. It will produce the EB icon as it appears on eRepublik with a specified am...") |
(additional information) |
||
Line 5: | Line 5: | ||
To create a translation, simply copy the following format: | To create a translation, simply copy the following format: | ||
<pre> | <pre> | ||
− | <noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]{{EB}}</noinclude><includeonly>{{EB/ | + | <noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]{{EB/{{SUBPAGENAME}}}}</noinclude> |
+ | <includeonly>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{{1|0}}} {{L|Energy_bar|TRANSLATION}}}}</includeonly> | ||
+ | </pre> | ||
+ | In the above format, only replace the word TRANSLATION with the word (or a phrase or an abbreviation in your language) for ENERGY BAR in your language to fit the template. | ||
+ | |||
+ | ;Note: You can also replace the {{Tl|L}} template with {{Tl|DL}} template if the energy bar article exists in your language. The code before changing the word would be then as follows: | ||
+ | <pre> | ||
+ | <noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]{{EB/{{SUBPAGENAME}}}}</noinclude> | ||
+ | <includeonly>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{{1|0}}} {{DL|Energy_bar|TRANSLATION}}}}</includeonly> | ||
</pre> | </pre> | ||
− | |||
==Also useful== | ==Also useful== | ||
*{{Tl|ER}} - Energy Recovery template which will produce the Energy recovery icon as it appears on eRepublik with a specified amount of Energy recovery and the word "Energy Recovery" linked to the [[Energy recovery]] article. | *{{Tl|ER}} - Energy Recovery template which will produce the Energy recovery icon as it appears on eRepublik with a specified amount of Energy recovery and the word "Energy Recovery" linked to the [[Energy recovery]] article. |
Revision as of 08:12, 21 January 2024
This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:EB.
To view the Template page itself, see Template:EB.
This is the Energy Bar template. It will produce the as it appears on eRepublik with a specified amount of Energy bars with the word "Energy bar" linked to the Energy bar article. The text of the template will not wrap around at the end of a line. Writing {{EB|20}} will produce 20 Energy bar. If no number is specified, the template will default to 0 Energy bar.
Translation
To create a translation, simply copy the following format:
<noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]{{EB/{{SUBPAGENAME}}}}</noinclude> <includeonly>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{{1|0}}} {{L|Energy_bar|TRANSLATION}}}}</includeonly>
In the above format, only replace the word TRANSLATION with the word (or a phrase or an abbreviation in your language) for ENERGY BAR in your language to fit the template.
- Note
- You can also replace the {{L}} template with {{DL}} template if the energy bar article exists in your language. The code before changing the word would be then as follows:
<noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]{{EB/{{SUBPAGENAME}}}}</noinclude> <includeonly>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{{1|0}}} {{DL|Energy_bar|TRANSLATION}}}}</includeonly>
Also useful
- {{ER}} - Energy Recovery template which will produce the Energy recovery icon as it appears on eRepublik with a specified amount of Energy recovery and the word "Energy Recovery" linked to the Energy recovery article.