Difference between revisions of "Template:Quest"
From Istaria Lexica
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <nowiki/><includeonly> |
+ | {{#if:{{{level|}}}|{{#set:Level={{{level}}}}}|{{#set:Level=0}}}} | ||
+ | {{#if:{{{craftlevel|}}}|{{#set:Craftlevel={{{craftlevel}}}}}|{{#set:Craftlevel=0}}}} | ||
+ | {{#if:{{{skilllevel|}}}|{{#set:Skilllevel={{{skilllevel}}}}}|{{#set:Skilllevel=0}}}} | ||
<table class="TmpQuest fancytable" style="width: 100%"> | <table class="TmpQuest fancytable" style="width: 100%"> | ||
<tr> | <tr> | ||
Line 9: | Line 12: | ||
<td>{{#if: {{{npc|}}}|{{{npc}}}}}</td> | <td>{{#if: {{{npc|}}}|{{{npc}}}}}</td> | ||
</tr> | </tr> | ||
− | {{#if:{{{school|}}}| | + | {{#if:{{{school|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required adventure school:</td> | <td>Required adventure school:</td> | ||
− | <td>{{{school}}} {{# | + | <td>{{{school}}} (level: {{#ifexpr:{{formatnum:{{#show:{{FULLPAGENAME}}|?Level}}|R}} > 0|{{#show:{{FULLPAGENAME}}|?Level}}|any}})</td> |
</tr> | </tr> | ||
| | | | ||
− | {{#if:{{{level|}}}| | + | {{#if:{{{level|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required adventure school:</td> | <td>Required adventure school:</td> | ||
− | <td>Any (level: | + | <td>Any (level: {{#ifexpr:{{formatnum:{{#show:{{FULLPAGENAME}}|?Level}}|R}} > 0|{{#show:{{FULLPAGENAME}}|?Level}}|any}})</td> |
</tr> | </tr> | ||
− | + | }}}} | |
− | {{#if:{{{race|}}}| | + | {{#if:{{{race|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required race(s):</td> | <td>Required race(s):</td> | ||
Line 27: | Line 33: | ||
</tr> | </tr> | ||
}} | }} | ||
− | {{#if:{{{craftschool|}}}| | + | {{#if:{{{craftschool|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required crafting school:</td> | <td>Required crafting school:</td> | ||
− | <td>{{{craftschool}}} {{# | + | <td>{{{craftschool}}} (level: {{#ifexpr:{{formatnum:{{#show:{{FULLPAGENAME}}|?Craftlevel}}|R}} > 0|{{#show:{{FULLPAGENAME}}|?Craftlevel}}|any}})</td> |
</tr> | </tr> | ||
| | | | ||
− | {{#if:{{{craftlevel|}}}| | + | {{#if:{{{craftlevel|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required crafting school:</td> | <td>Required crafting school:</td> | ||
− | <td>Any (level: | + | <td>Any (level: {{#ifexpr:{{formatnum:{{#show:{{FULLPAGENAME}}|?Craftlevel}}|R}} > 0|{{#show:{{FULLPAGENAME}}|?Craftlevel}}|any}})</td> |
</tr> | </tr> | ||
}}}} | }}}} | ||
− | {{#if:{{{skill|}}}| | + | {{#if:{{{skill|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required skill:</td> | <td>Required skill:</td> | ||
− | <td>[[{{{skill}}}]] {{# | + | <td>[[{{{skill}}}]] (level: {{#ifexpr:{{formatnum:{{#show:{{FULLPAGENAME}}|?Skilllevel}}|R}} > 0|{{#show:{{FULLPAGENAME}}|?Skilllevel}}|any}})</td> |
</tr> | </tr> | ||
| | | | ||
− | {{#if:{{{skilllevel|}}}| | + | {{#if:{{{skilllevel|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Required skill:</td> | <td>Required skill:</td> | ||
− | <td>any (level: | + | <td>any (level: {{#ifexpr:{{formatnum:{{#show:{{FULLPAGENAME}}|?Skilllevel}}|R}} > 0|{{#show:{{FULLPAGENAME}}|?Skilllevel}}|any}})</td> |
</tr> | </tr> | ||
}}}} | }}}} | ||
− | {{#if:{{{port|}}}| | + | {{#if:{{{port|}}} |
+ | | | ||
<tr> | <tr> | ||
<td>Locations:</td> | <td>Locations:</td> | ||
Line 57: | Line 68: | ||
</tr> | </tr> | ||
}} | }} | ||
− | {{#if: {{{quest previous|}}}| | + | {{#if: {{{quest previous|}}} |
+ | | | ||
<tr> | <tr> | ||
<td style="padding-top: 20px; border-top: 1px solid #525252">'''Previous quest(s):'''</td> | <td style="padding-top: 20px; border-top: 1px solid #525252">'''Previous quest(s):'''</td> | ||
Line 63: | Line 75: | ||
</tr> | </tr> | ||
}} | }} | ||
− | {{#if: {{{quest next|}}}| | + | {{#if: {{{quest next|}}} |
+ | | | ||
<tr> | <tr> | ||
{{#if: {{{quest previous|}}}|<td>|<td style="padding-top: 20px; border-top: 1px solid #525252">}}'''Next quest(s):'''</td> | {{#if: {{{quest previous|}}}|<td>|<td style="padding-top: 20px; border-top: 1px solid #525252">}}'''Next quest(s):'''</td> | ||
Line 70: | Line 83: | ||
}} | }} | ||
<tr> | <tr> | ||
− | <td colspan="2"><span class="plainlinks newwindow">[{{fullurl:Quest Tree|quest={{urlencode:{{FULLPAGENAME}}|PATH}}}} View this quest in the | + | <td colspan="2"><span class="plainlinks newwindow" data-nosnippet>[{{fullurl:Quest Tree|quest={{urlencode:{{FULLPAGENAME}}|PATH}}}} View this quest in the Quest Tree]</span></td> |
</tr> | </tr> | ||
</table> | </table> | ||
− | [[Category:Quest]]</includeonly><noinclude>{{ | + | [[Category:Quest]]</includeonly><noinclude>{{Documentation}}[[Category:Infobox Templates]]</noinclude> |
Latest revision as of 03:31, 3 December 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
A Brief overview of a quest, describing most needed details.
- Try out this template in your sandbox
- Find pages using this template
- The available quest types are listed here.
- The available adventure schools are listed here.
- The available craft schools are listed here.
- uses: Template:InfoboxMultiproperty
Template:InfoboxMultiproperty parameters[edit]
{{InfoboxMultiproperty | property = the property name to be set (ex. Loot, School, Race) | limiter = a limiter for every entry. Default to comma, may also use html stuff like <br /> | value1 the first value to be set | value2 the second value to be set | valueN.. the N-th value to be set, repeat until you're done }}
Syntax[edit]
{{Quest |npc = {{InfoboxMultiproperty|property=npc|value1|value2|...}} |questtype = |school = {{InfoboxMultiproperty|property=school|value1|value2|...}} |level = |craftschool = {{InfoboxMultiproperty|property=craftschool|value1|value2|...}} |craftlevel = |skill = |skilllevel = |race = {{InfoboxMultiproperty|property=race|value1|value2|...}} |port = {{InfoboxMultiproperty|property=port|value1|value2|...}} |quest previous = {{InfoboxMultiproperty|property=quest previous|value1|value2|...}} |quest next = {{InfoboxMultiproperty|property=quest next|value1|value2|...}} }}
Parameters[edit]
{{Quest |npc = the NPC(s) giving out the quest |questtype = Type of the quest. Please refer to the list mentioned above. |school = Which aventuring school(s) the quest is limited to. Add each school as described in the InfoboxMultiproperty paramter description. |level = Minimum level needed |craftschool = Which crafting school the quest is limited to. |craftlevel = Required level in above mentioned crafting school. |skill = Required skill to be able to take the quest. |skilllevel = Required skill level. |race = Which race(s) the quest is limited to. Add each race as described in the InfoboxMultiproperty paramter description. |port = Location(s) of the Quest start, may be the NPC or some trigger area |quest previous = Quest(s) which needs to be finished previously |quest next = Quest(s) being unlocked after finishing this one }}
Example[edit]
{{quest |npc = {{InfoboxMultiproperty|property=npc|Hethsa the Patient}} |questtype = Errand |school = {{InfoboxMultiproperty|property=school|Blood Mage|Wizard|Sorcerer}} |level = 100 |craftschool = {{InfoboxMultiproperty|property=school|Enchanter}} |craftlevel = 50 |skill = Enchanting |skilllevel = 515 |race = {{InfoboxMultiproperty|property=race|Dragon|Dwarf|Saris}} |port = {{InfoboxMultiproperty|property=port|Peak of Storms}} |quest previous = {{InfoboxMultiproperty|property=quest previous|ARoP17 - Ritual of Journey: Prelude}} |quest next = {{InfoboxMultiproperty|property=quest next|ARoP19 - Ritual of Journey: Spirits In Solitude|Arghas' Tea Time}} }}
Visit Template:Quest/doc to edit this text. (How to: document correctly)