Editing Quest info

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 13: Line 13:
 
-->|{{sc|{{{category}}}}}<!-- use specified category
 
-->|{{sc|{{{category}}}}}<!-- use specified category
 
-->|Quests}}]]}}<!-- else use Category:Quests
 
-->|Quests}}]]}}<!-- else use Category:Quests
 
succeeded quests
 
-->{{#arraydefine:succeeded by|{{#ask:[[Has previous::{{{name|{{PAGENAME}}}}}]]|format=plainlist|propsep=;}}|;}}<!--
 
  
 
reward items are comma-separated and in the format:
 
reward items are comma-separated and in the format:
Line 36: Line 33:
 
! colspan="2" class="quest" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
! colspan="2" class="quest" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
|-
 
|-
{{#if:{{#var:typeText}}|{{InfoboxRow|'''Type'''|{{#var:typeText}}}}}}
+
{{#if:{{#var:typeText}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Type'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#var:typeText}}}}
 
|-
 
|-
{{#if:{{{quest giver|}}}|{{InfoboxRow|'''Quest Giver'''|[[{{{quest giver}}}]]}}}}
+
{{#if:{{{quest giver|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Quest Giver'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}[[{{{quest giver}}}]]}}
 
|-
 
|-
{{#if:{{{location|}}}|{{InfoboxRow|'''Location'''|[[{{{location}}}]]}}}}
+
{{#if:{{{location|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Location'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}[[{{{location}}}]]}}
 
|-
 
|-
{{#if:{{{previous|}}}|{{InfoboxRow|'''Preceded by'''|[[{{{previous}}}]]}}}}
+
{{#if:{{{rewards|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Rewards'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}<!-- rewards row
|-
 
{{#if:{{#arrayprint:succeeded by}}|{{InfoboxRow|'''Succeeded by'''|{{#arrayprint:succeeded by|<br>}}}}}}
 
|-
 
{{#if:{{{rewards|}}}|{{InfoboxRow|'''Rewards'''|<!-- rewards row
 
 
-->{{#arrayprint:rewards|<br><!-- print rewards array, separated by line breaks
 
-->{{#arrayprint:rewards|<br><!-- print rewards array, separated by line breaks
 
-->|@|{{#vardefine:name|{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}}}<!-- get name
 
-->|@|{{#vardefine:name|{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}}}<!-- get name
-->{{#ifeq:{{lc:{{#var:name}}}}|experience|{{#explode:@| |0}} {{icon|Experience Icon.png|Experience}}<!-- if experience
+
-->{{#ifeq:{{lc:{{#var:name}}}}|experience|{{stat|Experience|{{#explode:@| |0}}}}<!-- if experience
-->|{{#ifeq:{{lc:{{#var:name}}}}|gold|{{#explode:@| |0}} {{icon|Gold Icon.png|Gold}}<!-- if gold
+
-->|{{#ifeq:{{lc:{{#var:name}}}}|gold|{{stat|Gold|{{#explode:@| |0}}}}<!-- if gold
-->|{{#explode:@| |0}} <!-- item quantity
+
-->|{{item<!-- create an item  
-->{{item<!-- create an item  
 
 
-->|{{#var:name}}<!-- item name
 
-->|{{#var:name}}<!-- item name
-->|quality={{#if:{{#explode:@|#|1}}<!-- if quality is specified
+
-->|{{#if:{{#explode:@|#|1}}<!-- if quality is specified
-->|{{#explode:@|#|1}}}}}}<!-- use specified quality
+
-->|{{#explode:@|#|1}}<!-- use specified quality
-->}}}}}}}}}}
+
-->|{{#show:{{#var:name}}|?Has quality}}}}}}<!-- else get item quality property
 +
--> x{{#explode:@| |0}}}}}}}}}}<!-- item quantity -->
 
|}</div><!--
 
|}</div><!--
 
DESCRIPTION
 
DESCRIPTION
Line 62: Line 55:
 
SET PROPERTIES
 
SET PROPERTIES
 
-->{{#if:{{{name|}}}{{NAMESPACE}}|<!-- if there is a name parameter or namespace don't set any properties
 
-->{{#if:{{{name|}}}{{NAMESPACE}}|<!-- if there is a name parameter or namespace don't set any properties
-->|{{#if:{{{quest giver|}}}|{{#set:Has quest giver={{{quest giver}}}}}}}<!-- set 'Has quest giver' property
+
-->|{{#arrayprint:rewards||@|<!-- for all rewards
 
 
rewards
 
-->{{#arrayprint:rewards||@|<!-- for all rewards
 
 
-->{{#set:Has reward=<!-- set 'Has reward' property
 
-->{{#set:Has reward=<!-- set 'Has reward' property
 
-->{{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define reward index
 
-->{{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define reward index
Line 71: Line 61:
 
-->;{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}<!-- set reward name
 
-->;{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}<!-- set reward name
 
-->;{{#explode:@|#|1}}}}}}<!-- set reward quality
 
-->;{{#explode:@|#|1}}}}}}<!-- set reward quality
 
-->{{#if:{{{previous|}}}|{{#set:Has previous={{{previous}}}}}}}<!-- set 'Has previous' property
 
  
 
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Please note that all contributions to Corepunk Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: