Difference between revisions of "Template:QuestObjective"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = QuestObjective |description = This template is used to nicely format the objectives for a quest |category = Quest and Area Templates...")
 
Line 3: Line 3:
|description = This template is used to nicely format the objectives for a quest
|description = This template is used to nicely format the objectives for a quest
|category = Quest and Area Templates
|category = Quest and Area Templates
|example1 = <nowiki>{{QuestObjective|Speak with Scrag the Kobold}}</nowiki>
|example1 = <nowiki>{{QuestObjective||Speak with Scrag the Kobold}}</nowiki>
|example1output = {{QuestObjective|Speak with Scrag the Kobold}}
|example1output = {{QuestObjective||Speak with Scrag the Kobold}}
|example2 = <nowiki>{{QuestObjective|Defeat +Severlin|True}}</nowiki>
|example2 = <nowiki>{{QuestObjective|Optional|Defeat +Severlin}}</nowiki>
|example2output = {{QuestObjective|Defeat +Severlin|True}}
|example2output = {{QuestObjective|Optional|Defeat +Severlin}}
|example3 = <nowiki>{{QuestObjective|Collect some firewood for Brawnpits||4}}</nowiki>
|example3 = <nowiki>{{QuestObjective|Counted|Collect some firewood for Brawnpits|4}}</nowiki>
|example3output = {{QuestObjective|Collect some firewood for Brawnpits||4}}
|example3output = {{QuestObjective|Counted|Collect some firewood for Brawnpits|4}}
|example4 = <nowiki>{{QuestObjective|Find and defeat more rock spirits|True|6}}</nowiki>
|example4 = <nowiki>{{QuestObjective|OptionalCounted|Find and defeat more rock spirits|6}}</nowiki>
|example4output = {{QuestObjective|Find and defeat more rock spirits|True|6}}
|example4output = {{QuestObjective|OptionalCounted|Find and defeat more rock spirits|6}}
|parameter1name = Objective Text
|parameter1name = Type
|parameter1description = This is the objective
|parameter1description = What type of objective is this
|parameter2name = Is Optional
|parameter1values=
|parameter2description = Is this objective optional - Put something here if it is
* Normal (default)
|parameter3name = Number Needed
* Optional
|parameter3description = This is the number of actions needed to
* Counted
* OptionalCounted
|parameter2name = Objective Text
|parameter2description = This is the objective
|parameter3name = First value for type
|parameter3description = This is the first value used based on type
|parameter3values =  
|parameter3values =  
* Normal - not used
* Optional - not used
* Counted - The number of times action is needed for optional to count
* OptionalCounted - The number of times action is needed for optional to count
}}
}}
</noinclude><onlyinclude>{{#if: {{{2|}}}|''(Optional)''}}{{{1}}}{{#if:{{{3|}}}|&#58; '''''{{{3}}} total'''''}}</onlyinclude>
</noinclude><onlyinclude>{{#switch: {{lc:{{{1}}}}}
| optional = ''(Optional)'' {{{2}}}
| counted ={{{2}}}&#58; ''{{{3}}} total''
| optionalcounted = ''(Optional)'' {{{2}}}&#58; ''{{{3}}} total''
|#default={{{2}}}
}}</onlyinclude>

Revision as of 14:45, 6 March 2019

QuestObjective[edit]

This template is used to nicely format the objectives for a quest

Example Usage
{{QuestObjective||Speak with Scrag the Kobold}}Speak with Scrag the Kobold
{{QuestObjective|Optional|Defeat +Severlin}}(Optional) Defeat +Severlin
{{QuestObjective|Counted|Collect some firewood for Brawnpits|4}}Collect some firewood for Brawnpits: 4 total
{{QuestObjective|OptionalCounted|Find and defeat more rock spirits|6}}(Optional) Find and defeat more rock spirits: 6 total

Usage[edit]

{{QuestObjective|(Type)|(Objective Text)|(First value for type)}}

Parameter Documentation
TypeWhat type of objective is this
Possible Values:
  • Normal (default)
  • Optional
  • Counted
  • OptionalCounted
Objective TextThis is the objective
First value for typeThis is the first value used based on type
Possible Values:
  • Normal - not used
  • Optional - not used
  • Counted - The number of times action is needed for optional to count
  • OptionalCounted - The number of times action is needed for optional to count

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


{{{2}}}