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:
-
Blattsalat {{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. LV11
Scrappy 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.
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.
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: LV01
Rauser Rename: LV01 -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: {{ItemLink|Scrappy Plate|levelOverride=1}}
no levelOverride: {{ItemLink|Scrappy Plate|levelOverride=0}}
Other Item(s): {{ItemLink|Chili Dog|levelOverride=1}}(blank)
|
Boolean
|
Optional
|
Level return (allow ascended)
|
allowAscended
|
Allow returning ascended when levelOverride is 1 . Lua modules should use mw.loadData("Module:ItemLink/levelList") directly.
- Default:
-
0
- Example:
-
|
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
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
LV01
-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
Veggie Sets
Under specific conditions (parameter nowrap=0 is needed) Linktrail is supported by ItemLink:
{{ItemLink|Veggie Set|nowrap=0}}s
Veggie Sets
If nowrap is necessary:
{{Nowrap|{{ItemLink|Veggie Set|nowrap=0}}s}}
Veggie Sets
Linktrail and renamed Items:
{{ItemLink|Rauser|nowrap=0}}s
LV01
-Rauserrs
Item Lists
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
- Open the .app package (Context Menu - show package)
- Navigate to Contents/Resources/app.nw/data/item-database.json
- Windows
- Create a copy of your Game (.exe)
- Rename .exe to .zip
- Unpack the zip file
- 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}}
|
LV26 Winterclaw
|
{{ItemLink|Geo-Data 3469|showName=Geo-Data #3469}}
|
Geo-Data #3469
|
{{ItemLink|Recruit's Scope}}
|
LV11 Recruit's Scope
|
{{ItemLink|Ginger Tom. Salad|showName=Blattsalat|noLink=1}}
|
Blattsalat
|
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.
Thief'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.
Test of raw TemplateData output:
Template parameters
Parameter | Description | Type | Status |
---|
Item Name | 1 | Item name - Example
- * <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Ginger Tom. Salad.png|24x24px]]</span>[[Ginger Tom. Salad|Ginger Tom. Salad]]</span>
- <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>
* {{ItemLink|Ginger Tom. Salad}}
* {{ItemLink|Edge o' All}}
| String | required |
---|
Name Override | showName | Shows the defined name/Overrides the Item-Name (alternative Name) - Example
- <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Ginger Tom. Salad.png|24x24px]]</span>[[Ginger Tom. Salad|Blattsalat]]</span>
{{ItemLink|Ginger Tom. Salad|showName=Blattsalat}}
| String | optional |
---|
No Icon | noIcon | Hides the Icon - Default
- 0
- Example
- * No Icon (<code>1</code>): <span class="nowrap" style="white-space:nowrap">[[Ginger Tom. Salad|Ginger Tom. Salad]]</span>
- Icon (<code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Ginger Tom. Salad.png|24x24px]]</span>[[Ginger Tom. Salad|Ginger Tom. Salad]]</span>
- Default (parameter not used / <code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Ginger Tom. Salad.png|24x24px]]</span>[[Ginger Tom. Salad|Ginger Tom. Salad]]</span>
* 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>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>Chili Dog</span>
- Link (<code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span>
- Default (parameter not used / <code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span>
* 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>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy Plate]]</span>
- Show (<code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>11</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy Plate]]</span>
- Default (parameter not used / <code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>11</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy Plate]]</span>
* 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>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkFood" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:ChiliDog FoodIcon.png]]</span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span>
- Hide (<code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span>
- Default (parameter not used / <code>0</code>): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span>
* 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 |
---|
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. <span class="itemLinkLevel">LV<sub>11</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy 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 |
---|
Level override | level | Set a custom level to display. - Example
-
- Equipment
- <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>02</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>
- <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>17</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy Plate]]</span>
- <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel ascended">LVL↑</span><span class="itemLinkIcon ascended" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Old Geta.png|26x26px]]</span>[[Old Geta|Old Geta]]</span>
- Other Item(s)
- <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>15</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span>
; Equipment:
: {{ItemLink|Edge o' All|level=2}}
: {{ItemLink|Scrappy Plate|level=17}}
: {{ItemLink|Old Geta|level=ascended}}
; Other Item(s):
: {{ItemLink|Chili Dog|level=15}}
| Content | optional |
---|
Food icon override | foodIcon | Set a custom food icon - Example
- Food: <span class="nowrap" style="white-space:nowrap"><span class="itemLinkFood" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:FruitSalad_FoodIcon.png]]</span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Chili Dog.png|24x24px]]</span>[[Chili Dog|Chili Dog]]</span> Other Item(s): <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>11</sub></span><span class="itemLinkFood" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:FruitSalad_FoodIcon.png]]</span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy Plate]]</span>
Food: {{ItemLink|Chili Dog|foodIcon=FruitSalad_FoodIcon.png}} Other Item(s): {{ItemLink|Scrappy Plate|foodIcon=FruitSalad_FoodIcon.png}}
| String | optional |
---|
No Rename | noRename | disable or enable noRename (prevent auto-rename) - Default
- 0
- Example
- noRename: <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>01</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Rauser.png|24x24px]]</span>[[Rauser|Rauser]]</span> Rename: <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>01</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:-Rauser.png|24x24px]]</span>[[-Rauser|-Rauser<sub>r</sub>]]</span>
noRename: {{ItemLink|Rauser|noRename=1}} Rename: {{ItemLink|Rauser|noRename=0}}
| Boolean | optional |
---|
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: <span class="nowrap" style="white-space:nowrap"><span class="itemLinkLevel">LV<sub>11</sub></span><span class="itemLinkIcon" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">[[File:Scrappy Plate.png|24x24px]]</span>[[Scrappy Plate|Scrappy Plate]]</span>
no levelOverride: {{ItemLink|Scrappy Plate|levelOverride=0}}
Other Item(s): {{ItemLink|Chili Dog|levelOverride=1}}(blank)
| Boolean | optional |
---|
Level return (allow ascended) | allowAscended | Allow returning <code>ascended</code> when <code>levelOverride</code> is <code>1</code>.<br
/>Lua modules should use <code>[[mw:Extension:Scribunto/Lua_reference_manual#mw.loadData|mw.loadData]]("[[Module:ItemLink/levelList]]")</code> directly. - Default
- 0
- Example
- *
allowAscended: {{ItemLink|Lifefiber Dress|levelOverride=1|allowAscended=1}} allowAscended: ascended
| Boolean | optional |
---|