Difference between revisions of "Template:ItemSpecs"

From Stars!wiki
Jump to: navigation, search
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{if:{{{name|}}}|
+
{{#if:{{{name|}}}|
 
*{{{name}}}
 
*{{{name}}}
**{{{iron}}}
+
**'''Costs:''' Iron:{{#if:{{{iron|}}}|{{{iron}}}|0}} Boronium:{{#if:{{{bor|}}}|{{{bor}}}|0}} Germanium:{{#if:{{{germ|}}}|{{{germ}}}|0}} Resources:{{#if:{{{res|}}}|{{{res}}}|undefined}}
**{{{bor}}}
+
**'''Tech requirements:''' {{#if:{{{en|}}}{{{we|}}}{{{pr|}}}{{{co|}}}{{{el|}}}{{{bi|}}}|{{#if:{{{en|}}}|
**{{{germ}}}
+
**:Energy: {{{en}}}|}}{{#if:{{{we|}}}| Weapons: {{{we}}}|}}{{#if:{{{pr|}}}| Propulsion: {{{pr}}}|}}{{#if:{{{co|}}}| Construction: {{{co}}}|}}{{#if:{{{el|}}}| Electronics: {{{el}}}|}}{{#if:{{{bi|}}}| Biotechnology: {{{bi}}}|}}| None.}}
**{{{res}}}
+
**Mass:{{#if:{{{mass|}}}|{{{mass}}}|undefined}}{{#if:{{{desc|}}}|
**Tech requirements:{{if:{{{en|}}}{{{we|}}}{{{pr|}}}{{{co|}}}{{{el|}}}{{{bi|}}}|{{if:{{{en|}}}|
+
:{{{desc}}}|}}
***Energy: {{{en}}}|}}{{if:{{{we|}}}|
+
|Item not defined.
***Weapons: {{{we}}}|}}{{if:{{{pr|}}}|
+
 
***Propulsion: {{{pr}}}|}}{{if:{{{co|}}}|
+
Required parameter:
***Construction: {{{co}}}|}}{{if:{{{el|}}}|
+
*name=''Itemname''
***Electronics: {{{el}}}|}}{{if:{{{bi|}}}|
+
Other available parameters:
***Biotechnology: {{{bi}}}|}}|
+
*iron=''iron cost''
***None.}}
+
*bor=''boronium cost''
|Item not defined.}}
+
*germ=''germanium cost''
 +
*res=''resource cost''
 +
*en=''energy tech level required''
 +
*we=''weapons tech level required''
 +
*pr=''propulsion tech level required''
 +
*co=''construction tech level required''
 +
*el=''electornics tech level required''
 +
*bi=''biotechnology lech level required''
 +
*mass=''items mass''
 +
*desc=''item description''
 +
Example:
 +
<pre> {{ItemSpecs|name=Tritanium|iron=5|mass=60|res=10|we=4|pr=7|desc=Not the acutal description of trianium armour, but instead an emaple so you can see how the template works.}} </pre>
 +
Produces:
 +
{{ItemSpecs|name=Tritanium|iron=5|mass=60|res=10|we=4|pr=7|desc=Not the acutal description of trianium armour, but instead an emaple so you can see how the template works.}}
 +
}}

Latest revision as of 03:38, 15 February 2008

Item not defined.

Required parameter:

  • name=Itemname

Other available parameters:

  • iron=iron cost
  • bor=boronium cost
  • germ=germanium cost
  • res=resource cost
  • en=energy tech level required
  • we=weapons tech level required
  • pr=propulsion tech level required
  • co=construction tech level required
  • el=electornics tech level required
  • bi=biotechnology lech level required
  • mass=items mass
  • desc=item description

Example:

 {{ItemSpecs|name=Tritanium|iron=5|mass=60|res=10|we=4|pr=7|desc=Not the acutal description of trianium armour, but instead an emaple so you can see how the template works.}} 

Produces:

  • Tritanium
    • Costs: Iron:5 Boronium:0 Germanium:0 Resources:10
    • Tech requirements: Weapons: 4Propulsion: 7
    • Mass:60
Not the acutal description of trianium armour, but instead an emaple so you can see how the template works.