Difference between revisions of "Template:Taxes"

From eRepublik Official Wiki
Jump to: navigation, search
(update)
m (small corrections)
Line 4: Line 4:
 
   foodimporttax= {{{foodimporttax|}}}|
 
   foodimporttax= {{{foodimporttax|}}}|
 
   foodvat= {{{foodvat|}}}|
 
   foodvat= {{{foodvat|}}}|
  houseimporttax= {{{houseimporttax|}}}|
 
  housevat= {{{housevat|}}}|
 
 
   weaponimporttax= {{{weaponimporttax|}}}|
 
   weaponimporttax= {{{weaponimporttax|}}}|
 
   weaponvat={{{weaponvat|}}} |
 
   weaponvat={{{weaponvat|}}} |
  movingimporttax= {{{movingimporttax|}}}|
 
  movingvat={{{movingvat|}}}|
 
 
 
   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= |
  movingimporttax= |
 
  movingvat=|
 
  houseimporttax= |
 
  housevat= |
 
 
 
   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%|
  movingimporttax= 1%|
 
  movingvat=1%|
 
  houseimporttax= 1%|
 
  housevat= 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 strings in the code to your language (word after '=' -sign).
+
* 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|
  ihousing= Houses|
 
 
   iweapon= Weapon|
 
   iweapon= Weapon|
   ihospitals= Hospitals|
+
  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|
  iwrm= Weapon raw material|
 
  ifrm= Food raw material|
 
  ihrm= Food raw material|
 
  
 
   worktax={{{worktax|}}}|
 
   worktax={{{worktax|}}}|

Revision as of 12:13, 13 April 2015

Languages: 
EnglishIcon-English.png
中文(繁體)Icon-Republic of China (Taiwan).png
HrvatskiIcon-Croatia.png
FrançaisIcon-France.png
ΕλληνικάIcon-Greece.png
ItalianoIcon-Italy.png
PolskiIcon-Poland.png
RomânăIcon-Romania.png
СрпскиIcon-Serbia.png
EspañolIcon-Spain.png

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.

Product Work Tax Import Tax VAT
Icon - Food Q3.png Food 2% 1% 1%
Icon - Weapon Q2.png Weapon 2% 1% 1%
Icon - Aircraft Q1.png Aircraft weapon 2%
Icon - Moving ticket Q3.png Moving ticket 2% 1% 1%
Icon - House Q3.png House 2% 1% 1%
Raw material Work Tax Import Tax VAT
Icon - Food Raw Materials.png Food raw material 2% 1% -
Icon - Weapon Raw Materials.png Weapon raw material 2% 1% -
Icon - Aircraft Weapon Raw Materials.png Aircraft weapon raw material 2% -
Icon - House Raw Materials.png House raw material 2% 1% -

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).