Difference between revisions of "Template:Taxes"
From eRepublik Official Wiki
(→Translating template) |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{LangMenu|Template:Taxes}}</noinclude> | + | <noinclude>{{LangMenu|Template:Taxes}}</noinclude><includeonly> |
− | <includeonly> | + | |
{{Taxes/{{TemplateLang|Taxes}}| | {{Taxes/{{TemplateLang|Taxes}}| | ||
country={{{country|}}}| | country={{{country|}}}| | ||
+ | worktax= {{{worktax|}}}| | ||
foodincometax= {{{foodincometax|}}}| | foodincometax= {{{foodincometax|}}}| | ||
foodimporttax= {{{foodimporttax|}}}| | foodimporttax= {{{foodimporttax|}}}| | ||
Line 18: | Line 18: | ||
wrmincometax= {{{wrmincometax|}}}| | wrmincometax= {{{wrmincometax|}}}| | ||
wrmimporttax= {{{wrmimporttax|}}}| | wrmimporttax= {{{wrmimporttax|}}}| | ||
+ | hrmincometax= {{{hrmincometax|}}}| | ||
+ | hrmimporttax= {{{hrmimporttax|}}}| | ||
hospitalimporttax= {{{hospitalimporttax|}}}| | hospitalimporttax= {{{hospitalimporttax|}}}| | ||
Line 29: | Line 31: | ||
<pre>{{Taxes| | <pre>{{Taxes| | ||
country=| <!-- If country is provided, nothing more is needed and other values don't have any effect on the output --> | country=| <!-- If country is provided, nothing more is needed and other values don't have any effect on the output --> | ||
+ | worktax= | | ||
foodincometax= | | foodincometax= | | ||
foodimporttax= | | foodimporttax= | | ||
Line 44: | Line 47: | ||
wrmincometax= | | wrmincometax= | | ||
wrmimporttax= | | wrmimporttax= | | ||
+ | hrmincometax= | | ||
+ | hrmimporttax= | | ||
hospitalimporttax= | | hospitalimporttax= | | ||
Line 57: | Line 62: | ||
When country parameter is provided, the template uses [[Template:Taxes/Data|/Data]] to get the data. In that case, the other variables have no effect on the output. | When country parameter is provided, the template uses [[Template:Taxes/Data|/Data]] to get the data. In that case, the other variables have no effect on the output. | ||
==Example== | ==Example== | ||
− | All taxes are 1% | + | All taxes are 1% except work tax (2%) |
{{Taxes| | {{Taxes| | ||
+ | worktax= 2%| | ||
foodincometax= 1%| | foodincometax= 1%| | ||
foodimporttax= 1%| | foodimporttax= 1%| | ||
Line 101: | Line 107: | ||
frmincometax= 1%| | frmincometax= 1%| | ||
frmimporttax= 1%| | frmimporttax= 1%| | ||
+ | wrmincometax= 1%| | ||
+ | wrmimporttax= 1%| | ||
wrmincometax= 1%| | wrmincometax= 1%| | ||
wrmimporttax= 1%| | wrmimporttax= 1%| | ||
Line 117: | Line 125: | ||
<pre>{{Taxes/Core| | <pre>{{Taxes/Core| | ||
iproduct= Product| | iproduct= Product| | ||
− | iincome= | + | iwork= Work tax| |
+ | iincome= Income tax| | ||
iimport= Import tax| | iimport= Import tax| | ||
ivat= VAT| | ivat= VAT| | ||
ifood= Food| | ifood= Food| | ||
− | ihousing= | + | ihousing= Houses| |
iweapon= Weapon| | iweapon= Weapon| | ||
itickets= Tickets| | itickets= Tickets| | ||
Line 133: | Line 142: | ||
ifrm= Food raw material| | ifrm= Food raw material| | ||
+ | worktax= {{{worktax|}}}| | ||
foodincometax= {{{foodincometax|}}}| | foodincometax= {{{foodincometax|}}}| | ||
foodimporttax= {{{foodimporttax|}}}| | foodimporttax= {{{foodimporttax|}}}| | ||
Line 148: | Line 158: | ||
wrmincometax= {{{wrmincometax|}}}| | wrmincometax= {{{wrmincometax|}}}| | ||
wrmimporttax= {{{wrmimporttax|}}}| | wrmimporttax= {{{wrmimporttax|}}}| | ||
+ | hrmincometax= {{{hrmincometax|}}}| | ||
+ | hrmimporttax= {{{hrmimporttax|}}}| | ||
hospitalimporttax= {{{hospitalimporttax|}}}| | hospitalimporttax= {{{hospitalimporttax|}}}| | ||
Line 155: | Line 167: | ||
country={{{country|}}} | country={{{country|}}} | ||
}}</pre> | }}</pre> | ||
− | |} | + | |}</noinclude> |
− | + | ||
− | </noinclude> | + |
Revision as of 10:16, 22 July 2014
Languages: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Usage
{{Taxes| country=| <!-- If country is provided, nothing more is needed and other values don't have any effect on the output --> worktax= | foodincometax= | foodimporttax= | foodvat= | houseimporttax= | housevat= | weaponincometax= | weaponimporttax= | weaponvat= | movingimporttax= | movingvat=| frmincometax= | frmimporttax= | wrmincometax= | wrmimporttax= | hrmincometax= | hrmimporttax= | hospitalimporttax= | hospitalvat= | defenseimporttax= | defensevat= | weaponincometax= | weaponimporttax= | weaponvat= | }}
When country parameter is provided, the template uses /Data to get the data. In that case, the other variables have no effect on the output.
Example
All taxes are 1% except work tax (2%)
|
|
This template is an actualization to Rising version of the one created by VSkyzv.
Translating template
- Create page Template:Taxes/yourlang
- Copy following code to page
- Translate the strings in the code to your language (word after '=' -sign).
Code | ||||
---|---|---|---|---|
{{Taxes/Core| iproduct= Product| iwork= Work tax| iincome= Income tax| iimport= Import tax| ivat= VAT| ifood= Food| ihousing= Houses| iweapon= Weapon| itickets= Tickets| igrain= Grain| istone= Stone| iiron= Iron| ioil= Oil| ihospitals= Hospitals| idefensesystem= Defense system| iwrm= Weapon raw material| ifrm= Food raw material| worktax= {{{worktax|}}}| foodincometax= {{{foodincometax|}}}| foodimporttax= {{{foodimporttax|}}}| foodvat= {{{foodvat|}}}| houseimporttax= {{{houseimporttax|}}}| housevat= {{{housevat|}}}| weaponincometax= {{{weaponincometax|}}}| weaponimporttax= {{{weaponimporttax|}}}| weaponlevat={{{weaponvat|}}} | airvat= {{{airvat|}}}| movingimporttax= {{{movingimporttax|}}}| movingvat={{{movingvat|}}}| frmincometax= {{{frmincometax|}}}| frmimporttax= {{{frmimporttax|}}}| wrmincometax= {{{wrmincometax|}}}| wrmimporttax= {{{wrmimporttax|}}}| hrmincometax= {{{hrmincometax|}}}| hrmimporttax= {{{hrmimporttax|}}}| hospitalimporttax= {{{hospitalimporttax|}}}| hospitalvat= {{{hospitalvat|}}}| defenseimporttax= {{{defenseimporttax|}}}| defensevat={{{defensevat|}}} | country={{{country|}}} }} |