Difference between revisions of "Template:Taxes"
From eRepublik Official Wiki
(update) |
m (small corrections) |
||
Line 4: | Line 4: | ||
foodimporttax= {{{foodimporttax|}}}| | foodimporttax= {{{foodimporttax|}}}| | ||
foodvat= {{{foodvat|}}}| | foodvat= {{{foodvat|}}}| | ||
− | |||
− | |||
weaponimporttax= {{{weaponimporttax|}}}| | weaponimporttax= {{{weaponimporttax|}}}| | ||
weaponvat={{{weaponvat|}}} | | weaponvat={{{weaponvat|}}} | | ||
− | |||
− | |||
− | |||
frmimporttax= {{{frmimporttax|}}}| | frmimporttax= {{{frmimporttax|}}}| | ||
wrmimporttax= {{{wrmimporttax|}}}| | wrmimporttax= {{{wrmimporttax|}}}| | ||
hrmimporttax= {{{hrmimporttax|}}}| | hrmimporttax= {{{hrmimporttax|}}}| | ||
+ | movingimporttax= {{{movingimporttax|}}}| | ||
+ | movingvat={{{movingvat|}}}| | ||
+ | houseimporttax= {{{houseimporttax|}}}| | ||
+ | housevat= {{{housevat|}}}| | ||
hospitalimporttax= {{{hospitalimporttax|}}}| | hospitalimporttax= {{{hospitalimporttax|}}}| | ||
hospitalvat= {{{hospitalvat|}}}| | hospitalvat= {{{hospitalvat|}}}| | ||
Line 28: | Line 27: | ||
weaponimporttax= | | weaponimporttax= | | ||
weaponvat= | | weaponvat= | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
frmimporttax= | | frmimporttax= | | ||
wrmimporttax= | | wrmimporttax= | | ||
hrmimporttax= | | hrmimporttax= | | ||
+ | houseimporttax= | | ||
+ | housevat= | | ||
+ | movingimporttax= | | ||
+ | movingvat=| | ||
hospitalimporttax= | | hospitalimporttax= | | ||
hospitalvat= | | hospitalvat= | | ||
Line 43: | Line 41: | ||
}}</pre> | }}</pre> | ||
− | 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'''.<br> |
+ | Note: ''At the moment bot is down, so we recommend that you actually write all of the variables without country, as if you use country parameter - the taxes will be wrong.'' | ||
==Example== | ==Example== | ||
− | All taxes are 1% but work tax (2%) | + | All taxes are 1% but work tax (2%). Note: Work tax is used only once as it is the same for all of the products. |
{{Taxes| | {{Taxes| | ||
worktax= 2%| | worktax= 2%| | ||
Line 52: | Line 51: | ||
weaponimporttax= 1%| | weaponimporttax= 1%| | ||
weaponvat= 1%| | weaponvat= 1%| | ||
− | |||
− | |||
− | |||
− | |||
− | |||
frmimporttax= 1%| | frmimporttax= 1%| | ||
wrmimporttax= 1%| | wrmimporttax= 1%| | ||
hrmimporttax= 1%| | hrmimporttax= 1%| | ||
+ | houseimporttax= 1%| | ||
+ | housevat= 1%| | ||
+ | movingimporttax= 1%| | ||
+ | movingvat=1%| | ||
hospitalimporttax= 1%| | hospitalimporttax= 1%| | ||
hospitalvat= 1%| | hospitalvat= 1%| | ||
Line 69: | Line 67: | ||
== Translating template == | == Translating template == | ||
− | * Create page Template:Taxes/''yourlang'' | + | * Create page Template:Taxes/''yourlang'' (You can click in the langMenu at the top of this page to find your language) |
* Copy following code to page | * Copy following code to page | ||
− | * Translate the | + | * Translate the english words in the code to your language (words after '=' sign). |
{| class="collapsible collapsed" style="border:solid 1px #aaa; margin: 1em 1em 1em 1em; width:30%; background:#f9f9f9" | {| class="collapsible collapsed" style="border:solid 1px #aaa; margin: 1em 1em 1em 1em; width:30%; background:#f9f9f9" | ||
! colspan=5 style="background:#C6E4F2; border:solid 1px #ccc" align="center" |<big>Code</big> | ! colspan=5 style="background:#C6E4F2; border:solid 1px #ccc" align="center" |<big>Code</big> | ||
Line 81: | Line 79: | ||
iimport= Import tax| | iimport= Import tax| | ||
ivat= VAT| | ivat= VAT| | ||
+ | |||
ifood= Food| | ifood= Food| | ||
− | |||
iweapon= Weapon| | iweapon= Weapon| | ||
− | ihospitals= | + | iwrm= Weapon raw materials| |
+ | ifrm= Food raw materials| | ||
+ | ihrm= House raw materials| | ||
+ | |||
+ | itickets= Moving ticket| | ||
+ | ihousing= House| | ||
+ | ihospitals= Hospital| | ||
idefensesystem= Defense system| | idefensesystem= Defense system| | ||
− | |||
− | |||
− | |||
worktax={{{worktax|}}}| | worktax={{{worktax|}}}| |
Revision as of 12:13, 13 April 2015
Languages: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Usage
{{Taxes| country=| <!-- If country is provided, nothing more is needed and other values don't have any effect on the output --> worktax= | foodimporttax= | foodvat= | weaponimporttax= | weaponvat= | frmimporttax= | wrmimporttax= | hrmimporttax= | houseimporttax= | housevat= | movingimporttax= | movingvat=| hospitalimporttax= | hospitalvat= | defenseimporttax= | defensevat= | }}
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.
Note: At the moment bot is down, so we recommend that you actually write all of the variables without country, as if you use country parameter - the taxes will be wrong.
Example
All taxes are 1% but work tax (2%). Note: Work tax is used only once as it is the same for all of the products.
|
|
This template is an actualization to Rising version of the one created by VSkyzv. The template has been updated on April 13, 2015 with removine all obsolete items from the template (removed old products, added new products, removed income tax).
Translating template
- Create page Template:Taxes/yourlang (You can click in the langMenu at the top of this page to find your language)
- Copy following code to page
- Translate the english words in the code to your language (words after '=' sign).
Code | ||||
---|---|---|---|---|
{{Taxes/Core| iproduct= Product| iwork= Work tax| iimport= Import tax| ivat= VAT| ifood= Food| iweapon= Weapon| iwrm= Weapon raw materials| ifrm= Food raw materials| ihrm= House raw materials| itickets= Moving ticket| ihousing= House| ihospitals= Hospital| idefensesystem= Defense system| worktax={{{worktax|}}}| foodimporttax= {{{foodimporttax|}}}| foodvat= {{{foodvat|}}}| weaponimporttax= {{{weaponimporttax|}}}| weaponvat= {{{weaponvat|}}}| movingimporttax= {{{movingimporttax|}}}| movingvat={{{movingvat|}}}| houseimporttax= {{{houseimporttax|}}}| housevat= {{{housevat|}}}| frmimporttax= {{{frmimporttax|}}}| wrmimporttax= {{{wrmimporttax|}}}| hrmimporttax= {{{hrmimporttax|}}}| hospitalimporttax= {{{hospitalimporttax|}}}| hospitalvat= {{{hospitalvat|}}}| defenseimporttax= {{{defenseimporttax|}}}| defensevat={{{defensevat|}}} | }} |