Template:Attribute: Difference between revisions
From Terra Invicta Official Wiki
No edit summary |
No edit summary |
||
| 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 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 | Traits that affect {{{1}}} | ! colspan=4 | 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 | | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="width: 100%;text-align: center;" | |||
! Profession !! Minimum {{icon|{{lc: {{{1}}} }} }} !! Average {{icon|{{lc: {{{1}}} }} }} !! Maximum {{icon|{{lc: {{{1}}} }} }} | |||
|- | |||
{{#get_web_data: | |||
|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TICouncilorTypeTemplate_CSV | |||
|data= | |||
professionName=dataName, | |||
bStat=base{{{1}}}, | |||
rStat=rand{{{1}}}, | |||
|format=CSV with Header | |||
}}{{#iferror: {{#external_value: professionName}} | | {{#for_external_table:| | |||
{{!}}- | |||
{{!}} {{{professionName}}} | |||
{{!}} {{{bStat}}} | |||
{{!}} {{#expr: {{{bStat}}} + {{{rStat}}} / 2}} | |||
{{!}} {{#expr: {{{bStat}}} + {{{rStat}}} }} | |||
{{!}}- | |||
}} }}{{#clear_external_data:}} | |||
|- | |||
|} | |||
|- | |||
! colspan=4 | 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 65: | Line 105: | ||
| 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 112: | ||
| GreaterThan = > | | GreaterThan = > | ||
| LessThan = < | | LessThan = < | ||
| #default = {{{condSign}}} | | #default = {{{condSign|}}} | ||
}} {{{condVal}}} | }} {{{condVal|}}} | ||
}} | }} | ||
{{!}} {{#switch: {{{statOp}}} | {{!}} {{#switch: {{{statOp}}} | ||
| Line 106: | Line 146: | ||
| 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 153: | ||
| GreaterThan = > | | GreaterThan = > | ||
| LessThan = < | | LessThan = < | ||
| #default = {{{condSign}}} | | #default = {{{condSign|}}} | ||
}} {{{condVal}}} | }} {{{condVal|}}} | ||
}} | }} | ||
{{!}} {{#switch: {{{statOp}}} | {{!}} {{#switch: {{{statOp}}} | ||
| Line 147: | Line 187: | ||
| 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 = ≤ | |||
| 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 [[Nations#Inequality|Inequality]] | |||
| TINationCondition_fEducation = Location [[Nations#Education|Education]] | |||
| TINationCondition_fDemocracy = Location [[Nations#Government|Government]] | |||
| TINationCondition_fCohesion = Location [[Nations#Cohesion|Cohesion]] | |||
| TINationCondition_fUnrest = Location [[Nations#Unrest|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|None}}} | |||
}} {{#ifeq: {{{condId}}} | | | ({{{condId}}})}} {{#switch: {{{condSign}}} | |||
| LessThanOrEqualTo = ≤ | | LessThanOrEqualTo = ≤ | ||
| GreaterThanOrEqualTo = ≥ | | GreaterThanOrEqualTo = ≥ | ||
| Line 154: | Line 235: | ||
| GreaterThan = > | | GreaterThan = > | ||
| LessThan = < | | LessThan = < | ||
| #default = {{{condSign}}} | | #default = {{{condSign|}}} | ||
}} {{{condVal}}} | }} {{{condVal|}}} | ||
}} | }} | ||
{{!}} {{#switch: {{{statOp}}} | {{!}} {{#switch: {{{statOp}}} | ||
| Line 163: | Line 244: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
}}{{#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 322: | ||
! 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]] | ||
|- | |- | ||
|} | |} | ||
| Line 199: | Line 343: | ||
== Example == | == Example == | ||
{{attribute| | {{attribute|Security|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. | ||
Revision as of 23:04, 5 July 2025
A template for councilor attributes.
Usage
To get the Persuasion attribute for example:
{{attribute|Persuasion|description=|effects=|notes=}}
Named parameters are optional.
Example
Security
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Persuasion is the ability to shape the opinions of others to your own. It is crucial in gaining support from Earth's nations. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Missions that use Security | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| As an Attack Attribute: | Error while fetching data from URL https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/attackingModifiers/0/attackerAttribute=Security: $2. There was a problem during the HTTP request: 403 Forbidden Error while fetching data from URL https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIMissionTemplate_CSV?resolutionMethod/attackingModifiers/0/attackerAttribute=Security: <!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="content-security-policy" content="default-src 'none'; script-src 'nonce-DPgT3KSZRS9MQf4Y3jzTAj' 'unsafe-eval' https://challenges.cloudflare.com; script-src-attr 'none'; style-src 'unsafe-inline'; img-src 'self' https://challenges.cloudflare.com; connect-src 'self' https://challenges.cloudflare.com; frame-src 'self' https://challenges.cloudflare.com blob:; child-src 'self' https://challenges.cloudflare.com blob:; worker-src blob:; form-action http: https:; base-uri 'self'"><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}body{display:flex;flex-direction:column;height:100vh;min-height:100vh}.main-content{margin:8rem auto;padding-left:1.5rem;max-width:60rem}@media (width <= 720px){.main-content{margin-top:4rem}}#challenge-error-text{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0IyMEYwMyIgZD0iTTE2IDNhMTMgMTMgMCAxIDAgMTMgMTNBMTMuMDE1IDEzLjAxNSAwIDAgMCAxNiAzbTAgMjRhMTEgMTEgMCAxIDEgMTEtMTEgMTEuMDEgMTEuMDEgMCAwIDEtMTEgMTEiLz48cGF0aCBmaWxsPSIjQjIwRjAzIiBkPSJNMTcuMDM4IDE4LjYxNUgxNC44N0wxNC41NjMgOS41aDIuNzgzem0tMS4wODQgMS40MjdxLjY2IDAgMS4wNTcuMzg4LjQwNy4zODkuNDA3Ljk5NCAwIC41OTYtLjQwNy45ODQtLjM5Ny4zOS0xLjA1Ny4zODktLjY1IDAtMS4wNTYtLjM4OS0uMzk4LS4zODktLjM5OC0uOTg0IDAtLjU5Ny4zOTgtLjk4NS40MDYtLjM5NyAxLjA1Ni0uMzk3Ii8+PC9zdmc+");background-repeat:no-repeat;background-size:contain;padding-left:34px}</style><meta http-equiv="refresh" content="360"></head><body>. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| As a Defense Attribute: | Assassinate • Detain Councilor • Extract Councilor • Investigate Councilor • Sabotage Facilities • Sabotage Hab Module • Sabotage Project • Steal Project •Assassinate • Control Space Asset • Detain Councilor • Enthrall Org • Extract Councilor • Sabotage Facilities • Sabotage Hab Module • Sabotage Project • Steal Project • Turn Councilor • | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Councilor Professions that have Security | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| As their Primary Stat: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| As their Secondary Stat: | Commando • Celebrity • Tycoon • | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Traits that affect Security | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Orgs that give Security | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Effects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data Sources | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TIMissionTemplate_CSV • TICouncilorTypeTemplate_CSV • TITraitTemplate_CSV • TIOrgTemplate_CSV | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Related Pages | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Councilors • Missions • Profession List • Org List | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



