Template:Quest: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Added managers)
(Cargo declare and cargo store)
Line 1: Line 1:
{{#invoke: infobox|infobox|
<noinclude>
title = {{PAGENAME}}|
{{#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}}
image = none|
 
rows =
[[Category:Templates]]Usage:
{{Infobox row|Level|{{{lv}}} }}
{{#if: {{{faction|}}} | {{infobox row|Faction|{{{faction}}}}}|{{#if:{{{factions|}}} | {{infobox row|Factions|{{{factions}}} }}}}}}
{{#if: {{{rep|}}}    | {{infobox row|Reputation gained|{{{rep}}}}}}}
{{#if: {{{manager|}}}  | {{infobox row|Manager|{{{manager}}}}}}}}}<noinclude>[[Category:Templates]]Usage:
{| class ="wikitable"
{| class ="wikitable"
! lv
! lv
| level of quest
| level of quest
|-
|-
! faction or factions
! factions
| what factions are affected
| what factions are affected (split by ,)
|-
|-
! rep
! rep
Line 19: Line 15:
! manager
! manager
| the cs manager associated with the quest. can be found as Manager=____ in Quests.xml
| the cs manager associated with the quest. can be found as Manager=____ in Quests.xml
|-
! givenby
| npc who gives it
|-
! npcs
| npcs involved in the quest (split by ,)
|-
! rewards
| rewards given (split by ,)
|}</noinclude>
|}</noinclude>
{{#cargo_store:_table=Quests|Title={{PAGENAME}}|Level={{{lv|}}}|Factions={{{factions|}}}|ReputationGiven={{{rep|}}}|QuestManager={{{manager|}}}|GivenBy={{{givenby|}}}|NPCsInvolved={{{npcs|}}}|Rewards={{{rewards|}}}}}
{{#invoke: infobox|infobox|
title = {{PAGENAME}}|
image = none|
rows =
{{Infobox row|Level|{{{lv}}} }}
{{#if: {{{givenby|}}} | {{infobox row|Given By|{{{givenby}}} }} }}
{{#if: {{{factions|}}}| {{infobox row|Factions|{{{factions}}} }} }}
{{#if: {{{rep|}}}    | {{infobox row|Reputation gained|{{{rep}}}}}}}
{{#if: {{{manager|}}} | {{infobox row|Manager|{{{manager}}}}}}}
{{#if: {{{npcs|}}}    | {{infobox row|NPCs Involved|{{{npcs}}} }} }}
{{#if: {{rewards|}}}  | {{infobox row|Rewards|{{{rewards}}}
}}

Revision as of 01:03, 9 July 2019

This template defines the table "Quests". View table.Usage:

lv level of quest
factions what factions are affected (split by ,)
rep how much reputation is awarded at completion.
manager the cs manager associated with the quest. can be found as Manager=____ in Quests.xml
givenby npc who gives it
npcs npcs involved in the quest (split by ,)
rewards rewards given (split by ,)


{{#invoke: infobox|infobox| title = Quest| image = none| rows =

!

Level

| | {{{lv}}} |-



{{#if: Template:Rewards} | !

Rewards

| | {{{rewards}}}

|-