Template:Faction: Difference between revisions

155 bytes added ,  23:49, 18 August 2019
if skill rep is not specified, use cargoquery to return skill cost
mNo edit summary
(if skill rep is not specified, use cargoquery to return skill cost)
Line 15: Line 15:
{{#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}}} }} }}
{{#if: {{{ritualskill|}}}  | {{infobox row|Skill Taught|[[{{{ritualskill}}}]] (-{{{skillrep|?}}} reputation)}} }}
{{#if: {{{ritualskill|}}}  | {{infobox row|Skill Taught|[[{{{ritualskill}}}]] (-{{{skillrep|{{#cargo_query:table=Skills|fields=Cost|where=_pageName='{{{ritualskill}}}'|format=template|template=single query result|nohtml|limit=1|more results text=}}}}} reputation)}} }}
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|[[{{{recipe}}}]] (-{{{reciperep|?}}} reputation)}} }}  
{{#if: {{{recipe|}}}      | {{infobox row|Recipe Taught|[[{{{recipe}}}]] (-{{{reciperep|?}}} reputation)}} }}  
{{#if: {{{id|}}}          | {{infobox row|ID|{{{id}}} }} }} }} </includeonly><noinclude>[[Category:Cargo Store Templates]]
{{#if: {{{id|}}}          | {{infobox row|ID|{{{id}}} }} }} }} </includeonly><noinclude>[[Category:Cargo Store Templates]]