Template:Quest: Difference between revisions

64 bytes added ,  13:02, 25 August 2019
m
no edit summary
(Cargo declare and cargo store)
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Quests|Title=Wikitext|Level=Integer|Factions=List (,) of String|ReputationGiven=Integer|QuestManager=String|GivenBy=String|NPCsInvolved=List (,) of String|Rewards=List (,) of String}}
{{#cargo_declare:_table=Quests|Title=Wikitext|Level=Integer|Factions=List (,) of Page|ReputationGiven=Integer|QuestManager=String|GivenBy=Page|NPCsInvolved=List (,) of Page|Rewards=List (,) of Page}}
[[Category:Cargo Store Templates]]


[[Category:Templates]]Usage:
Usage:
{| class ="wikitable"
{| class ="wikitable"
! lv
! lv
Line 24: Line 25:
! rewards
! rewards
| rewards given (split by ,)
| rewards given (split by ,)
|}</noinclude>
|}</noinclude><includeonly>{{#cargo_store:_table=Quests|Title={{PAGENAME}}|Level={{{lv|}}}|Factions={{{factions|}}}|ReputationGiven={{{rep|}}}|QuestManager={{{manager|}}}|GivenBy={{{givenby|}}}|NPCsInvolved={{{npcs|}}}|Rewards={{{rewards|}}}}}
 
{{#cargo_store:_table=Quests|Title={{PAGENAME}}|Level={{{lv|}}}|Factions={{{factions|}}}|ReputationGiven={{{rep|}}}|QuestManager={{{manager|}}}|GivenBy={{{givenby|}}}|NPCsInvolved={{{npcs|}}}|Rewards={{{rewards|}}}}}
 
{{#invoke: infobox|infobox|
{{#invoke: infobox|infobox|
title = {{PAGENAME}}|
title = {{PAGENAME}}|
image = none|
image = none|
rows =
rows =
{{Infobox row|Level|{{{lv}}} }}
{{#if: {{{lv|}}}      | {{Infobox row|Level|{{{lv}}} }} }}
{{#if: {{{givenby|}}} | {{infobox row|Given By|{{{givenby}}} }} }}
{{#if: {{{givenby|}}} | {{infobox row|Given By|{{{givenby}}} }} }}
{{#if: {{{factions|}}}| {{infobox row|Factions|{{{factions}}} }} }}
{{#if: {{{factions|}}}| {{infobox row|Factions|{{{factions}}} }} }}
{{#if: {{{rep|}}}    | {{infobox row|Reputation gained|{{{rep}}}}}}}
{{#if: {{{rep|}}}    | {{infobox row|Reputation gained|{{{rep}}} }} }}
{{#if: {{{manager|}}} | {{infobox row|Manager|{{{manager}}}}}}}
{{#if: {{{manager|}}} | {{infobox row|Manager|{{{manager}}}}}}}
{{#if: {{{npcs|}}}    | {{infobox row|NPCs Involved|{{{npcs}}} }} }}
{{#if: {{{npcs|}}}    | {{infobox row|NPCs Involved|{{{npcs}}} }} }}
{{#if: {{rewards|}}} | {{infobox row|Rewards|{{{rewards}}}
{{#if: {{{rewards|}}} | {{infobox row|Rewards|{{{rewards}}} }} }}
}}
}}</includeonly>