Template:Faction: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(added player reputation color template)
(added id row)
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|FactionID=String|IsVisible=Boolean|BasePlayerReputation=Integer|WaterRitualSkill=String|WaterRitualRecipe=String|BuyInterests=List (,) of String|SellInterests=List (,) of String}}
</noinclude>
</noinclude>


<includeonly>{{#cargo_store:_table=Factions|IsVisible={{{visible|}}}|BasePlayerReputation={{{baserep|0}}}|WaterRitualSkill={{{ritualskill|}}}|WaterRitualRecipe={{{recipe|}}}|BuyInterests={{{buyinterests|}}}|SellInterests={{{sellinterests|}}}}}
<includeonly>{{#cargo_store:_table=Factions|FactionID={{{id|}}}|IsVisible={{{visible|}}}|BasePlayerReputation={{{baserep|0}}}|WaterRitualSkill={{{ritualskill|}}}|WaterRitualRecipe={{{recipe|}}}|BuyInterests={{{buyinterests|}}}|SellInterests={{{sellinterests|}}}}}
</includeonly>{{#invoke: infobox | infobox |
</includeonly>{{#invoke: infobox | infobox |
image=none|
image=none|
Line 12: Line 12:
{{#if: {{{sellinterests|}}}| {{infobox row|Interested in sharing|{{{sellinterests}}} }} }}
{{#if: {{{sellinterests|}}}| {{infobox row|Interested in sharing|{{{sellinterests}}} }} }}
{{#if: {{{ritualskill|}}}  | {{infobox row|Skill Taught|{{{ritualskill}}} }} }}
{{#if: {{{ritualskill|}}}  | {{infobox row|Skill Taught|{{{ritualskill}}} }} }}
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|{{{recipe}}} }} }} }}
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|{{{recipe}}} }} }}
{{#if: {{{id|}}}          | {{infobox row|ID|{{{id}}} }} }} }} }}
<noinclude>[[Category:Templates]]
<noinclude>[[Category:Templates]]
{| class="wikitable"
{| class="wikitable"
Line 41: Line 42:
! recipe
! recipe
| the recipe taught in water ritual.
| the recipe taught in water ritual.
| string
|-
! id
| the faction Name="__" in factions.xml
| string
| string
|}</noinclude>
|}</noinclude>

Revision as of 22:58, 10 July 2019

This template defines the table "Factions". View table.


Faction
Initial Player Reputation

0

}}

visible if the faction is visible in game. yes/no
baserep player's initial rep integer, defaults to 0
feelings feelings about other factions. please declare with Template:Faction feelings for each faction. Template:Faction feelings
buyinterests what secrets they like to hear. List separated by ,
sellintersts what secrets they like to share. List separated by ,
ritualskill the skill taught in water ritual. string
recipe the recipe taught in water ritual. string
id the faction Name="__" in factions.xml string