Difference between revisions of "Template:EB"

From eRepublik Official Wiki
Jump to: navigation, search
m (small corrections)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{EB/{{TemplateLang|Energy Bar}}|{{{1|0}}}|iEB=EB}}</includeonly><noinclude>This is the '''Energy Bar template'''. It is intended to serve as a graphical aid for tutorials. It will produce the [[File:Energy_bar.png|25px|EB icon]] as it appears on eRepublik with a specified amount of Energy bars and the word "Energy Bar". The text of the template will not wrap around at the end of a line. Writing {{Pre|code|<nowiki>{{EB|20}}</nowiki>}} will produce {{EB|20}} . If no number is specified, the template will default to {{EB}} . [[Category:Graphical Aid Templates|Energy bar]]</noinclude>
+
<noinclude>{{LangMenu|Template:EB}}{{-}}{{Documentation}}[[Category:Graphical Aid Templates|Energy bar]]</noinclude><includeonly>{{EB/{{TemplateLang|EB}}|{{{1|}}}|iEB=EB}}</includeonly>

Latest revision as of 15:17, 21 January 2024

Languages: 
EnglishIcon-English.png
HrvatskiIcon-Croatia.png
FrançaisIcon-France.png
RomânăIcon-Romania.png

[edit] [purge]

Documentation

This is the Energy Bar template. It will produce the EB icon 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 Icon - Energy bar.png 20 Energy bar. If no number is specified, the template will default to Icon - Energy bar.png 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.