Template:Faction: Difference between revisions

Jump to navigation Jump to search
2,473 bytes added ,  16:10, 4 January 2022
m
don't cargo-store this template page as a faction
(added player reputation color template)
m (don't cargo-store this template page as a faction)
 
(40 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Factions|IsVisible=Boolean|BasePlayerReputation=Integer|WaterRitualSkill=String|WaterRitualRecipe=String|BuyInterests=List (,) of String|SellInterests=List (,) of String}}
<noinclude>{{#cargo_declare:_table=Factions
</noinclude>
|FactionID=String
|IsVisible=Boolean
|BasePlayerReputation=Integer
|WaterRitualSkill=Page
|WaterRitualRecipe=Page
|BuyInterests=List (,) of String
|SellInterests=List (,) of String
|SkillReputationCost=Integer
|RecipeReputationCost=Integer
|WaterRitualLiquid=String
|ParentFaction=Page
|Old=Boolean
|PlainName=String
|JoinKey=String}}
 
</noinclude><includeonly>{{#cargo_store:_table=Factions
|FactionID={{{id|}}}
|IsVisible={{{visible|yes}}}
|BasePlayerReputation={{{baserep|0}}}
|WaterRitualSkill={{{ritualskill|}}}
|WaterRitualRecipe={{{recipe|}}}
|BuyInterests={{{buyinterests|}}}
|SellInterests={{{sellinterests|}}}
|SkillReputationCost={{{skillrep|0}}}
|RecipeReputationCost={{#if: {{{recipe|}}} | {{{reciperep|50}}} }}
|WaterRitualLiquid={{{ritualliquid|Water}}}
|ParentFaction={{{parentfaction|}}}
|Old={{{old|yes}}}
|PlainName={{{title|{{PAGENAME}} }}}
|JoinKey={{FULLPAGENAME}} }}<!--
 
  VARIABLE DEFINITIONS
 
-->{{#vardefine:name|{{{title|{{#titleparts:{{PAGENAME}}}} }}}}}<!--
 
  INFOBOX START


<includeonly>{{#cargo_store:_table=Factions|IsVisible={{{visible|}}}|BasePlayerReputation={{{baserep|0}}}|WaterRitualSkill={{{ritualskill|}}}|WaterRitualRecipe={{{recipe|}}}|BuyInterests={{{buyinterests|}}}|SellInterests={{{sellinterests|}}}}}
-->{{#invoke: infobox | infobox |
</includeonly>{{#invoke: infobox | infobox |
image=none|
image=none|
rows=
rows=
{{#if: {{{visible|}}}     | {{infobox row|Visible Faction|{{{visible}}} }} }}
{{#ifeq: {{{visible|}}}|no| {{infobox row|Visible Faction|{{{visible}}} }} }}
{{infobox row|Initial Player Reputation|{{Player reputation color|{{{baserep|0}}}}}}}
{{#ifeq: {{{visible|}}}|no| |{{infobox row|Water Ritual Liquid|{{favilink|{{{ritualliquid|Water}}}}} }} }}
{{#if: {{{feelings|}}}     | {{infobox row|Relationships|{{{feelings}}} }} }}
{{infobox row|Initial Player</br>Reputation|{{Player reputation color|{{{baserep|0}}}}}}}
{{#if: {{{buyinterests|}}} | {{infobox row|Interested in learning|{{{buyinterests}}} }} }}
{{#if: {{{parentfaction|}}}| {{infobox row|Parent Faction|[[{{{parentfaction}}}]] }} }}
{{#if: {{{sellinterests|}}}| {{infobox row|Interested in sharing|{{{sellinterests}}} }} }}
{{#if: {{{feelings|}}}{{{parentfaction|}}}
{{#if: {{{ritualskill|}}}  | {{infobox row|Skill Taught|{{{ritualskill}}} }} }}
                          | {{infobox row|Relationships|{{#if: {{{parentfaction|}}}|{{#invoke:CargoQuery|main|table=FactionFeelings
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|{{{recipe}}} }} }} }}
|fields=OtherFaction, Value
<noinclude>[[Category:Templates]]
|where=ThisFaction = "{{{parentfaction|}}}" OR ThisFaction = "{{{parentfaction|}}} (faction)"
|template=Faction feelings nostore
|delimiter=</br>}}</br> }}{{{feelings|}}} }} }}
{{#if: {{{buyinterests|}}} | {{infobox row|Interested</br>in Learning|{{{buyinterests}}} }} }}
{{#if: {{{sellinterests|}}}| {{infobox row|Interested</br>in Sharing|{{{sellinterests}}} }} }}
{{#if: {{{ritualskill|}}}  | {{infobox row|Skill Taught|[[{{{ritualskill}}}]] (-{{{skillrep|{{#cargo_query:table=Skills|fields=Cost|where=_pageName='{{{ritualskill}}}'|format=template|template=single query result|no html|limit=1|more results text=}}}}} reputation)}} }}
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|[[{{{recipe}}}]] (-{{{reciperep|50}}} reputation)}} }}
{{infobox row|[[Old factions|Old]]{{Tooltip|Whether this faction existed during the</br>sultanate, which determines if they:</br><li>can be [[Obliterate Faction|obliterated]]<li>can be [[Fabricate Creature|fabricated]]<li>can be [[Cherubim]] }} |{{#ifeq: {{{visible|}}}|no|no|{{{old|yes}}} }} }}
{{#if: {{{id|}}}          | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for faction reputation<br>Example: <code>factionrep:{{{id}}}:100</code>}}|{{{id}}} }} }} }} </includeonly><noinclude>[[Category:Cargo Store Templates]]
{| class="wikitable"
{| class="wikitable"
! visible
! visible
| if the faction is visible in game.
| if the faction is visible in game. defaults to yes. only shows up if this is set to no.
| yes/no
| yes/no
|-
|-
Line 42: Line 84:
| the recipe taught in water ritual.
| the recipe taught in water ritual.
| string
| string
|}</noinclude>
|-
! id
| the faction Name="__" in factions.xml
| string
|-
! reciperep
| reputation needed for recipe
| integer
|-
! skillrep
| reputation needed for skill (defaults to skill cost in SP)
| Integer
|-
! ritualliquid
| the liquid used in water ritual with legendaries of this faction. Defaults to Water
| String
|-
! parentfaction
| what this faction inherits from
| string
|}</noinclude><noinclude>
== Example ==
<pre>{{faction
| id = highly entropic beings
| title= highly entropic beings
| ritualliquid=Neutron Flux
| baserep=0
| feelings={{faction feelings|Others|0|faction}}
| buyinterests=everything
}}</pre>
</noinclude>

Navigation menu