Difference between revisions of "Template:EB/doc"
From eRepublik Official Wiki
(small corrections) |
m (small corrections) |
||
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}}]]</noinclude> | + | <noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{L|Energy_bar|{{{1|0}}} TRANSLATION}}}} |
− | {{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{L|Energy_bar|{{{1|0}}} TRANSLATION}}}} | + | |
</pre> | </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. | 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. | ||
Line 12: | Line 11: | ||
;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: | ;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> | <pre> | ||
− | <noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude> | + | <noinclude>{{LangMenu|Template:EB}}[[Category:Translated Templates|{{SUBPAGENAME}}]]</noinclude>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{DL|Energy_bar|{{{1|0}}} TRANSLATION}}}} |
− | {{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{DL|Energy_bar|{{{1|0}}} TRANSLATION}}}} | + | |
</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. |
Latest revision as of 15:19, 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}}]]</noinclude>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{L|Energy_bar|{{{1|0}}} TRANSLATION}}}}
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}}]]</noinclude>{{Nowrap|1=[[File:Icon - Energy bar.png|25px|link=]] {{DL|Energy_bar|{{{1|0}}} TRANSLATION}}}}
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.