Template:ItemLink/doc
Jump to navigation
Jump to search
Raw Steak. In these cases they are marked with an r (for renamed). All renamed Items will be listet in the category AutoRenamedItem.
This is a template for adding links to items.
Code | Result |
---|---|
{{ItemLink|Winterclaw}} |
LV26![]() |
{{ItemLink|Geo-Data #3469}} |
![]() |
{{ItemLink|Recruit's Scope}} |
LV11![]() |
Customization
There are many possibitities to customize the behavior.
Parameter | Type | Default | Description |
---|---|---|---|
noIcon | boolean (1/0) | show (0) | Hide (1) or show (0) the Icon |
{{ItemLink|Ginger Tom. Salad|noIcon=1}} | |||
Ginger Tom. Salad | |||
showName | string | Item-Name | Overrides the Item-Name (alternative Name) |
{{ItemLink|Ginger Tom. Salad|showName=Blattsalat}} | |||
![]() | |||
noLink | boolean (1/0) | show (0) | Hide (1) or show (0) the Link |
{{ItemLink|Chili Dog|noLink=1}} | |||
![]() | |||
anchorOverride | boolean (1/0) | disabled (0) | Internal use only (return the anchor-name if anchorOverride is 1) |
{{ItemLink|Geo-Data #3469|anchorOverride=1}} | |||
![]() | |||
nowrap | boolean (1/0) | enabled (1) | disable (0) or enable (1) Nowrap (prevent line breaks) |
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. | |||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. LV11![]() | |||
noRename | boolean (1/0) | disabled (0) | disable (0) or enable (1) noRename (prevent auto-rename) |
noRename: {{ItemLink|Rauser|noRename=1}} Rename: {{ItemLink|Rauser|noRename=0}} | |||
noRename: LV01![]() ![]() |
Special Items
Code | Result |
---|---|
{{ItemLink|Health Pickup}} |
![]() |
Default Item
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 (File:Foo.pngfoo).
Name
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

* {{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 charaters to an link:
[[Hedgehag]]s
Under specific conditions (parameter nowrap=0 is needed) Linktrail is supported by ItemLink:
{{ItemLink|Veggie Set|nowrap=0}}s
If nowrap is nessesary:
{{Nowrap|{{ItemLink|Veggie Set|nowrap=0}}s}}
Linktrail and renamed Items:
{{ItemLink|Rauser|nowrap=0}}s
LV01-Rauserrs
Item Lists
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 |
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
- Mac OS
- Only subsections should be editied
- Achor Nameing rules:
- Whitspace = _
- English Item-names only
- Only user the special Charaters _ 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.