Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

Template:ItemLink

From CrossCode Wiki
Jump to: navigation, search
Template-info.png Documentation

This is a template for adding links to items.

About

Add a link to the Item. There are many possibitities to customize the behavior.

Parameter

Item name

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

Default: NULL

Example:

* {{ItemLink|Ginger Tom. Salad}}
* {{ItemLink|Edge o' All}}
String Required
Name Override showName Shows the defined name/Overrides the Item-Name (alternative Name)

Default: NULL

Example:

Item-consumable-silver.pngBlattsalat
{{ItemLink|Ginger Tom. Salad|showName=Blattsalat}}
String Optional

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

Hide and show elements

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
No Icon noIcon Hides the Icon

Default: 0

Example:

* No Icon (<code>1</code>): {{ItemLink|Ginger Tom. Salad|noIcon=1}}
* Icon (<code>0</code>): {{ItemLink|Ginger Tom. Salad|noIcon=0}}
* Default (parameter not used / <code>0</code>): {{ItemLink|Ginger Tom. Salad}}
Boolean Optional
No Link noLink Removes the link

Default: 0

Example:

* No Link (<code>1</code>): {{ItemLink|Chili Dog|noLink=1}}
* Link (<code>0</code>): {{ItemLink|Chili Dog|noLink=0}}
* Default (parameter not used / <code>0</code>): {{ItemLink|Chili Dog}}
Boolean Optional
No level noLevel Hides the level

Default: 0

Example:

* Hide (<code>1</code>): {{ItemLink|Scrappy Plate|noLevel=1}}
* Show (<code>0</code>): {{ItemLink|Scrappy Plate|noLevel=0}}
* Default (parameter not used / <code>0</code>): {{ItemLink|Scrappy Plate}}
Boolean Optional
Show Food Icon showFoodIcon Show the food icon

Default: 0

Example:

* Show (<code>1</code>): {{ItemLink|Chili Dog|showFoodIcon=1}}
* Hide (<code>0</code>): {{ItemLink|Chili Dog|showFoodIcon=0}}
* Default (parameter not used / <code>0</code>): {{ItemLink|Chili Dog}}
Boolean Optional

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

Wrap behavior

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
Disable brakes nowrap disable or enable Nowrap (prevent line breaks)

Default: 1

Example:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. LV11Torso-silver.pngScrappy Plate Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. {{ItemLink|Scrappy Plate|nowrap=0}} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Boolean Optional

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

Custom Level

The associated equipment level is shown by default. Use the option only for an deviating equipment level or for adding a level to non equipment items.

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
Level override level Set a custom level to display. Use e.g. 02 not 2.

Default: NULL

Example:

Equipment: LV02Weapon-white.pngEdge o' All LV17Torso-silver.pngScrappy Plate Other Item(s): LV15Item-consumable-silver.pngChili Dog
Equipment: {{ItemLink|Edge o' All|level=02}} {{ItemLink|Scrappy Plate|level=17}} Other Item(s): {{ItemLink|Chili Dog|level=15}}
LevelNumberFill Optional

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

Custom Food icon

The food icon is hidden by default see Hide and show elements for showing the associated food icon.

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
Food icon override foodIcon Set a custom food icon

Default: NULL

Example:

Food: FruitSalad FoodIcon.pngItem-consumable-silver.pngChili Dog Other Item(s): LV11FruitSalad FoodIcon.pngTorso-silver.pngScrappy Plate
Food: {{ItemLink|Chili Dog|foodIcon=FruitSalad_FoodIcon.png}} Other Item(s): {{ItemLink|Scrappy Plate|foodIcon=FruitSalad_FoodIcon.png}}
String Optional

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

Disable auto-rename

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
No Rename noRename disable or enable noRename (prevent auto-rename)

Default: 0

Example:

noRename: LV01Weapon-silver.pngRauser Rename: LV01Weapon-silver.png-Rauserr
noRename: {{ItemLink|Rauser|noRename=1}} Rename: {{ItemLink|Rauser|noRename=0}}
Boolean Optional

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

Return information (internal use)

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
Level return (Data override) levelOverride disable or enable levelOverride (return the level)

Default: 0

Example:

  • levelOverride: 11
levelOverride: {{ItemLink|Scrappy Plate|levelOverride=1}}
no levelOverride: {{ItemLink|Scrappy Plate|levelOverride=0}}
  • Other Item(s): (blank)
Other Item(s): {{ItemLink|Chili Dog|levelOverride=1}}(blank)
Boolean Optional

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

Special Items

Code Result
{{ItemLink|Health Pickup}}
Health-small.pngHealth Pickup

Invalid Item

If an item is misspelled, does not exist or simply has not been added to the template will show a broken icon.

Name

Names containing special characters (#) are not supported. Remove them and use showName for this characters.

It is possible that the name appears different than that entered one:

{{ItemLink|Rauser}}
Rauser will be displayed as LV01Weapon-silver.png-Rauserr. In these cases they are marked with an r (for renamed). All renamed Items will be listet in the category AutoRenamedItem.
* {{ItemLink|Rauser}}
* {{ItemLink|-Rauser}}
* {{ItemLink|Rauser|showName=No Rauser}}
* {{ItemLink|Rauser|noRename=1}}

Wikimedia supports linktrail which allows to add specific characters to an link:

[[Hedgehag]]s

Hedgehags

{{ItemLink|Veggie Set}}s
results in Trade-bronze.pngVeggie Sets

Under specific conditions (parameter nowrap=0 is needed) Linktrail is supported by ItemLink:

{{ItemLink|Veggie Set|nowrap=0}}s

Trade-bronze.pngVeggie Sets

If nowrap is necessary:

{{Nowrap|{{ItemLink|Veggie Set|nowrap=0}}s}}

Trade-bronze.pngVeggie Sets

Linktrail and renamed Items:

{{ItemLink|Rauser|nowrap=0}}s

LV01Weapon-silver.png-Rauserrs

Item Lists

List Description
Template:ItemLink/nameList Contains all Items which should be Renamed
Template:ItemLink/levelList Contains all Level data
Template:ItemLink/foodIconList Contains all Food icons

Rules for the Item Lists

  • All Items should be sorted by Id (That ist the position of the Entry inside the item-database.json. Alternative: ItemViewer on Github) - Path to item-database.json:
    • Mac OS
      1. Open the .app package (Context Menu - show package)
      2. Navigate to Contents/Resources/app.nw/data/item-database.json
    • Windows
      1. Create a copy of your Game (.exe)
      2. Rename .exe to .zip
      3. Unpack the zip file
      4. Navigate to Contents/Resources/app.nw/data/item-database.json
  • Only subsections should be editied
  • Achor Nameing rules:
    • Whitspace = _
    • English Item-names only
    • Only use the special characters _ and -
    • Remove all other special Chars like ' . , # ; < > ( ) { } / \
    • Remove all - if they are at first position: -Item -> Item
  • Don't be shy. If there is a missing Item, add it.

Examples

Code Result
{{ItemLink|Winterclaw}}
LV26Weapon-gold.pngWinterclaw
{{ItemLink|Geo-Data 3469|showName=Geo-Data #3469}}
Valuable-key.pngGeo-Data #3469
{{ItemLink|Recruit's Scope}}
LV11Hat-silver.pngRecruit's Scope
{{ItemLink|Ginger Tom. Salad|showName=Blattsalat|noLink=1}}
Item-consumable-silver.pngBlattsalat

Raw Example text

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Valuable-key.pngThief's Key Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.