Template:Faction: Difference between revisions

Jump to navigation Jump to search
762 bytes added ,  16:10, 4 January 2022
m
don't cargo-store this template page as a faction
(default to -50 rep for recipes)
m (don't cargo-store this template page as a faction)
 
(7 intermediate revisions by 2 users not shown)
Line 30: Line 30:
|PlainName={{{title|{{PAGENAME}} }}}
|PlainName={{{title|{{PAGENAME}} }}}
|JoinKey={{FULLPAGENAME}} }}<!--
|JoinKey={{FULLPAGENAME}} }}<!--
  VARIABLE DEFINITIONS
-->{{#vardefine:name|{{{title|{{#titleparts:{{PAGENAME}}}} }}}}}<!--


   INFOBOX START
   INFOBOX START
Line 37: Line 41:
rows=
rows=
{{#ifeq: {{{visible|}}}|no| {{infobox row|Visible Faction|{{{visible}}} }} }}
{{#ifeq: {{{visible|}}}|no| {{infobox row|Visible Faction|{{{visible}}} }} }}
{{infobox row|Water Ritual Liquid|[[{{{ritualliquid|Water}}}]]}}
{{#ifeq: {{{visible|}}}|no| |{{infobox row|Water Ritual Liquid|{{favilink|{{{ritualliquid|Water}}}}} }} }}
{{infobox row|Initial Player</br>Reputation|{{Player reputation color|{{{baserep|0}}}}}}}
{{infobox row|Initial Player</br>Reputation|{{Player reputation color|{{{baserep|0}}}}}}}
{{#if: {{{parentfaction|}}}| {{infobox row|Parent Faction|[[{{{parentfaction}}}]] }} }}
{{#if: {{{parentfaction|}}}| {{infobox row|Parent Faction|[[{{{parentfaction}}}]] }} }}
Line 43: Line 47:
                           | {{infobox row|Relationships|{{#if: {{{parentfaction|}}}|{{#invoke:CargoQuery|main|table=FactionFeelings
                           | {{infobox row|Relationships|{{#if: {{{parentfaction|}}}|{{#invoke:CargoQuery|main|table=FactionFeelings
|fields=OtherFaction, Value
|fields=OtherFaction, Value
|where=ThisFaction = "{{{parentfaction|}}} (faction)"
|where=ThisFaction = "{{{parentfaction|}}}" OR ThisFaction = "{{{parentfaction|}}} (faction)"
|template=Faction feelings nostore
|template=Faction feelings nostore
|delimiter=</br>}}</br> }}{{{feelings|}}} }} }}
|delimiter=</br>}}</br> }}{{{feelings|}}} }} }}
Line 50: Line 54:
{{#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: {{{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)}} }}  
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|[[{{{recipe}}}]] (-{{{reciperep|50}}} reputation)}} }}  
{{infobox row|[[Obliterate Faction]] usable|{{#ifeq: {{{visible|}}}|no|no|{{{old|yes}}} }} }}
{{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|{{{id}}} }} }} }} </includeonly><noinclude>[[Category:Cargo Store Templates]]
{{#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
Line 90: Line 94:
|-
|-
! skillrep
! skillrep
| reputation needed for skill
| reputation needed for skill (defaults to skill cost in SP)
| Integer
| Integer
|-
|-
Line 100: Line 104:
| what this faction inherits from
| what this faction inherits from
| string
| string
|}</noinclude>
|}</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