Difference between revisions of "Template:FactionInfoBox"
(displaying custom faction graphics, making factions not appear in root factions category) |
(loads of minor tweaks, plus added logos) |
||
Line 1: | Line 1: | ||
− | <includeonly><table class="wikitable" style="float: right"> | + | <includeonly><table class="wikitable" style="float: right;max-width:15pc"> |
− | <th colspan="2">{{{Faction|{{PAGENAME}}}}}</th> | + | <th colspan="2"><center>{{#ifexist:File:{{{Text}}}_logo.png|[[File:{{{Text}}}_logo.png]]|[[File:missing_logo.png]][[Category:Factions missing logo]]}}<br /> |
+ | {{{Faction|{{PAGENAME}}}}}</center></th> | ||
<tr> | <tr> | ||
<td colspan="2"><center>Text: [[{{PAGENAME}}/{{{Text|unadded}}}.txt|{{{Text|unadded}}}.txt]]</center></td> | <td colspan="2"><center>Text: [[{{PAGENAME}}/{{{Text|unadded}}}.txt|{{{Text|unadded}}}.txt]]</center></td> | ||
Line 71: | Line 72: | ||
</tr>}}{{#if:{{{Psi|}}} | | </tr>}}{{#if:{{{Psi|}}} | | ||
<tr> | <tr> | ||
− | <td>[[Psi | + | <td>[[Psi combat]]</td> |
<td>{{{Psi|100%}}}</td> | <td>{{{Psi|100%}}}</td> | ||
</tr>}}}} | </tr>}}}} | ||
Line 97: | Line 98: | ||
</tr>{{#if:{{{BonusTechs|}}} |[[Category:Factions with selectable starting technology]] | </tr>{{#if:{{{BonusTechs|}}} |[[Category:Factions with selectable starting technology]] | ||
<tr> | <tr> | ||
− | <td> | + | <td>{{tt|Number of selectable tech advances at start of game|Starting [[tech]]s}}</td> |
<td>{{{BonusTechs|0}}}</td> | <td>{{{BonusTechs|0}}}</td> | ||
</tr>}}{{#if:{{{StartingEnergy|}}} | | </tr>}}{{#if:{{{StartingEnergy|}}} | | ||
<tr> | <tr> | ||
− | <td> | + | <td>{{tt|Energy at start of game (default 10)|Starting [[energy]]}}</td> |
− | <td>{{{StartingEnergy| | + | <td>{{#expr:{{{StartingEnergy|0}}}+10}}</td> |
</tr>}}{{#if:{{{FreeTech|}}}|[[Category:Factions with starting technology]] | </tr>}}{{#if:{{{FreeTech|}}}|[[Category:Factions with starting technology]] | ||
<tr> | <tr> | ||
− | <td>Starting [[ | + | <td>Starting [[tech]]</td> |
<td>[[{{tlong|{{{FreeTech|}}}}}]]{{#if:{{{FreeTech2|}}}|, [[{{tlong|{{{FreeTech2|}}}}}]]}}{{#if:{{{FreeTech3|}}}|, [[{{tlong|{{{FreeTech3|}}}}}]]}}{{#if:{{{FreeTech4|}}}|, [[{{tlong|{{{FreeTech4|}}}}}]]}}{{#if:{{{FreeTech5|}}}|, [[{{tlong|{{{FreeTech5|}}}}}]]}}{{#if:{{{FreeTech6|}}}|, [[{{tlong|{{{FreeTech6|}}}}}]]}}{{#if:{{{FreeTech7|}}}|, [[{{tlong|{{{FreeTech7|}}}}}]]}}{{#if:{{{FreeTech8|}}}|, [[{{tlong|{{{FreeTech8|}}}}}]]}}</td> | <td>[[{{tlong|{{{FreeTech|}}}}}]]{{#if:{{{FreeTech2|}}}|, [[{{tlong|{{{FreeTech2|}}}}}]]}}{{#if:{{{FreeTech3|}}}|, [[{{tlong|{{{FreeTech3|}}}}}]]}}{{#if:{{{FreeTech4|}}}|, [[{{tlong|{{{FreeTech4|}}}}}]]}}{{#if:{{{FreeTech5|}}}|, [[{{tlong|{{{FreeTech5|}}}}}]]}}{{#if:{{{FreeTech6|}}}|, [[{{tlong|{{{FreeTech6|}}}}}]]}}{{#if:{{{FreeTech7|}}}|, [[{{tlong|{{{FreeTech7|}}}}}]]}}{{#if:{{{FreeTech8|}}}|, [[{{tlong|{{{FreeTech8|}}}}}]]}}</td> | ||
</tr>}}{{#if:{{{FreeFacility|}}}|[[Category:Factions with free facility]] | </tr>}}{{#if:{{{FreeFacility|}}}|[[Category:Factions with free facility]] | ||
<tr> | <tr> | ||
− | <td> | + | <td>{{tt|Facility automatically constructed at all bases and requires no upkeep|[[Facility]]}}</td> |
<td>[[{{{FreeFacility}}}]]{{#if:{{{FreeFacility2|}}}|, [[{{{FreeFacility2|}}}]]}}{{#if:{{{FreeFacility3|}}}|, [[{{{FreeFacility3|}}}]]}}{{#if:{{{FreeFacility4|}}}|, [[{{{FreeFacility4|}}}]]}}{{#if:{{{FreeFacility5|}}}|, [[{{{FreeFacility5|}}}]]}}{{#if:{{{FreeFacility6|}}}|, [[{{{FreeFacility6|}}}]]}}{{#if:{{{FreeFacility7|}}}|, [[{{{FreeFacility7|}}}]]}}{{#if:{{{FreeFacility8|}}}|, [[{{{FreeFacility8|}}}]]}}</td> | <td>[[{{{FreeFacility}}}]]{{#if:{{{FreeFacility2|}}}|, [[{{{FreeFacility2|}}}]]}}{{#if:{{{FreeFacility3|}}}|, [[{{{FreeFacility3|}}}]]}}{{#if:{{{FreeFacility4|}}}|, [[{{{FreeFacility4|}}}]]}}{{#if:{{{FreeFacility5|}}}|, [[{{{FreeFacility5|}}}]]}}{{#if:{{{FreeFacility6|}}}|, [[{{{FreeFacility6|}}}]]}}{{#if:{{{FreeFacility7|}}}|, [[{{{FreeFacility7|}}}]]}}{{#if:{{{FreeFacility8|}}}|, [[{{{FreeFacility8|}}}]]}}</td> | ||
</tr>}}{{#if:{{{PreqFreeFacility|}}}|[[Category:Factions with free facility (tech required)]] | </tr>}}{{#if:{{{PreqFreeFacility|}}}|[[Category:Factions with free facility (tech required)]] | ||
<tr> | <tr> | ||
− | <td>Free [[ | + | <td>{{tt|Facility automatically constructed at all bases one the required technology is discovered and requires no upkeep|Free [[facility]]}}</td> |
<td>[[{{{PreqFreeFacility}}}]]{{#if:{{{PreqFreeFacility2|}}}|, [[{{{PreqFreeFacility2|}}}]]}}{{#if:{{{PreqFreeFacility3|}}}|, [[{{{PreqFreeFacility3|}}}]]}}{{#if:{{{PreqFreeFacility4|}}}|, [[{{{PreqFreeFacility4|}}}]]}}{{#if:{{{PreqFreeFacility5|}}}|, [[{{{PreqFreeFacility5|}}}]]}}{{#if:{{{PreqFreeFacility6|}}}|, [[{{{PreqFreeFacility6|}}}]]}}{{#if:{{{PreqFreeFacility7|}}}|, [[{{{PreqFreeFacility7|}}}]]}}{{#if:{{{PreqFreeFacility8|}}}|, [[{{{PreqFreeFacility8|}}}]]}}</td> | <td>[[{{{PreqFreeFacility}}}]]{{#if:{{{PreqFreeFacility2|}}}|, [[{{{PreqFreeFacility2|}}}]]}}{{#if:{{{PreqFreeFacility3|}}}|, [[{{{PreqFreeFacility3|}}}]]}}{{#if:{{{PreqFreeFacility4|}}}|, [[{{{PreqFreeFacility4|}}}]]}}{{#if:{{{PreqFreeFacility5|}}}|, [[{{{PreqFreeFacility5|}}}]]}}{{#if:{{{PreqFreeFacility6|}}}|, [[{{{PreqFreeFacility6|}}}]]}}{{#if:{{{PreqFreeFacility7|}}}|, [[{{{PreqFreeFacility7|}}}]]}}{{#if:{{{PreqFreeFacility8|}}}|, [[{{{PreqFreeFacility8|}}}]]}}</td> | ||
</tr>}}{{#if:{{{FreeUnit|}}}|[[Category:Factions with free starting unit]] | </tr>}}{{#if:{{{FreeUnit|}}}|[[Category:Factions with free starting unit]] | ||
<tr> | <tr> | ||
− | <td> | + | <td>Starting [[unit]]</td> |
<td>[[{{{FreeUnit|}}}]]{{#if:{{{FreeUnit2|}}}|, [[{{{FreeUnit2|}}}]]}}{{#if:{{{FreeUnit3|}}}|, [[{{{FreeUnit3|}}}]]}}{{#if:{{{FreeUnit4|}}}|, [[{{{FreeUnit4|}}}]]}}{{#if:{{{FreeUnit5|}}}|, [[{{{FreeUnit5|}}}]]}}{{#if:{{{FreeUnit6|}}}|, [[{{{FreeUnit6|}}}]]}}{{#if:{{{FreeUnit7|}}}|, [[{{{FreeUnit7|}}}]]}}{{#if:{{{FreeUnit8|}}}|, [[{{{FreeUnit8|}}}]]}}</td> | <td>[[{{{FreeUnit|}}}]]{{#if:{{{FreeUnit2|}}}|, [[{{{FreeUnit2|}}}]]}}{{#if:{{{FreeUnit3|}}}|, [[{{{FreeUnit3|}}}]]}}{{#if:{{{FreeUnit4|}}}|, [[{{{FreeUnit4|}}}]]}}{{#if:{{{FreeUnit5|}}}|, [[{{{FreeUnit5|}}}]]}}{{#if:{{{FreeUnit6|}}}|, [[{{{FreeUnit6|}}}]]}}{{#if:{{{FreeUnit7|}}}|, [[{{{FreeUnit7|}}}]]}}{{#if:{{{FreeUnit8|}}}|, [[{{{FreeUnit8|}}}]]}}</td> | ||
</tr>}}{{#if:{{{FreeAbility|}}}|[[Category:Factions with free abilities]] | </tr>}}{{#if:{{{FreeAbility|}}}|[[Category:Factions with free abilities]] | ||
<tr> | <tr> | ||
− | <td>Free [[Ability]] | + | <td>{{tt|Ability applied to every compatible unit when required tech is discovered|Free [[Ability]]}}</td> |
<td>[[{{{FreeAbility}}}]]{{#if:{{{FreeAbility2|}}}|, [[{{{FreeAbility2|}}}]]}}{{#if:{{{FreeAbility3|}}}|, [[{{{FreeAbility3|}}}]]}}{{#if:{{{FreeAbility4|}}}|, [[{{{FreeAbility4|}}}]]}}{{#if:{{{FreeAbility5|}}}|, [[{{{FreeAbility5|}}}]]}}{{#if:{{{FreeAbility6|}}}|, [[{{{FreeAbility6|}}}]]}}{{#if:{{{FreeAbility7|}}}|, [[{{{FreeAbility7|}}}]]}}{{#if:{{{FreeAbility8|}}}|, [[{{{FreeAbility8|}}}]]}}</td> | <td>[[{{{FreeAbility}}}]]{{#if:{{{FreeAbility2|}}}|, [[{{{FreeAbility2|}}}]]}}{{#if:{{{FreeAbility3|}}}|, [[{{{FreeAbility3|}}}]]}}{{#if:{{{FreeAbility4|}}}|, [[{{{FreeAbility4|}}}]]}}{{#if:{{{FreeAbility5|}}}|, [[{{{FreeAbility5|}}}]]}}{{#if:{{{FreeAbility6|}}}|, [[{{{FreeAbility6|}}}]]}}{{#if:{{{FreeAbility7|}}}|, [[{{{FreeAbility7|}}}]]}}{{#if:{{{FreeAbility8|}}}|, [[{{{FreeAbility8|}}}]]}}</td> | ||
</tr>}}{{#if:{{{FungNutrients|}}}{{{FungMinerals|}}}{{{FungEnergy|}}} |[[Category:Factions with fungal resource bonuses]] | </tr>}}{{#if:{{{FungNutrients|}}}{{{FungMinerals|}}}{{{FungEnergy|}}} |[[Category:Factions with fungal resource bonuses]] | ||
<tr> | <tr> | ||
− | <td>[[Fungus]]</td> | + | <td>{{tt|Extra resources produced by xenofungus squares|[[Fungus]] production}}</td> |
− | <td>{{#if:{{{FungNutrients|}}}|+{{{FungNutrients|0}}} Nutrient|}} {{#if:{{{FungMinerals|}}}|+{{{FungMinerals|0}}} Mineral|}} {{#if:{{{FungEnergy|}}}|+{{{FungEnergy|0}}} Energy|}}</td> | + | <td>{{#if:{{{FungNutrients|}}}|+{{{FungNutrients|0}}} [[Nutrient]]|}} {{#if:{{{FungMinerals|}}}|+{{{FungMinerals|0}}} [[Mineral]]|}} {{#if:{{{FungEnergy|}}}|+{{{FungEnergy|0}}} [[Energy]]|}}</td> |
</tr>}}{{#if:{{{Votes|}}} |[[Category:Factions with ×{{{Votes|1}}} votes]] | </tr>}}{{#if:{{{Votes|}}} |[[Category:Factions with ×{{{Votes|1}}} votes]] | ||
<tr> | <tr> | ||
Line 149: | Line 150: | ||
</tr>}}{{#if:{{{PopulationBonus|}}} |[[Category:Factions with {{#ifexpr: {{{PopulationBonus|}}} > 0 | {{#expr:-{{{PopulationBonus|}}}}}|+{{#expr:-{{{PopulationBonus|}}}}}}} max base size]] | </tr>}}{{#if:{{{PopulationBonus|}}} |[[Category:Factions with {{#ifexpr: {{{PopulationBonus|}}} > 0 | {{#expr:-{{{PopulationBonus|}}}}}|+{{#expr:-{{{PopulationBonus|}}}}}}} max base size]] | ||
<tr> | <tr> | ||
− | <td>{{tt| | + | <td>{{tt|Max base size modifier. in text files/templates, this number is reversed, so minus anywhere but displayed here means larger bases.|Max base size}}</td> |
<td>{{#ifexpr: {{{PopulationBonus|}}} > 0 | {{#expr:-{{{PopulationBonus|}}}}}|+{{#expr:-{{{PopulationBonus|}}}}}}}</td> | <td>{{#ifexpr: {{{PopulationBonus|}}} > 0 | {{#expr:-{{{PopulationBonus|}}}}}|+{{#expr:-{{{PopulationBonus|}}}}}}}</td> | ||
</tr>}}{{#if:{{{ExtraDrone|}}} |[[Category:Factions with +1 drone per {{{ExtraDrone|4}}} population]] | </tr>}}{{#if:{{{ExtraDrone|}}} |[[Category:Factions with +1 drone per {{{ExtraDrone|4}}} population]] | ||
<tr> | <tr> | ||
− | <td colspan="2">Extra [[ | + | <td colspan="2">Extra [[drone]] per {{{ExtraDrone|4}}} population</td> |
</tr>}}{{#if:{{{ExtraTalent|}}} |[[Category:Factions with +1 talent per {{{ExtraTalent|4}}} population]] | </tr>}}{{#if:{{{ExtraTalent|}}} |[[Category:Factions with +1 talent per {{{ExtraTalent|4}}} population]] | ||
<tr> | <tr> | ||
− | <td colspan="2">Extra [[ | + | <td colspan="2">Extra [[talent]] per {{{ExtraTalent|4}}} population</td> |
</tr>}}{{#if:{{{Terraform|}}} |[[Category:Factions with terraform bonus]] | </tr>}}{{#if:{{{Terraform|}}} |[[Category:Factions with terraform bonus]] | ||
<tr> | <tr> | ||
− | <td colspan="2">Double [[ | + | <td colspan="2">Double [[terraform]] rate</td> |
</tr>}}{{#if:{{{Comm|}}} |[[Category:Factions with bonus commlink]] | </tr>}}{{#if:{{{Comm|}}} |[[Category:Factions with bonus commlink]] | ||
<tr> | <tr> | ||
− | <td colspan="2">Bonus [[ | + | <td colspan="2">Bonus [[commlink frequency]]</td> |
</tr>}}{{#if:{{{MindControl|}}} |[[Category:Factions with mind control immunity]] | </tr>}}{{#if:{{{MindControl|}}} |[[Category:Factions with mind control immunity]] | ||
<tr> | <tr> | ||
− | <td colspan="2">Immune to [[ | + | <td colspan="2">Immune to [[mind control]]</td> |
</tr>}}{{#if:{{{Prototype|}}} |[[Category:Factions with free prototypes]] | </tr>}}{{#if:{{{Prototype|}}} |[[Category:Factions with free prototypes]] | ||
<tr> | <tr> | ||
Line 177: | Line 178: | ||
</tr>}}{{#if:{{{Fanatic|}}} |[[Category:Factions with fanatic bonus]] | </tr>}}{{#if:{{{Fanatic|}}} |[[Category:Factions with fanatic bonus]] | ||
<tr> | <tr> | ||
− | <td colspan="2">25% attack bonus</td> | + | <td colspan="2">25% attack bonus (fanatic)</td> |
</tr>}}{{#if:{{{WormPolice|}}} |[[Category:Factions with double native life police]] | </tr>}}{{#if:{{{WormPolice|}}} |[[Category:Factions with double native life police]] | ||
<tr> | <tr> | ||
− | <td colspan="2"> | + | <td colspan="2">[[Native units]] have double [[police]] effect</td> |
</tr>}}{{#if:{{{StealTech|}}} |[[Category:Factions which steal tech on base capture]] | </tr>}}{{#if:{{{StealTech|}}} |[[Category:Factions which steal tech on base capture]] | ||
<tr> | <tr> |
Revision as of 11:24, 22 February 2013
Use
{{fib can replace {{FactionInfoBox. Faction= defaults to pagename, so is not required. Copyable/blank:
{{FactionInfoBox |Text= |Economy= |Interest= |Commerce= |Efficiency= |Support= |Talent= |Morale= |MoraleModifier= |Police= |Growth= |Planet= |Probe= |ProbeCost= |Industry= |Research= |TechCost= |ResearchBonus= |Immunity= |Penalty= |Robust= |AntiIdeology= |Ideology= |Impunity= |FreeTech= |FreeTech2= |FreeUnit= |FreeFacility= |PreqFreeFacility= |FreeAbility= |Offense= |Defense= |Psi= |PopulationBonus= |ExtraDrone= |ExtraTalent= |BonusTechs= |StartingEnergy= |FungNutrients= |FungMinerals= |FungEnergy= |Hurry= |Votes= |NoDrone= |Revolt= |ShareTech= |Infiltrator= |Terraform= |Comm= |MindControl= |Prototype= |Progenitor= |Aquatic= |Fanatic= |WormPolice= |StealTech= }}
Filled in example:
{{FactionInfoBox |Faction=ete's esps (not required, defaults to pagename) |Text=ETE (name of faction's text file) |Economy=-4 |Interest=10% |Commerce=1 |Efficiency=+3 |Support=+1 |Talent=+1 |Morale=-2 |MoraleModifier=+1 |Police=-2 |Growth=+1 |Planet=+2 |Probe=+1 |ProbeCost=85% |Industry=-2 |Research=+1 |TechCost=80% |ResearchBonus=2 |Immunity=Planet |Penalty=Growth |Robust=Morale |Offense=80% |Defense=90% |Psi=130% |AntiIdeology=Police State |Ideology=Knowledge |Impunity=Eudiamonic |ExtraDrone=5 |ExtraTalent=3 |BonusTechs=2 |StartingEnergy=42 |FreeTech=Centuri Campfires (accepts short tech names) |FreeTech2=Doctrine: Doctrines |FreeUnit=Colony Pod |FreeFacility=Network Node |PreqFreeFacility=Hab Complex |FreeAbility=Clean Reactor |FungNutrients=+2 |FungMinerals=+1 |FungEnergy=+2 |Votes=3 |NoDrone=1 |Revolt=25% |Hurry=90% |ShareTech=4 |Infiltrator=yes |PopulationBonus=4 |Terraform=y |Comm=1 |MindControl=anything can go in binary things, it just means yes if there's something |Prototype=cats |Progenitor=yes |Aquatic=yes |Fanatic=yes |WormPolice=yes |StealTech=yes }}