Difference between revisions of "Template:Special quest table/doc"
SurtrFan8511 (talk | contribs) (I don't even know if what I wrote here makes any sense) |
SurtrFan8511 (talk | contribs) |
||
Line 6: | Line 6: | ||
Characters should be passed as unnamed parameters. Their list is printed in the same order as the characters are written when calling this template. | Characters should be passed as unnamed parameters. Their list is printed in the same order as the characters are written when calling this template. | ||
The template automatically detects whether the page exists and changes the yes/no statement in the second column accordingly. Note that each operation uses an expensive parser command and therefore you should avoid passing more than 99 different characters to this template. | The template automatically detects whether the page exists and changes the yes/no statement in the second column accordingly. Note that each operation uses an expensive parser command and therefore you should avoid passing more than 99 different characters to this template. If you really need to do so, put anything in the <code>nocheck</code> argument. When doing so, the expensive parser function will be skipped and the list will look slightly different (see below). | ||
==Usage examples== | ==Usage examples== | ||
Line 18: | Line 18: | ||
(A non-breaking white space was used here (see below)) | (A non-breaking white space was used here (see below)) | ||
<pre>{{Special quest table|prefix=Sweet Time with:|suffix=|nocheck=true|Ziz|Behemoth}}</pre> | |||
{{Special quest table|prefix=Sweet Time with:|suffix=|nocheck=true|Ziz|Behemoth}} | |||
(Avoids using expensive parser functions) | |||
==Notes== | ==Notes== | ||
You can use the amazing technology of <code>& nbsp;</code> (Remove space between "&" and "n") to mark spaces at the start/end of the prefix/suffix names as the wiki normally omits them. | You can use the amazing technology of <code>& nbsp;</code> (Remove space between "&" and "n") to mark spaces at the start/end of the prefix/suffix names as the wiki normally omits them. |
Latest revision as of 07:33, 30 March 2020
Description
This template is used to create a table that lists special quests available in an event and links to their translations.
It is assumed that translation pages follow a consistent format: Event Quest:<prefix (optional)><character><suffix (optional)>
. Therefore, the template takes prefix and/or suffix as its parameters to create an appropriate hyperlink to a page.
Characters should be passed as unnamed parameters. Their list is printed in the same order as the characters are written when calling this template.
The template automatically detects whether the page exists and changes the yes/no statement in the second column accordingly. Note that each operation uses an expensive parser command and therefore you should avoid passing more than 99 different characters to this template. If you really need to do so, put anything in the nocheck
argument. When doing so, the expensive parser function will be skipped and the list will look slightly different (see below).
Usage examples
{{Special quest table|prefix=Sweet Time with:|suffix=|Surtr|Arc|Azathoth}}
Character | Translated? |
---|---|
Surtr | Yes |
Arc | No |
Azathoth | No |
(obviously, empty string parameters can be omitted)
{{Special quest table|prefix=After Christmas Eve with |Kalki|Sitri|Aegir}}
Character | Translated? |
---|---|
Kalki | No |
Sitri | Yes |
Aegir | No |
(A non-breaking white space was used here (see below))
{{Special quest table|prefix=Sweet Time with:|suffix=|nocheck=true|Ziz|Behemoth}}
Character | Translation |
---|---|
Ziz | Link |
Behemoth | Link |
(Avoids using expensive parser functions)
Notes
You can use the amazing technology of & nbsp;
(Remove space between "&" and "n") to mark spaces at the start/end of the prefix/suffix names as the wiki normally omits them.