Template:Quest Card: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
m (Fix `desc` parameter)
m ("Null" edit to fix the infobox)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly>
--><div style="--theme-infobox-background-color: #000;"><!--
<infobox theme="crosscode" type="quest" accent-color-source="color">
--><infobox theme="crosscode" type="quest" accent-color-source="color" accent-color-text-default="#fff">
<title>
<title>
<default><div style="text-align: center;"><!--
<default><!--
-->{{#if: {{WsBool| {{{elite|}}} }}
-->{{#ifeq: {{WsBool| {{{elite|}}} }} | 1
| [[File:Elite Quest.png|link=|Elite Quest]]
| [[File:Elite Quest.png|link=|Elite Quest]]
| [[File:Quest.png|link=|Quest]]
| [[File:Quest.png|link=|Quest]]
Line 11: Line 10:
| {{PAGENAME}}
| {{PAGENAME}}
}}<!--
}}<!--
--></div></default>
--></default>
</title>
</title>
<navigation><!--
<image source="image">
-->{{#if: {{{image|}}}
<default>{{{img|}}}</default>
| [[{{#if: {{#pos: {{{image}}}|:}} | {{{image}}} | File:{{{image}}} }}|250px|center]]
</image>
| {{#if:{{{img|}}}
| [[{{#if: {{#pos: {{{img}}}|:}}  | {{{img}}}  | File:{{{img}}}  }}|250px|center]]
}}}}<!--
--></navigation>
<data source="bulletin">
<data source="bulletin">
<format><center style="min-width: 250px;">''{{{bulletin}}}''</center></format>
<format><center>''{{{bulletin}}}''</center></format>
</data>
</data>
<data source="desc">
<data source="desc">
<default><center style="min-width: 250px;">''Unknown''</center></default>
<default><center>''Unknown''</center></default>
<format><center style="min-width: 250px;">''{{{desc}}}''</center></format>
<format><center>''{{{desc}}}''</center></format>
</data>
</data>
<data source="level">
<data source="level">
Line 56: Line 51:
</data>
</data>
</infobox><!--
</infobox><!--
--></div><!--
-->{{#if:{{NAMESPACE}}||<!--
  Categories:
-->[[Category:Quests]]<!--
-->}}<!--
--></includeonly></onlyinclude>
--></includeonly></onlyinclude>
{{Doc}}
{{Doc}}

Latest revision as of 03:38, 19 May 2024

File:Template-info.svg Template Documentation

This template is for use at the top of every quest article to provide basic stats and info.

Usage

A usage example with common parameters is provided below.

{{Quest Card
| name     =
| color    =
| image    =
| bulletin =
| desc     =
| level    =
| location =
| giver    =
| exp      =
| credits  =
| items    =
}}

The wikitext for the example card is shown below.

{{Quest Card
| name     = Faction Introduction
| elite    = 1
| color    = {{Loc color|Autumn's Rise}}
| image    = Autumn's_Rise.png
| bulletin = Get the authorization to assist the factions of Rookie Harbor. - Seeker Hub
| desc     = Each of the 4 Factions has a local subdivision in Rookie Harbor: Falldivers, Rookie Harbor Guard, Coastal Trading Coalition and Fruits of Autumn. Introduce yourself to the representatives!
| level    = 99
| location = [[Rookie Harbor]] - Seeker Hub
| giver    = Faction Advisor
| exp      = 100
| credits  = 150
| cpn      = 1
| cps      = 1
| items    = {{ItemLink|Edge o' All}} x3<br
/>{{ItemLink|Neutral Stone}} x9<br
/>{{ItemLink|GIT}}
}}

Parameters

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
Name name

Name of the quest.

Default:
{{PAGENAME}}
Example:
| name = Railing Rider

Railing Rider

String Required
Elite quest elite

Set if the quest is elite. Changes normal quest icon to elite quest icon.

Default:
0
Example:
| elite = 1

Elite Quest

boolean Optional
Color color

RGB value of the background color for the header. Can be done using either {{Loc color}} or HTML syntax. Available colors are: #004F80, #BF5900, #5D6466, #8C7438, #00734F, #403380, #801B47, and #34787F.

Default:
#000000
Example:
| color = #004F80
[ "#004F80" | "#BF5900" | "#5D6466" | "#8C7438" | "#00734F" | "#403380" | "#801B47" | "#34787F" ] Required
Image image
img

Image depicting the quest.

Example:
| image = Railing Rider.png

FileName Recommended
Bulletin board description bulletin

Description of the quest taken from the quest bulletin board.

Example:
| bulletin = Come find me for a quest!

Come find me for a quest!

String Optional
Description desc

Description of the quest taken from in-game records.

Default:
Unknown
Example:
| desc = This quest is a cool one.

This quest is a cool one.

String Required
Level level
lvl

Level of the quest.

Example:
| level = 75
LevelNumber Required
Location location
loc

Location and room the quest is given in. Format as [[Location Name]] - Room Name.

Example:
| location = [[Autumn's Rise]] - Beginners Arc

Autumn's Rise - Beginners Arc

String Required
Quest giver giver

Name of the character that provides the quest.

Example:
| giver = [[Mr. Nomsworth]]
String Required
EXP exp

Amount of experience the quest rewards when at the same level as the quest.

Default:
0
Example:
| exp = 500

EXP 500

Number Optional
Credits credits

Number of credits the quest rewards.

Default:
0
Example:
| credits = 999

Credits 999

Number Optional
Neutral circuit points cpn

Set if the quest rewards neutral CP.

Default:
0
Example:
| cpn = 1

Circuit Points: Neutral

Number Optional
Heat circuit points cph

Set if the quest rewards heat CP.

Default:
0
Example:
| cph = 1

Circuit Points: Heat

Number Optional
Cold circuit points cpc

Set if the quest rewards cold CP.

Default:
0
Example:
| cpc = 1

Circuit Points: Cold

Number Optional
Shock circuit points cps

Set if the quest rewards shock CP.

Default:
0
Example:
| cps = 1

Circuit Points: Shock

Number Optional
Wave circuit points cpw

Set if the quest rewards wave CP.

Default:
0
Example:
| cpw = 1

Circuit Points: Wave

Number Optional
Items items Items that the quest rewards.
Use the template {{ItemLink}}.
Format as {{ItemLink|...}} x....
Separate each entry with <syntaxhighlight inline lang="html">
</syntaxhighlight>
.

Example:
| items = {{ItemLink|Edge o' All}} x3<br
/>{{ItemLink|Neutral Stone}} x9<br
/>{{ItemLink|GIT}}

LV05Edge o' All x3
Neutral Stone x9
GIT

WikiCode Optional
Format:
Custom:
{{_
| ________ = _
}}

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:

This template is for use at the top of every quest article to provide basic stats and info.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of the quest.

Default
&#123;&#123;[[mw:Help:Magic words#PAGENAME|PAGENAME]]&#125;&#125;
Example
| name = Railing Rider
'''Railing Rider'''
Stringrequired
Elite questelite

Set if the quest is elite. Changes normal quest icon [[File:Quest.png]] to elite quest icon. [[File:Elite Quest.png]]

Default
0
Example
| elite = 1
[[File:Elite Quest.png|link=|Elite Quest]]
Contentoptional
Colorcolor

RGB value of the background color for the header. Can be done using either <code>{{[[Template:Loc color|Loc color]]}}</code> or HTML syntax. Available colors are: <code style="background: #004F80;">#004F80</code>, <code style="background: #BF5900;">#BF5900</code>, <code style="background: #5D6466;">#5D6466</code>, <code style="background: #8C7438;">#8C7438</code>, <code style="background: #00734F;">#00734F</code>, <code style="background: #403380;">#403380</code>, <code style="background: #801B47;">#801B47</code>, and <code style="background: #34787F;">#34787F</code>.<br>

Default
#000000
Example
| color = #004F80
Contentrequired
Imageimage img

Image depicting the quest.

Example
| image = Railing Rider.png
[[File:Railing Rider.png|250px]]
Contentsuggested
Bulletin board descriptionbulletin

Description of the quest taken from the quest bulletin board.

Example
| bulletin = Come find me for a quest!
''Come find me for a quest!''
Stringoptional
Descriptiondesc

Description of the quest taken from in-game records.

Default
''Unknown''
Example
| desc = This quest is a cool one.
''This quest is a cool one.''
Stringrequired
Levellevel lvl

Level of the quest.

Example
| level = 75
Numberrequired
Locationlocation loc

Location and room the quest is given in. Format as <code>[[Location Name]] - Room Name</code>.

Example
| location = [[Autumn's Rise]] - Beginners Arc
[[Autumn's Rise]] - Beginners Arc
Stringrequired
Quest givergiver

Name of the character that provides the quest.

Example
| giver = [[Mr. Nomsworth]]
Stringrequired
EXPexp

Amount of experience the quest rewards when at the same level as the quest.

Default
0
Example
| exp = 500
[[File:EXP-Icon.png|link=|EXP]] <span title="at equal level" style="border-bottom:1px dotted white">500</span>
Numberoptional
Creditscredits

Number of credits the quest rewards.

Default
0
Example
| credits = 999
[[File:CreditIcon.png|link=|Credits]] 999
Numberoptional
Neutral circuit pointscpn

Set if the quest rewards neutral CP.

Default
0
Example
| cpn = 1
[[File:CP.png|20px|link=|alt=Circuit Points:|Circuit Points]] [[File:Elem-neutral.png|20px|link=|Neutral]]
Numberoptional
Heat circuit pointscph

Set if the quest rewards heat CP.

Default
0
Example
| cph = 1
[[File:CP.png|20px|link=|alt=Circuit Points:|Circuit Points]] [[File:Elem-heat.png|20px|link=|Heat]]
Numberoptional
Cold circuit pointscpc

Set if the quest rewards cold CP.

Default
0
Example
| cpc = 1
[[File:CP.png|20px|link=|alt=Circuit Points:|Circuit Points]] [[File:Elem-cold.png|20px|link=|Cold]]
Numberoptional
Shock circuit pointscps

Set if the quest rewards shock CP.

Default
0
Example
| cps = 1
[[File:CP.png|20px|link=|alt=Circuit Points:|Circuit Points]] [[File:Elem-shock.png|20px|link=|Shock]]
Numberoptional
Wave circuit pointscpw

Set if the quest rewards wave CP.

Default
0
Example
| cpw = 1
[[File:CP.png|20px|link=|alt=Circuit Points:|Circuit Points]] [[File:Elem-wave.png|20px|link=|Wave]]
Numberoptional
Itemsitems

Items that the quest rewards.<br/>Use the template <code>{{[[Template:ItemLink|ItemLink]]}}</code>.<br/>Format as <code>{{ItemLink|...}} x...</code>.<br/>Separate each entry with <code><syntaxhighlight inline lang="html"><br/></syntaxhighlight></code>.</p>

Example
| items = {{ItemLink|Edge o' All}} x3<br
/>{{ItemLink|Neutral Stone}} x9<br
/>{{ItemLink|GIT}}
<span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>05</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Edge o' All.png|24x24px]]</span>[[Edge o' All|Edge o' All]]</span> x3<br/><span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Neutral Stone.png|24x24px]]</span>[[Neutral Stone|Neutral Stone]]</span> x9<br/><span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:GIT.png|24x24px]]</span>[[GIT|GIT]]</span>
Contentoptional