Template:Faction: Difference between revisions

Jump to navigation Jump to search
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]]