Template:Faction: Difference between revisions

Jump to navigation Jump to search
19 bytes added ,  00:13, 20 July 2019
added delimiter for query
(allowed template to "inherit" parent faction feelings)
(added delimiter for query)
Line 11: Line 11:
{{#if: {{{parentfaction|}}}| {{infobox row|Parent Faction|[[{{{parentfaction}}}]] }} }}
{{#if: {{{parentfaction|}}}| {{infobox row|Parent Faction|[[{{{parentfaction}}}]] }} }}
{{#if: {{{feelings|}}}{{{parentfaction|}}}  
{{#if: {{{feelings|}}}{{{parentfaction|}}}  
                           | {{infobox row|Relationships|{{#if: {{{parentfaction|}}}|{{#cargo_query:table=FactionFeelings|fields=OtherFaction,Value|where=_pageName="{{{parentfaction|}}}"|format=template|template=Faction feelings nostore}} }} {{{feelings}}} }} }}
                           | {{infobox row|Relationships|{{#if: {{{parentfaction|}}}|{{#cargo_query:table=FactionFeelings|fields=OtherFaction,Value|where=_pageName="{{{parentfaction|}}}"|format=template|template=Faction feelings nostore|delimiter="</br>"}} }} {{{feelings|}}} }} }}
{{#if: {{{buyinterests|}}} | {{infobox row|Interested</br>in Learning|{{{buyinterests}}} }} }}
{{#if: {{{buyinterests|}}} | {{infobox row|Interested</br>in Learning|{{{buyinterests}}} }} }}
{{#if: {{{sellinterests|}}}| {{infobox row|Interested</br>in Sharing|{{{sellinterests}}} }} }}
{{#if: {{{sellinterests|}}}| {{infobox row|Interested</br>in Sharing|{{{sellinterests}}} }} }}

Navigation menu