Template:QuestType (AL)/doc: Difference between revisions

From Exiled Kingdoms Wiki
(Created page with "== Description == This template contains the predefined quest types to be used within Template:Quest (AL) and takes the corresponding tags (such as "Main", "Side", etc.) a...")
 
No edit summary
Line 11: Line 11:
</pre>
</pre>


== How to add new quest types ==
== How To Add New Quest Types ==
In order to add a new quest type to the template, you have to insert a new case into the <nowiki>#switch</nowiki> structure (case order has no relevance):
<pre>
|NewTag = <desired output text>
</pre>
Also, add the new tag to the existing TagList case so it will appear in any documentation:
<pre>
|TagList = ...; NewTag; ...
</pre>

Revision as of 08:30, 9 June 2019

Description

This template contains the predefined quest types to be used within Template:Quest (AL) and takes the corresponding tags (such as "Main", "Side", etc.) as input. The output is the actual text to be displayed on the Wiki page (e.g. [[Main Quest]], [[Side Quest]], etc.).

Usage

{{QuestType|<tag>}}

For generating a semicolon-separated list of all available tags (intended for documentation purposes) use

{{QuestType|TagList}}

How To Add New Quest Types

In order to add a new quest type to the template, you have to insert a new case into the #switch structure (case order has no relevance):

|NewTag = <desired output text>

Also, add the new tag to the existing TagList case so it will appear in any documentation:

|TagList = ...; NewTag; ...