Template:QuestLink: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Fix `nowrap` parameter)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>[[{{QuestLink/linkList|{{{1}}}}}|{{{showName|{{{1}}}}}}]]</includeonly></onlyinclude>
<onlyinclude><includeonly>{{#ifeq:{{WsBool|{{{nowrap}}}|1}}|1<!--
-->|<span class="nowrap" style="white-space: nowrap;"><!--
-->}}[[{{QuestLink/linkList|{{{1}}}}}|{{{showName|{{{1}}}}}}]]<!--
-->{{#ifeq:{{WsBool|{{{nowrap}}}|1}}|1<!--
-->|</span><!--
-->}}</includeonly></onlyinclude>
{{Doc}}
{{Doc}}

Latest revision as of 22:40, 15 April 2021

File:Template-info.svg Template Documentation

About

This template exists to simplify linking to quests.

Parameter

Do not use named parameter for 1 ... x. The first Parameter will be automatically marked as 1, the second as 2 and so on.

Parameter Description Type Status
Quest Name 1

Questname to be linked. Invalid Questnames will linked to the main quest page

Example:
String Required
Name Override showName

no description

Default:
{{{1}}}
Example:
  • {{QuestLink|The Goatfather (quest)|showName=The Goatfather}}
    The Goatfather
String WikiCode

See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation

Test of raw TemplateData output:

No description.

Template parameters

ParameterDescriptionTypeStatus
Quest Name1

Questname to be linked. Invalid Questnames will linked to the main quest page

Example
*
{{QuestLink|Rookie Harbor: Collecting #2}}
<span class="nowrap" style="white-space: nowrap;">[[Rookie Harbor: Collecting #2|Rookie Harbor: Collecting #2]]</span>
  • {{QuestLink|The Goatfather}}
    <span class="nowrap" style="white-space: nowrap;">[[The Goatfather (quest)|The Goatfather]]</span>
  • {{QuestLink|Crocus Pocus}}
    <span class="nowrap" style="white-space: nowrap;">[[Crocus Pocus|Crocus Pocus]]</span>
  • {{QuestLink|foo}}
    <span class="nowrap" style="white-space: nowrap;">[[foo|foo]]</span>
Stringrequired
Name OverrideshowName

no description

Default
&#123;&#123;&#123;1&#125;&#125;&#125;
Example
*
{{QuestLink|The Goatfather (quest)|showName=The Goatfather}}
<span class="nowrap" style="white-space: nowrap;">[[The Goatfather (quest)|The Goatfather]]</span>
Stringoptional