Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Template:ItemLink/doc

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

This is a template for adding links to items.

About[edit source]

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

Parameter[edit source]

Item name[edit source]

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:

Item-consumable-silver.pngGinger Tom. Salad
{{ItemLink|Ginger Tom. Salad}}
String Required
Show Name 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

Level[edit source]

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
Show level level set a custom level to display

Default: NULL

Example:

Equipment: LV17Torso-silver.pngScrappy Plate Other Item(s): LV15Item-consumable-silver.pngChili Dog
Equipment: {{ItemLink|Scrappy Plate|level=17}} Other Item(s): {{ItemLink|Chili Dog|level=15}}
LevelNumber 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

Food icon[edit source]

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
Set food icon 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

Wrap behavior[edit source]

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

Hide ans show elements[edit source]

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:

Ginger Tom. Salad
{{ItemLink|Ginger Tom. Salad|noIcon=1}}
Boolean Optional
No Link noLink Removes the link

Default: 0

Example:

Item-consumable-silver.pngChili Dog
{{ItemLink|Chili Dog|noLink=1}}
Boolean Optional
No level noLevel Hides the level

Default: 0

Example:

Hide: Torso-silver.pngScrappy Plate Show: LV11Torso-silver.pngScrappy Plate
Hide: {{ItemLink|Scrappy Plate|noLevel=1}} Show: {{ItemLink|Scrappy Plate|noLevel=0}}
Boolean Optional
Show Food Icon showFoodIcon Show the food icon

Default: 0

Example:

Show: ChiliDog FoodIcon.pngItem-consumable-silver.pngChili Dog Hide: Item-consumable-silver.pngChili Dog
Show: {{ItemLink|Chili Dog|showFoodIcon=1}} Hide: {{ItemLink|Chili Dog|showFoodIcon=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

Disable auto-rename[edit source]

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)[edit source]

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
Anchor Override anchorOverride Internal use only (return the anchor-name) - overrides all other parameter except linkOverride and nowrap

Default: 0

Example:

Geo-Data 3469
{{ItemLink|Geo-Data #3469|anchorOverride=1}}
Grasswalkers
{{ItemLink|Grasswalkers|anchorOverride=1}}
Boolean Optional
Link Override linkOverride Internal use only (return the link) - overrides all other parameter and anchorOverride

Default: 0

Example:

Items/Valuables#Geo-Data 3469
{{ItemLink|Geo-Data #3469|linkOverride=1}}
Boolean Optional
Level 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[edit source]

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

Default Item[edit source]

If an item is misspelled, does not exist or simply has not been added to the template yet, it will show the default item image and link to the Items page (24x24pxfoo).

Name[edit source]

Names containing special characters are supported.

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

{{ItemLink|Raw Steak}}
Raw Steak will be displayed as Item-consumable-bronze.pngRaw Steak. 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 NOEZ}}
* {{ItemLink|-Rauser NOEZ}}
* {{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[edit source]

List Description
Template:ItemLink/iconList Contains all Icons
Template:ItemLink/nameList Contains all Items which should be Renamed
Template:ItemLink/anchorList Contains all Items which anchor should be Renamed
Template:ItemLink/linkList Contains all Links to the Item Pages
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[edit source]

Code Result
{{ItemLink|Winterclaw}}
LV26Weapon-gold.pngWinterclaw
{{ItemLink|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[edit source]

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.