Template:ItemScriptInfo: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
This template is for use in creating and editing item script articles. For information on template use, please see the [[Gswiki:Style guide/Item scripts|item scripts style guide]].
----
<onlyinclude>{| style="max-width: 12%; min-width: 16em; width: 20em; margin: 10px 1px 10px 10px; background:#FFF; float:right; border-style: solid; border-width: 1px; font-size: 95%; padding: 1px"
<onlyinclude>{| style="max-width: 12%; min-width: 16em; width: 20em; margin: 10px 1px 10px 10px; background:#FFF; float:right; border-style: solid; border-width: 1px; font-size: 95%; padding: 1px"
! colspan=2 style="background:#005682; color: white; font-size: larger; text-align: center;" | {{PAGENAME}} Information
! colspan=2 style="background:#005682; color: white; font-size: larger; text-align: center;" | {{PAGENAME}} Information
Line 16: Line 18:
! align="left" valign="top" scope="row" role="rowheader" {{!}} Tiers
! align="left" valign="top" scope="row" role="rowheader" {{!}} Tiers
{{!}} align="right" valign="top" {{!}} [[Item script tiers::{{{tiers}}}]]
{{!}} align="right" valign="top" {{!}} [[Item script tiers::{{{tiers}}}]]
{{!}}-
{{!}}- |}}
{{#if: {{{unlocks|}}} |
! align="left" valign="top" scope="row" role="rowheader" {{!}} How to Unlock
! align="left" valign="top" scope="row" role="rowheader" {{!}} How to Unlock
{{!}} align="right" valign="top" {{!}} {{#arraymap:{{{unlocks|}}}|,|x|[[Item script unlock::x]] |,<nowiki> </nowiki>}}
{{!}} align="right" valign="top" {{!}} {{#arraymap:{{{unlocks|}}}|,|x|[[Item script unlock::x]] |,<nowiki> </nowiki>}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{custom|}}} |
{{#if: {{{customization|}}} |
! align="left" valign="top" scope="row" role="rowheader" {{!}} Customizable
! align="left" valign="top" scope="row" role="rowheader" {{!}} Customizable
{{!}} align="right" valign="top" {{!}} ✓
{{!}} align="right" valign="top" {{!}} ✓
Line 36: Line 39:
{{!}} align="right" valign="top" {{!}} [[Item script attunement::{{{attunement|}}}]] - [[Item script attunement type::{{{attunetype}}}]]
{{!}} align="right" valign="top" {{!}} [[Item script attunement::{{{attunement|}}}]] - [[Item script attunement type::{{{attunetype}}}]]
{{!}}- |}}
{{!}}- |}}
{{#if: {{{safety|}}} |
! align="left" valign="top" scope="row" role="rowheader" {{!}} Safety Feature
{{!}} align="right" valign="top" {{!}} [[Has safety feature::{{{safety|}}}]]
⚫
{{!}}- |}}
⚫
{{#ifeq: {{lc:{{{restrictions|}}}}} | yes
|
! align="left" valign="top" scope="row" role="rowheader" {{!}} [[#Restrictions|Item Restrictions]]
{{!}} align="right" valign="top" {{!}} ✓ [[Has restrictions::true| ]]
⚫
{{!}}- }}
{{#ifeq: {{lc:{{{loresong|}}}}} | yes
|
! align="left" valign="top" scope="row" role="rowheader" {{!}} Loresong Available
{{!}} align="right" valign="top" {{!}} ✓ [[Has loresong::true| ]]
{{!}}- }}
{{#if: {{{permifiercost|}}} |
! ! align="left" valign="top" scope="row" role="rowheader" {{!}} [[PERM-ifier]] Eligible
{{!}} align="right" valign="top" {{!}} ✓ [[Has permifier cost::{{{permifiercost|}}}| ]][[Is permifier eligible::True| ]]
{{!}}- }}
⚫
|}
{{#if: {{{verb|}}} |
{{#if: {{{verb|}}} |
{{{!}} style="max-width: 12%; min-width: 16em; width: 20em; margin: 10px 1px 10px 10px; background:#FFF; float:right; clear: right; border-style: solid; border-width: 1px; font-size: 95%; padding: 1px"
⚫
{{!}}
⚫
! style="background:#005682; color: white; font-size: larger; text-align: center;" {{!}} Verbs Used
{{!}}-
{{!}}-
⚫
{{!}} scope="row" align="center" valign="top" {{!}} {{#arraymap:{{{verb|}}}|,|x|[[Verb:x|x]] |<nowiki> </nowiki>}}
⚫
! colspan=2 style="background:#005682; color: white; font-size: larger; text-align: center;" {{!}} Verbs Used
{{!}}-
{{!}}} |}}
⚫
The '''{{#ifeq: {{{propername|}}} | yes | {{PAGENAME}} | {{lcfirst:{{PAGENAME}}}}}}''' is a {{lowercase|{{#arraydefine:myitems|{{{category|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}} {{lowercase|{{#arraydefine:myitems|{{{type|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}} {{lowercase|{{#arraydefine:myitems|{{{itemscript|}}}|,}}{{#arrayprint:myitems| |x|[[Item script::x]]|print=pretty}}}}{{#if: {{{class|}}} | &nbsp;that applies to {{lowercase|{{#arraydefine:myitems|{{{class|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}} items |}}{{#if: {{{scriptfamily|}}} | , and is part of the {{#arraydefine:myitems|{{{scriptfamily|}}}|,}}{{#arrayprint:myitems| |x|[[Has script family::x]]|print=pretty}} {{#if: {{#pos:{{{scriptfamily|}}}|,}} | families | family }} of scripts |}}. {{#if: {{{releasevenue|}}} | It was originally released at [[{{{releasevenue}}}]]{{#if: {{{releasedate|}}} | &nbsp;{{{releasedate}}} |}}{{#if: {{{origmerch|}}} | &nbsp;by [[{{{origmerch}}}]] |}}{{#if: {{{quest|}}} | &nbsp;as part of the [[{{{quest}}}]] quest |}}. | {{#if: {{{origmerch|}}} | It was originally released by [[{{{origmerch}}}]]{{#if: {{{releasedate|}}} | &nbsp;in {{{releasedate}}} |}}{{#if: {{{quest|}}} | &nbsp;as part of the [[{{{quest}}}]] quest | {{#switch: {{{giftvault|}}} | vault=&nbsp;as part of an [[Has special release::vault|event vault]]|}} }}.|}} |}} {{#switch: {{{giftvault|}}} | giftbox=It was originally released{{#if: {{{releasedate|}}} | &nbsp;in {{{releasedate}}} |}} as part of a [[giftboxes|giftbox]]. |}}{{#switch: {{{type|}}} | Feature altering = It can temporarily alter a character's {{lowercase|{{#arraydefine:myitems|{{{features|}}}|,}}{{#arrayprint:myitems| |x|[[Item script feature alter::x]]|print=pretty}}}}. |}} {{#if: {{{customization|}}} | The following facets are able to be customized by a merchant: {{lowercase|{{#arraydefine:myitems|{{{customization|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}}. |}} {{#if: {{{safety|}}} | Items with this script can be [[Verb:DROP|{{boldmono|PUT}}]] on the ground for a limited duration, during which other players and the janitor cannot pick them up{{#switch: {{{safety|}}} | All Mine = , as long as the player remains in the room. | Stay Put = . {{#arraymap: {{{category|}}}|,|x|{{#switch:x | Private property = Private property owners may [[Verb:PLACE|{{boldmono|PLACE}}]] it semi-permanently within their respective properties. | #default = }} |}} |}} |}} {{#if: {{{addinfo|}}} | {{#ifexpr: {{#len: {{{addinfo|}}} }} > 250 | '''{{red|Error: Free text exceeds 250 character limit.}}''' | {{{addinfo|}}} }} }}
⚫
{{!}} colspan=2 scope="row" align="center" valign="top" {{!}} {{#arraymap:{{{verb|}}}|,|x|[[Verb:x|x]] |<nowiki> </nowiki>}}
⚫
{{!}}- |}}
⚫
|}
⚫
The '''{{PAGENAME}}''' is a {{lowercase|{{#arraydefine:myitems|{{{category|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}} {{lowercase|{{#arraydefine:myitems|{{{type|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}} {{lowercase|{{#arraydefine:myitems|{{{itemscript|}}}|,}}{{#arrayprint:myitems| |x|[[Item script::x]]|print=pretty}}}}{{#if: {{{class|}}} | &nbsp;that applies to {{lowercase|{{#arraydefine:myitems|{{{class|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}} items |}}. {{#if: {{{releasevenue|}}} | It was originally released at [[{{{releasevenue}}}]]{{#if: {{{releasedate|}}} | &nbsp;{{{releasedate}}} |}}{{#if: {{{origmerch|}}} | &nbsp;by [[{{{origmerch}}}]] |}}{{#if: {{{quest|}}} | &nbsp;as part of the [[{{{quest}}}]] quest |}}. | {{#if: {{{origmerch|}}} | It was originally released by [[{{{origmerch}}}]]{{#if: {{{releasedate|}}} | &nbsp;in {{{releasedate}}} |}}{{#if: {{{quest|}}} | &nbsp;as part of the [[{{{quest}}}]] quest |}}.|}} |}} {{#switch: {{{type|}}} | Feature altering = It can temporarily alter a character's {{lowercase|{{#arraydefine:myitems|{{{features|}}}|,}}{{#arrayprint:myitems| |x|[[Item script feature alter::x]]|print=pretty}}}}. |}} {{#if: {{{customization|}}} | The following facets are able to be customized by a merchant: {{lowercase|{{#arraydefine:myitems|{{{customization|}}}|,}}{{#arrayprint:myitems| |x|x|print=pretty}}}}. |}}

<div style="vertical-align: top">{{#if: {{{restrictions|}}} |
; Restrictions
⚫
{{{restrictions}}} |}}</div>


<includeonly>[[Category:Item scripts]]</includeonly> {{#arraymap:{{{category|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#arraymap:{{{class|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#arraymap:{{{type|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#switch: {{{addorswap|}}} |
<includeonly>[[Category:Item scripts]]</includeonly> {{#arraymap:{{{category|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#arraymap:{{{class|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#arraymap:{{{type|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#switch: {{{addorswap|}}} |
Add = [[Category:Addable item scripts]] | add = [[Category:Addable item scripts]] | Swap = [[Category:Swappable item scripts]] | swap = Swappable item scripts]] |}} {{#if: {{{attunement|}}} | [[Category:Attuning item scripts]] |}} {{#switch: {{{itemscript|}}} | flourish = [[Category:Item flourishes]] |}} {{#arraymap:{{{releasevenue|}}}|,|x|[[Category:x item scripts]] |<nowiki> </nowiki>}} {{#if: {{{quest|}}} | [[Category:Quest item scripts]] |}}</onlyinclude>
Add = [[Category:Addable item scripts]] | add = [[Category:Addable item scripts]] | Swap = [[Category:Swappable item scripts]] | swap = Swappable item scripts]] |}} {{#if: {{{attunement|}}} | [[Category:Attuning item scripts]] |}} {{#arraymap: {{{itemscript|}}}|,|x|{{#switch:x| flourish = [[Category:Item flourishes]] | Flourish = [[Category:Item flourishes]] | #default = }}}} {{#if: {{{quest|}}} | [[Category:Quest item scripts]] |}}</onlyinclude>


{{red|'''DO NOT USE! TESTING PURPOSES ONLY FOR NOW!'''}}
==CP Code==
==CP Code==
{{#section:Gswiki:Style guide/Item scripts|cpcode}}
<pre{{log2}}><nowiki>{{ItemScriptInfo
|category=
|class=
|type=
|tiers=
|unlocks=
|itemscript=
|releasevenue=
|releasedate=
|origmerch=
|quest=
|features=
|customization=
|addorswap=
|relatedscript=
|attunement=
|attunetype=
}}</nowiki></pre>

Latest revision as of 13:43, 22 September 2026

This template is for use in creating and editing item script articles. For information on template use, please see the item scripts style guide.


ItemScriptInfo Information
Category

The itemScriptInfo is a .


CP Code

{{ItemScriptInfo
|propername=     yes or leave blank
|itemscript=     flourish or script only.  If both, enter "flourish,script"
|category=       Fluff, Mechanical, Mount or Private Property only.  If multiple, enter each with a comma, no spaces, to separate entries.
|class=          Accessory, Armor, Clothing, Container, Miscellaneous, Shield, Weapon only.  If multiple, enter each with a comma, no spaces, to separate entries.
|type=           Cookin, Crafting, Creature, Feature altering, Glamour, Storage, or Vissi only.  If multiple, enter each with a comma, no spaces, to separate entries.
|tiers=          The number of tiers to be fully unlocked.  If no tiers, leave blank.
|unlocks=        Bundling, Certificate, Merchant, Premium Unlocker, or Quest only.  If multiple, enter each with a comma, no spaces, to separate entries.  This will only populate if tiers are indicated.
|customization=  List of facets able to be customized on an item by a merchant.  If multiple, enter each with a comma, no spaces, to separate entries.
|relatedscript=  List of scripts related to the item script (formerly known as corresponding scripts).  If multiple, enter each with a comma, no spaces, to separate entries.
|scriptfamily=   Name (or names) the script family an item script belongs to.  It may be in place of using relatedscript parameter or with it.  Do not list multiple individual scripts here.  If multiple script families, enter each with a comma, no spaces, to separate entries.
|addorswap=      Add or Swap only.  If both, enter "Add,Swap"
|attunement=     Permanent or Temporary only, if script is attuning.
|attunetype=     Account or Character only, if script is attuning.
|safety=         All Mine or Stay Put only, if script has a safety feature.
|verb=           List of verbs used by the item script.  If multiple, enter each as all caps with a comma, no spaces, to separate entries.
|releasevenue=   Name of the release venue.
|releasedate=    Year or Month/Year of the release.
|origmerch=      Name of the merchant who released, merchant name preferred if known.
|quest=          Name of quest (omitting the word quest) if an item was obtained as part of quest participation.
|giftvault=      Indicates if an item had a special release, either as a giftbox item or as an event vault item.
|features=       height, body, eyes, complexion, hair, face, nose, distinguishing mark, unique or wings only.  If multiple, enter each with a comma, no spaces, to separate entries.
|addinfo=        Quick summary of additional information, limited to 200 characters total.
|restrictions=   Yes if there are alteration or other restrictions regarding the script.  Leave blank otherwise.  List restrictions in Item Restrictions section.
|loresong=       Yes if there is a loresong associated with the script.  Leave blank otherwise.  Enter loresong in Loresong section.
|permifiercost=  If the item is eligible for permifying, enter the cost.  Leave blank otherwise.
}}