Difference between revisions of "Template:FactionInfoBox"
m (trying </tr>) |
(finally got it working by rewriting table entirely in HTML not wikicode) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><table class="wikitable" style="float: right"> |
− | + | <th colspan="2">{{{Faction|{{PAGENAME}}}}}</th> | |
− | + | <tr> | |
− | + | <td colspan="2"><center>'''Social Effects'''</center></td> | |
− | + | </tr>{{#if:{{{Economy|}}}{{{Interest|}}}{{{Commerce|}}}| | |
− | <tr> | + | <tr> |
− | + | <td>[[Economy]]</td> | |
− | <tr> | + | <td>{{{Economy|0}}} {{#if:{{{Interest|}}}|({{tt|Per turn bonus as a percentage of current reserves|Energy interest}} {{{Interest|0%}}})}} {{#if:{{{Commerce|}}}|([[Commerce]] bonus {{{Commerce|0}}})}}</td> |
− | + | </tr>}}{{#if:{{{Efficiency|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Efficiency]]</td> | |
− | <tr> | + | <td>{{{Efficiency|0}}}</td> |
− | + | </tr>}}{{#if:{{{Support|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Support]]</td> | |
− | <tr> | + | <td>{{{Support|0}}}</td> |
− | + | </tr>}}{{#if:{{{Talent|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Talent]]</td> | |
− | <tr> | + | <td>{{{Talent|0}}}</td> |
− | + | </tr>}}{{#if:{{{Morale|}}}{{{MoraleModifier|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Morale]]</td> | |
− | <tr> | + | <td>{{{Morale|0}}} {{#if:{{{MoraleModifier|}}}|({{tt|Morale modifier on unit creation|Morale modifier}} {{{MoraleModifier|0}}})}}</td> |
− | + | </tr>}}{{#if:{{{Police|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Police]]</td> | |
− | <tr> | + | <td>{{{Police|0}}}</td> |
− | + | </tr>}}{{#if:{{{Growth|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Growth]]</td> | |
− | <tr> | + | <td>{{{Growth|0}}}</td> |
− | + | </tr>}}{{#if:{{{Planet|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Planet]]</td> | |
− | <tr> | + | <td>{{{Planet|0}}}</td> |
− | + | </tr>}}{{#if:{{{Probe|}}}{{{ProbeCost|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Probe]]</td> | |
− | + | <td>{{{Probe|0}}} {{#if:{{{ProbeCost|}}}|(Probe Cost {{{Probe Cost|100%}}})}}</td> | |
− | + | </tr>}}{{#if:{{{Industry|}}} | | |
− | + | <tr> | |
− | + | <td>[[Industry]]</td> | |
− | + | <td>{{{Industry|0}}}</td> | |
− | + | </tr>}}{{#if:{{{Research|}}}{{{TechCost|}}}{{{ResearchBonus|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>[[Research]]</td> | |
− | + | <td>{{{Research|0}}} {{#if:{{{TechCost|}}}|(Tech Cost {{{Tech Cost|100%}}})}} {{#if:{{{{{{ResearchBonus|}}}|}}}|({{tt|Extra research points generated per base per turn|Research Bonus}} {{{{{{ResearchBonus|}}}|0}}})}}</td> | |
− | + | </tr>}}{{#if:{{{Immunity|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>{{tt|Brings negative rating to zero|Immunity}}</td> | |
− | <tr> | + | <td>{{{Immunity|None}}}</td> |
− | + | </tr>}}{{#if:{{{Robust|}}} | | |
− | <tr> | + | <tr> |
− | + | <td>{{tt|Halves negative rating|Robust}}</td> | |
− | <tr> | + | <td>{{{Robust|None}}}</td> |
− | + | </tr>}}{{#if:{{{Offense|}}}{{{Defense|}}}{{{Psi|}}} | | |
− | <tr> | + | <tr> |
− | + | <td colspan="2"><center>'''Combat'''</center></td> | |
− | <tr> | + | </tr>{{#if:{{{Offense|}}} | |
− | + | <tr> | |
− | <tr> | + | <td>[[Offense]]</td> |
− | + | <td>{{{Offense|100%}}}</td> | |
− | <tr> | + | </tr>}}{{#if:{{{Defense|}}} | |
− | + | <tr> | |
− | <tr> | + | <td>[[Defense]]</td> |
− | + | <td>{{{Defense|100%}}}</td> | |
− | <tr> | + | </tr>}}{{#if:{{{Psi|}}} | |
− | + | <tr> | |
− | <tr> | + | <td>[[Psi Combat]]</td> |
− | + | <td>{{{Psi|100%}}}</td> | |
− | <tr> | + | </tr>}}}} |
− | + | <tr> | |
− | <tr> | + | <td colspan="2"><center>'''Politics'''</center></td> |
− | + | </tr> | |
− | <tr> | + | <tr> |
− | + | <td>{{tt|Social choice that faction may not take|Anti-Ideology}}</td> | |
− | <tr> | + | <td>{{{AntiIdeology|None}}}</td> |
− | + | </tr> | |
− | <tr> | + | <tr> |
− | + | <td>{{tt|Preferred social choice|Ideology}}</td> | |
− | <tr> | + | <td>{{{Ideology|None}}}</td> |
− | + | </tr>{{#if:{{{Impunity|}}}| | |
− | <tr> | + | <tr> |
− | + | <td>{{tt|Social choice that may be made without the normally associated penalty|Impunity}}</td> | |
− | <tr> | + | <td>[[{{{Impunity|None}}}]]{{#if:{{{Impunity2|}}}|, [[{{{Impunity2|}}}]]}}{{#if:{{{Impunity3|}}}|, [[{{{Impunity3|}}}]]}}</td> |
− | + | </tr>}} | |
− | <tr> | + | <tr> |
− | + | <td colspan="2"><center>'''Bonuses'''</center></td> | |
− | <tr> | + | </tr>{{#if:{{{BonusTechs|}}} | |
− | + | <tr> | |
− | <tr> | + | <td>[[BonusTechs]]</td> |
− | + | <td>{{{BonusTechs|0}}}</td> | |
− | <tr> | + | </tr>}}{{#if:{{{StartingEnergy|}}} | |
− | + | <tr> | |
− | <tr> | + | <td>[[Starting Energy]]</td> |
− | + | <td>{{{StartingEnergy|50}}}</td> | |
− | <tr> | + | </tr>}}{{#if:{{{FreeTech|}}}| |
− | + | <tr> | |
− | + | <td>Free Tech</td> | |
− | + | <td>[[{{{FreeTech|}}}]]{{#if:{{{FreeTech2|}}}|, [[{{{FreeTech2|}}}]]}}{{#if:{{{FreeTech3|}}}|, [[{{{FreeTech3|}}}]]}}{{#if:{{{FreeTech4|}}}|, [[{{{FreeTech4|}}}]]}}{{#if:{{{FreeTech5|}}}|, [[{{{FreeTech5|}}}]]}}{{#if:{{{FreeTech6|}}}|, [[{{{FreeTech6|}}}]]}}{{#if:{{{FreeTech7|}}}|, [[{{{FreeTech7|}}}]]}}{{#if:{{{FreeTech8|}}}|, [[{{{FreeTech8|}}}]]}}</td> | |
− | + | </tr>}}{{#if:{{{FreeFacility|}}}| | |
− | + | <tr> | |
− | + | <td>Free 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> | |
− | + | </tr>}}{{#if:{{{PreqFreeFacility|}}}| | |
− | + | <tr> | |
− | + | <td>Free Facility (Preq required)</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|}}}| | ||
+ | <tr> | ||
+ | <td>Free 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> | ||
+ | </tr>}}{{#if:{{{FreeAbility|}}}| | ||
+ | <tr> | ||
+ | <td>Free Ability (Preq required)</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|}}} | | ||
+ | <tr> | ||
+ | <td>[[Fungus]]</td> | ||
+ | <td>{{#if:{{{FungNutrients|}}}|+{{{FungNutrients|0}}} Nutrient|}} {{#if:{{{FungMinerals|}}}|+{{{FungMinerals|0}}} Mineral|}} {{#if:{{{FungEnergy|}}}|+{{{FungEnergy|0}}} Energy|}}</td> | ||
+ | </tr>}}{{#if:{{{Votes|}}} | | ||
+ | <tr> | ||
+ | <td>[[Council]] Votes</td> | ||
+ | <td>×{{{Votes|1}}}</td> | ||
+ | </tr>}}{{#if:{{{NoDrone|}}} | | ||
+ | <tr> | ||
+ | <td>[[Drone]] reduction</td> | ||
+ | <td>{{{NoDrone|1}}}</td> | ||
+ | </tr>}}{{#if:{{{Revolt|}}} | | ||
+ | <tr> | ||
+ | <td>[[Revolt]]</td> | ||
+ | <td>{{{Revolt|10%}}}</td> | ||
+ | </tr>}}{{#if:{{{Hurry|}}} | | ||
+ | <tr> | ||
+ | <td>[[Hurry]]</td> | ||
+ | <td>{{{Hurry|100%}}}</td> | ||
+ | </tr>}}{{#if:{{{ShareTech|}}} | | ||
+ | <tr> | ||
+ | <td>[[ShareTech]] {{#if:{{{Infiltrator|}}} |(with infiltrator)}}</td> | ||
+ | <td>{{{ShareTech|0}}}</td> | ||
+ | </tr>}}{{#if:{{{PopulationBonus|}}} | | ||
+ | <tr> | ||
+ | <td>[[PopulationBonus]]</td> | ||
+ | <td>{{{PopulationBonus|0}}}</td> | ||
+ | </tr>}}{{#if:{{{ExtraDrone|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Extra [[Drone]] per {{{ExtraDrone|4}}} population</td> | ||
+ | </tr>}}{{#if:{{{ExtraTalent|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Extra [[Talent]] per {{{ExtraTalent|4}}} population</td> | ||
+ | </tr>}}{{#if:{{{Terraform|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Double [[Terraform]] rate</td> | ||
+ | </tr>}}{{#if:{{{Comm|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Bonus [[Commlink Frequency]]</td> | ||
+ | </tr>}}{{#if:{{{MindControl|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Immune to [[Mind Control]]</td> | ||
+ | </tr>}}{{#if:{{{Prototype|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Free [[Prototypes]]</td> | ||
+ | </tr>}}{{#if:{{{Alien|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">[[Alien]] faction</td> | ||
+ | </tr>}}{{#if:{{{Aquatic|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">[[Aquatic]] faction</td> | ||
+ | </tr>}}{{#if:{{{Fanatic|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">25% attack bonus</td> | ||
+ | </tr>}}{{#if:{{{WormPolice|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Double [[native life]] [[police]] effect</td> | ||
+ | </tr>}}{{#if:{{{StealTech|}}} | | ||
+ | <tr> | ||
+ | <td colspan="2">Steals tech on base capture</td> | ||
+ | </tr>}} | ||
+ | <tr> | ||
+ | <td colspan="2"><center>'''AI'''</center></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>{{tt|Social value the leader aims to maximize|Emphasis}}</td> | ||
+ | <td>{{{Emphasis|None}}}</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>{{tt|Leader's willingness to use force|Personality}}</td> | ||
+ | <td>{{{Personality|Erratic}}}</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>{{tt|Areas of innovation leader focuses on|Interests}}</td> | ||
+ | <td>{{{Interests|None}}}</td> | ||
+ | </tr> | ||
+ | </table></includeonly> |