|
|
| (13 intermediate revisions by one other user not shown) |
| Line 1: |
Line 1: |
| <includeonly> | | <includeonly><tabber> |
| {{#clear_external_data:}} | | |-|General Info= |
| {| class="wikitable" style="width: 100%;text-align:center;" | | {{#clear_external_data:}}{| class="wikitable" style="width: 100%;text-align:center;" |
| |- | | |- |
| ! colspan=4| <big><big>{{{1}}}</big></big><br>{{icon|{{lc: {{{1}}} }}|size=120px}} | | ! colspan=4| <big><big>{{{1}}}</big></big><br>{{icon|{{lc: {{{1}}} }}|size=120px}} |
| Line 7: |
Line 7: |
| | colspan=4| {{{description| }}} | | | colspan=4| {{{description| }}} |
| |- | | |- |
| ! colspan=4| Missions that use {{{1}}} | | ! colspan=4| [[Missions]] that use {{{1}}} {{icon|{{lc: {{{1}}} }} }} |
| |- | | |- |
| ! As an Attack Attribute: | | ! As an Attack Attribute: |
| Line 17: |
Line 17: |
| }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| [[{{missionDisplayName|{{{missionDataName}}} }}]] • }} }} | | }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| [[{{missionDisplayName|{{{missionDataName}}} }}]] • }} }} |
| |- | | |- |
| ! As a Defense Attribute: | | ! As a Defense Attribute:<ref>A mission can appear multiple times if the attribute is used as a defense in multiple ways. For example, the Security of the Target Councilor and the Security of anyone using Protect Target on the Target Councilor could both defend against an Attack mission.</ref> |
| | colspan=3| {{#clear_external_data:}}{{#get_web_data: | | | colspan=3| {{#clear_external_data:}}{{#get_web_data: |
| |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/defendingModifiers/0/defenderAttribute={{{1}}} | | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/defendingModifiers/0/defenderAttribute={{{1}}} |
| Line 23: |
Line 23: |
| missionDataName=dataName | | missionDataName=dataName |
| |format=CSV with Header | | |format=CSV with Header |
| }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| {{missionDisplayName|{{{missionDataName}}} }} • }} }}{{#clear_external_data:}}{{#get_web_data: | | }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| [[{{missionDisplayName|{{{missionDataName}}} }}]] • }} }}{{#clear_external_data:}} {{#get_web_data: |
| |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/defendingModifiers/1/defenderAttribute={{{1}}} | | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/defendingModifiers/1/defenderAttribute={{{1}}} |
| |data= | | |data= |
| missionDataName=dataName | | missionDataName=dataName |
| |format=CSV with Header | | |format=CSV with Header |
| }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| {{missionDisplayName|{{{missionDataName}}} }} • }} }}{{#clear_external_data:}}{{#get_web_data: | | }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| [[{{missionDisplayName|{{{missionDataName}}} }}]] • }} }}{{#clear_external_data:}} {{#get_web_data: |
| |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/defendingModifiers/2/defenderAttribute={{{1}}} | | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/defendingModifiers/2/defenderAttribute={{{1}}} |
| |data= | | |data= |
| missionDataName=dataName | | missionDataName=dataName |
| |format=CSV with Header | | |format=CSV with Header |
| }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| {{missionDisplayName|{{{missionDataName}}} }} • }} }}{{#clear_external_data:}} | | }}{{#iferror: {{#external_value: missionDataName}} | | {{#for_external_table:| [[{{missionDisplayName|{{{missionDataName}}} }}]] • }} }}{{#clear_external_data:}} |
| | |- |
| | ! colspan=4 | [[Councilors#Profession|Councilor Professions]] that have {{{1}}} {{icon|{{lc: {{{1}}} }} }} |
| | |- |
| | ! As their Primary Stat: |
| | | colspan=3 | {{#get_web_data: |
| | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TICouncilorTypeTemplate_CSV?keyStat/0={{{1}}} |
| | |data= |
| | professionName=dataName |
| | |format=CSV with Header |
| | }}{{#iferror: {{#external_value: professionName}} | | {{#for_external_table:| {{{professionName}}} • }} }}{{#clear_external_data:}} |
| | |- |
| | ! As their Secondary Stat: |
| | | colspan=3 | {{#get_web_data: |
| | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TICouncilorTypeTemplate_CSV?keyStat/1={{{1}}} |
| | |data= |
| | professionName=dataName |
| | |format=CSV with Header |
| | }}{{#iferror: {{#external_value: professionName}} | | {{#for_external_table:| {{{professionName}}} • }} }}{{#clear_external_data:}} |
| |- | | |- |
| ! colspan=4 | Traits that affect {{{1}}} | | ! colspan=4 | [[Councilors#Traits|Traits]] that affect {{{1}}} {{icon|{{lc: {{{1}}} }} }} |
| |- | | |- |
| | colspan=4 | | | | colspan=4 | |
| {| class="wikitable sortable mw-collapsible mw-collapsed" style="width: 100%;text-align: center;" | | {| class="wikitable sortable mw-collapsible mw-collapsed" style="width: 100%;text-align: center;" |
| ! Trait !! Condition !! Effect on {{{1}}} | | ! Trait !! Condition !! Effect on {{icon|{{lc: {{{1}}} }} }} |
| |- | | |- |
| {{#get_web_data: | | {{#get_web_data: |
| Line 57: |
Line 75: |
| {{!}} {{{traitName}}} | | {{!}} {{{traitName}}} |
| {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} | | {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} |
| | TINationCondition_fInequality = Location [[Nations#Inequality|Inequality]] | | | TINationCondition_fInequality = Location {{icon|inequality|bgcolor=DarkSlateGray}}[[Inequality]] |
| | TINationCondition_fEducation = Location [[Nations#Education|Education]] | | | TINationCondition_fEducation = Location {{icon|education}}[[Education]] |
| | TINationCondition_fDemocracy = Location [[Nations#Government|Government]] | | | TINationCondition_fDemocracy = Location {{icon|democracy|bgcolor=DarkSlateGray}}[[Government]] |
| | TINationCondition_fCohesion = Location [[Nations#Cohesion|Cohesion]] | | | TINationCondition_fCohesion = Location {{icon|cohesion|bgcolor=DarkSlateGray}}[[Cohesion]] |
| | TINationCondition_fUnrest = Location [[Nations#Unrest|Unrest]] | | | TINationCondition_fUnrest = Location {{icon|unrest|bgcolor=DarkSlateGray}}[[Unrest]] |
| | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? | | | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? |
| | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? | | | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? |
| | TIFactionCondition_efResourceValue = Faction's amount of resource | | | TIFactionCondition_efResourceValue = Faction's amount of resource |
| | #default = {{{condType}}} | | | #default = {{{condType|}}} |
| }}{{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} | | }} {{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} |
| | LessThanOrEqualTo = ≤ | | | LessThanOrEqualTo = ≤ |
| | GreaterThanOrEqualTo = ≥ | | | GreaterThanOrEqualTo = ≥ |
| Line 72: |
Line 90: |
| | GreaterThan = > | | | GreaterThan = > |
| | LessThan = < | | | LessThan = < |
| | #default = {{{condSign}}} | | | #default = {{{condSign|}}} |
| }} {{{condVal}}} | | }} {{{condVal|}}} |
| }} | | }} |
| {{!}} {{#switch: {{{statOp}}} | | {{!}} {{#switch: {{{statOp}}} |
| Line 98: |
Line 116: |
| {{!}} {{{traitName}}} | | {{!}} {{{traitName}}} |
| {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} | | {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} |
| | TINationCondition_fInequality = Location [[Nations#Inequality|Inequality]] | | | TINationCondition_fInequality = Location {{icon|inequality|bgcolor=DarkSlateGray}}[[Inequality]] |
| | TINationCondition_fEducation = Location [[Nations#Education|Education]] | | | TINationCondition_fEducation = Location {{icon|education}}[[Education]] |
| | TINationCondition_fDemocracy = Location [[Nations#Government|Government]] | | | TINationCondition_fDemocracy = Location {{icon|democracy|bgcolor=DarkSlateGray}}[[Government]] |
| | TINationCondition_fCohesion = Location [[Nations#Cohesion|Cohesion]] | | | TINationCondition_fCohesion = Location {{icon|cohesion|bgcolor=DarkSlateGray}}[[Cohesion]] |
| | TINationCondition_fUnrest = Location [[Nations#Unrest|Unrest]] | | | TINationCondition_fUnrest = Location {{icon|unrest|bgcolor=DarkSlateGray}}[[Unrest]] |
| | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? | | | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? |
| | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? | | | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? |
| | TIFactionCondition_efResourceValue = Faction's amount of resource | | | TIFactionCondition_efResourceValue = Faction's amount of resource |
| | #default = {{{condType}}} | | | #default = {{{condType|}}} |
| }}{{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} | | }} {{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} |
| | LessThanOrEqualTo = ≤ | | | LessThanOrEqualTo = ≤ |
| | GreaterThanOrEqualTo = ≥ | | | GreaterThanOrEqualTo = ≥ |
| Line 113: |
Line 131: |
| | GreaterThan = > | | | GreaterThan = > |
| | LessThan = < | | | LessThan = < |
| | #default = {{{condSign}}} | | | #default = {{{condSign|}}} |
| }} {{{condVal}}} | | }} {{{condVal|}}} |
| }} | | }} |
| {{!}} {{#switch: {{{statOp}}} | | {{!}} {{#switch: {{{statOp}}} |
| Line 139: |
Line 157: |
| {{!}} {{{traitName}}} | | {{!}} {{{traitName}}} |
| {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} | | {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} |
| | TINationCondition_fInequality = Location [[Nations#Inequality|Inequality]] | | | TINationCondition_fInequality = Location {{icon|inequality|bgcolor=DarkSlateGray}}[[Inequality]] |
| | TINationCondition_fEducation = Location [[Nations#Education|Education]] | | | TINationCondition_fEducation = Location {{icon|education}}[[Education]] |
| | TINationCondition_fDemocracy = Location [[Nations#Government|Government]] | | | TINationCondition_fDemocracy = Location {{icon|democracy|bgcolor=DarkSlateGray}}[[Government]] |
| | TINationCondition_fCohesion = Location [[Nations#Cohesion|Cohesion]] | | | TINationCondition_fCohesion = Location {{icon|cohesion|bgcolor=DarkSlateGray}}[[Cohesion]] |
| | TINationCondition_fUnrest = Location [[Nations#Unrest|Unrest]] | | | TINationCondition_fUnrest = Location {{icon|unrest|bgcolor=DarkSlateGray}}[[Unrest]] |
| | | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? |
| | | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? |
| | | TIFactionCondition_efResourceValue = Faction's amount of resource |
| | | #default = {{{condType|}}} |
| | }} {{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} |
| | | LessThanOrEqualTo = ≤ |
| | | GreaterThanOrEqualTo = ≥ |
| | | EqualTo = = |
| | | GreaterThan = > |
| | | LessThan = < |
| | | #default = {{{condSign|}}} |
| | }} {{{condVal|}}} |
| | }} |
| | {{!}} {{#switch: {{{statOp}}} |
| | | Additive = {{#ifexpr: {{{statVal}}} > 0|+}}{{{statVal}}} |
| | | #default = {{{statOp}}} {{{statVal}}} |
| | }} |
| | {{!}}- |
| | }} |
| | }}{{#clear_external_data:}} |
| | {{#get_web_data: |
| | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TITraitTemplate_CSV?statMods/3/stat={{{1}}} |
| | |data= |
| | traitName=friendlyName, |
| | statOp=statMods/3/operation, |
| | statVal=statMods/3/strValue, |
| | condType=statMods/3/condition/$type, |
| | condId=statMods/3/condition/strIdx, |
| | condSign=statMods/3/condition/sign, |
| | condVal=statMods/3/condition/strValue, |
| | |format=CSV with Header |
| | }}{{#iferror: {{#external_value: traitName}} | | |
| | {{#for_external_table:| |
| | {{!}}- |
| | {{!}} {{{traitName}}} |
| | {{!}} {{#ifeq: {{{condType}}} | | None | {{#switch: {{{condType}}} |
| | | TINationCondition_fInequality = Location {{icon|inequality|bgcolor=DarkSlateGray}}[[Inequality]] |
| | | TINationCondition_fEducation = Location {{icon|education}}[[Education]] |
| | | TINationCondition_fDemocracy = Location {{icon|democracy|bgcolor=DarkSlateGray}}[[Government]] |
| | | TINationCondition_fCohesion = Location {{icon|cohesion|bgcolor=DarkSlateGray}}[[Cohesion]] |
| | | TINationCondition_fUnrest = Location {{icon|unrest|bgcolor=DarkSlateGray}}[[Unrest]] |
| | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? | | | TICouncilorCondition_bInHomeNation = Location is councilor's home nation? |
| | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? | | | TIGlobalCondition_bNuclearWeaponsUsed = At least one nuke fired this campaign? |
| | TIFactionCondition_efResourceValue = Faction's amount of resource | | | TIFactionCondition_efResourceValue = Faction's amount of resource |
| | #default = {{{condType}}} | | | #default = {{{condType|None}}} |
| }}{{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} | | }} {{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} |
| | LessThanOrEqualTo = ≤ | | | LessThanOrEqualTo = ≤ |
| | GreaterThanOrEqualTo = ≥ | | | GreaterThanOrEqualTo = ≥ |
| Line 154: |
Line 213: |
| | GreaterThan = > | | | GreaterThan = > |
| | LessThan = < | | | LessThan = < |
| | #default = {{{condSign}}} | | | #default = {{{condSign|}}} |
| }} {{{condVal}}} | | }} {{{condVal|}}} |
| }} | | }} |
| {{!}} {{#switch: {{{statOp}}} | | {{!}} {{#switch: {{{statOp}}} |
| Line 163: |
Line 222: |
| {{!}}- | | {{!}}- |
| }} | | }} |
| | }}{{#clear_external_data:}} |
| | {{#get_web_data: |
| | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TITraitTemplate_CSV |
| | |data= |
| | traitName=friendlyName, |
| | detectEsp=detectionEspBonus, |
| | detectInv=detectionInvBonus, |
| | |format=CSV with Header |
| | }}{{#iferror: {{#external_value: traitName}} | | |
| | {{#switch: {{{1}}} |
| | |Espionage= {{#for_external_table:| {{#ifeq: {{{detectEsp}}} | | | |
| | {{!}}- |
| | {{!}} {{{traitName}}} |
| | {{!}} When checking [[Councilors#Detection|Detection]] |
| | {{!}} {{#ifexpr: {{{detectEsp}}} > 0|+}}{{{detectEsp}}} |
| | {{!}}- |
| | }} }} |
| | |Investigation= {{#for_external_table:| {{#ifeq: {{{detectInv}}} | | | |
| | {{!}}- |
| | {{!}} {{{traitName}}} |
| | {{!}} When checking [[Councilors#Detection|Detection]] |
| | {{!}} {{#ifexpr: {{{detectInv}}} > 0|+}}{{{detectInv}}} |
| | {{!}}- |
| | }} }} |
| | }} |
| }}{{#clear_external_data:}} | | }}{{#clear_external_data:}} |
| |- | | |- |
| |} | | |} |
| | |- |
| | {{#ifeq: {{{1}}} | Loyalty | | |
| | ! colspan=4 {{!}} [[Orgs]] that give {{{1}}} {{icon|{{lc: {{{1}}} }} }}{{#get_web_data: |
| | |url={{fullurl:RawOrgDisplayName|action=raw}} |
| | |data=__all |
| | }} |
| | {{!}}- |
| | {{!}} colspan=4 {{!}} |
| | {{{!}} class="wikitable sortable mw-collapsible mw-collapsed" style="width: 100%;text-align: center;" |
| | ! Org !! Tier !! Minimum {{icon|{{lc: {{{1}}} }} }} !! Maximum {{icon|{{lc: {{{1}}} }} }} !! Chance !! Average {{icon|{{lc: {{{1}}} }} }} |
| | {{!}}- |
| | {{#get_web_data: |
| | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIOrgTemplate_CSV |
| | |data= |
| | orgName=dataName, |
| | tier=tier, |
| | bStat={{lc: {{{1}}} }}, |
| | rStat=rand{{{1}}}, |
| | cStat=chance{{{1}}}, |
| | |format=CSV with Header |
| | }}{{#iferror: {{#external_value: orgName}} | | {{#for_external_table:| |
| | {{#if: {{{cStat}}} | |
| | {{!}}- |
| | {{!}} {{#external_value: {{{orgName}}} | {{{orgName}}} }} |
| | {{!}} {{#switch: {{{tier}}} |
| | | 3 = style="color:green;" |
| | | 2 = style="color:orange;" |
| | | 1 = style="color:red;" |
| | }}{{!}}{{{tier}}} |
| | {{!}} {{{bStat}}} |
| | {{!}} {{#expr: {{{bStat}}} + {{#if: {{{rStat}}} | {{{rStat}}} | 0}} }} |
| | {{!}} {{{cStat|0}}}% |
| | {{!}} {{#expr: ({{{bStat}}} + {{#if: {{{rStat}}} | {{{rStat}}} | 0}} / 2) * {{{cStat|0}}} / 100}} |
| | {{!}}- |
| | }} }} }}{{#clear_external_data:}} |
| | {{!}}- |
| | {{!}}} |
| | }} |
| |- | | |- |
| ! colspan=4 | Effects | | ! colspan=4 | Effects |
| Line 178: |
Line 300: |
| ! colspan=4 | Data Sources | | ! colspan=4 | Data Sources |
| |- | | |- |
| | colspan=4 | [[TIMissionTemplate_CSV]] | | | colspan=4 | [[TIMissionTemplate_CSV]] • [[TICouncilorTypeTemplate_CSV]] • [[TITraitTemplate_CSV]] • [[TIOrgTemplate_CSV]] |
| |- | | |- |
| ! colspan=4 | Related Pages | | ! colspan=4 | Related Pages |
| |- | | |- |
| | colspan=4 | [[Councilors]] • [[Profession List]] • [[Org List]] | | | colspan=4 | [[Councilors]] • [[Missions]] • [[Profession List]] • [[Org List]] |
| | |- |
| | ! colspan=4 | Other Attributes |
| | |- |
| | | colspan=4 | {{icon|persuasion}}[[Persuasion]] • {{icon|investigation}}[[Investigation]] • {{icon|espionage}}[[Espionage]] • {{icon|command}}[[Command]] • {{icon|administration}}[[Administration]] • {{icon|science}}[[Science]] • {{icon|security}}[[Security]] • {{icon|loyalty}}[[Loyalty]] |
| |- | | |- |
| |} | | |} |
| | <references /> |
| {{#clear_external_data:}} | | {{#clear_external_data:}} |
| </includeonly><noinclude>
| | |-|Professions= |
| | {{#invoke:CouncilorTypeLister|ListAttributeCouncilorTypes|{{{1}}} }} |
| | |-|Orgs= |
| | {{#ifeq: {{{1}}} | Loyalty | No [[Orgs]] affect this attribute. | {{#invoke:OrgLister|ListRestrictedOrgs|Not Match,chance{{{1}}},0|Not Match,chance{{{1}}},|Focus={{{1}}} }} }} |
|
| |
|
| A template for councilor attributes. | | </tabber></includeonly><noinclude>A template for councilor attributes. |
|
| |
|
| == Usage == | | == Usage == |
|
| |
|
| To get the Persuasion attribute for example: | | To get the Persuasion attribute for example: |
| <pre>{{attribute|Persuasion|description=|effects=|notes=}}</pre> | | <pre>{{attribute|Persuasion|description=Persuasion is the ability to shape the opinions of others to your own. It is crucial in gaining support from Earth's nations.|effects= |
| | * +1% {{icon|influence|bgcolor=DarkSlateGray}} Influence Income for Councilor per Persuasion point. |
| | * +1 {{icon|cp|bgcolor=DarkSlateGray}} Control point Cap per Persuasion point.|notes=}}</pre> |
|
| |
|
| Named parameters are optional. | | Named parameters are optional. |
| Line 201: |
Line 333: |
| {{attribute|Persuasion|description=Persuasion is the ability to shape the opinions of others to your own. It is crucial in gaining support from Earth's nations.|effects= | | {{attribute|Persuasion|description=Persuasion is the ability to shape the opinions of others to your own. It is crucial in gaining support from Earth's nations.|effects= |
| * +1% {{icon|influence|bgcolor=DarkSlateGray}} Influence Income for Councilor per Persuasion point. | | * +1% {{icon|influence|bgcolor=DarkSlateGray}} Influence Income for Councilor per Persuasion point. |
| * +1 {{icon|cp|bgcolor=DarkSlateGray}} Control point Cap per Persuasion point. | | * +1 {{icon|cp|bgcolor=DarkSlateGray}} Control point Cap per Persuasion point.|notes=}} |
| |notes=}} | |
| | | |
| [[Category:Templates]] | | [[Category:Templates]] |
|
| |
|
| </noinclude> | | </noinclude> |