Template:Quest: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
>AnnanFay
(testing + comments)
(adjusting category code to remove "act" from "act epilogue quests")
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{Quest/{{#sub: {{#if:{{{1|}}}|{{{1}}}|Default}} | 0 | {{#pos:{{{1|}}}|-}} }}
<includeonly>{{#invoke: Quest|quest}}[[Category: Quests]]{{#if: {{{act|}}}|{{#ifeq:{{{act|}}}|Epilogue|[[Category:Epilogue quests]]|[[Category:Act {{{act}}} quests]]}}|}}</includeonly><noinclude>{{documentation}}</noinclude>
<!--
First positional parameter is subtemplate to call.
Further positional parameters are for sub templates to use as they want. Easier than having named and sometimes blank parameters.
All named parameters are data parameters set on the actual page and should be related to data and not rendering / display.
-->
|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}
| Name                  = {{{Name}}}
| PageName              = {{#if: {{{PageName|}}} | {{{PageName}}} | {{{Name}}} }}
| Icon                  = {{{Icon|}}}
| Boss                  = {{{Boss|}}}
| BossImage              = {{{BossImage|}}}
| KeyItem                = {{{KeyItem|}}}
| Required              = {{{Required|}}}
| Start                  = {{{Start|}}}
| Objective              = {{{Objective|}}}
| Completion            = {{{Completion|}}}
| Act                   = {{{Act|}}}
| Walkthrough            = {{{Walkthrough|}}}
| NormalRewards          = {{{NormalRewards|}}}
| CruelRewards          = {{{CruelRewards|}}}
| MercilessRewards      = {{{MercilessRewards|}}}
}}</includeonly><noinclude>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 07:41, 3 February 2025

Template documentation[view] [edit] [history] [purge]


Lua logo

This template uses the following modules:

Overview

In order to stream-line quest pages and make further additions easier to track as well as automatically populating certain section this template exists.

See the arguments below for a description on the options of this template. In particular, there are also the following automatic features:

  • Creating & populating quest rewards and vendor rewards automatically if those exist
  • Adding quest and quest act categories
  • Creating a formatted infobox with the main information

Arguments

Argument Description Lua Min Opt
name Yes Yes No
icon Yes No Yes
boss Either accepts the boss name or a number.

If a boss is specified, it will generate a link and image to the boss in the appropinate field.

If a number is specified, it is the number of bosses. Each individual boss can then be specified as boss1, boss2, boss3 ... bossN

Yes No Yes
boss_link Specifiy this if the linked boss page differs from the boss name. Yes No Yes
boss_image Specify this if the boss image is different from the default "boss.png". Consider moving the image for consistency before setting this option Yes No Yes
key_item Yes No Yes
required Yes Yes Yes
start Yes Yes Yes
objective Yes Yes Yes
completion Yes Yes Yes
act No Yes Yes

Template

Minimal

{{Quest |name= |boss= |required= |start= |objective= |completion= |act= }}

Full

{{Quest |name= |icon= |boss= |boss_image= |required= |start= |objective= |completion= |key_item= |act= }}