Template:ItemLink/doc: Difference between revisions
Streetclaw (talk | contribs) m (→Hide and show elements: typo) |
Streetclaw (talk | contribs) m (→Item name: example extended) |
||
Line 8: | Line 8: | ||
=== Item name === | === Item name === | ||
{{TemplateData| | {{TemplateData| | ||
{{TemplateData/entry|name=Item Name|param=1|desc=Item name|def=NULL|example={{ItemLink|Ginger Tom. Salad}} <pre>{{ItemLink|Ginger Tom. Salad}}</pre>|type=String|status=Required}} | {{TemplateData/entry|name=Item Name|param=1|desc=Item name|def=NULL|example= | ||
* {{ItemLink|Ginger Tom. Salad}} | |||
* {{ItemLink|Edge o' All}} | |||
<pre>* {{ItemLink|Ginger Tom. Salad}} | |||
* {{ItemLink|Edge o' All}}</pre>|type=String|status=Required}} | |||
{{TemplateData/entry|name=Show Name|param=showName|desc=Shows the defined name/Overrides the Item-Name (alternative Name)|def=NULL|example={{ItemLink|Ginger Tom. Salad|showName=Blattsalat}} <pre>{{ItemLink|Ginger Tom. Salad|showName=Blattsalat}}</pre>|type=String|status=Optional}} | {{TemplateData/entry|name=Show Name|param=showName|desc=Shows the defined name/Overrides the Item-Name (alternative Name)|def=NULL|example={{ItemLink|Ginger Tom. Salad|showName=Blattsalat}} <pre>{{ItemLink|Ginger Tom. Salad|showName=Blattsalat}}</pre>|type=String|status=Optional}} | ||
}} | }} |
Revision as of 20:04, 22 March 2020
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
|
String | Required |
Show Name | showName
|
Shows the defined name/Overrides the Item-Name (alternative Name)
|
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item Name | 1 | Item name
| String | required |
Show Name | showName | Shows the defined name/Overrides the Item-Name (alternative Name)
| String | optional |
Level
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.
|
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Level override | level | Set a custom level to display. Use e.g. <code>02</code> not <code>2</code>.
| Number | optional |
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
|
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Food icon override | foodIcon | Set a custom food icon
| String | optional |
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)
|
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Disable brakes | nowrap | disable or enable Nowrap (prevent line breaks)
| Boolean | optional |
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
|
Boolean | Optional |
No Link | noLink
|
Removes the link |
Boolean | Optional |
No level | noLevel
|
Hides the level
|
Boolean | Optional |
Show Food Icon | showFoodIcon
|
Show the food icon |
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
No Icon | noIcon | Hides the Icon
| Boolean | optional |
No Link | noLink | Removes the link
| Boolean | optional |
No level | noLevel | Hides the level
| Boolean | optional |
Show Food Icon | showFoodIcon | Show the food icon
| Boolean | optional |
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) |
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
No Rename | noRename | disable or enable noRename (prevent auto-rename)
| Boolean | optional |
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 | |
---|---|---|---|---|
Anchor Override | anchorOverride
|
Internal use only (return the anchor-name) - overrides all other parameter except linkOverride and nowrap
|
Boolean | Optional |
Link Override | linkOverride
|
Internal use only (return the link) - overrides all other parameter and anchorOverride
|
Boolean | Optional |
Level override | levelOverride
|
disable or enable levelOverride (return the level)
|
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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Anchor Override | anchorOverride | Internal use only (return the anchor-name) - overrides all other parameter except linkOverride and nowrap
| Boolean | optional |
Link Override | linkOverride | Internal use only (return the link) - overrides all other parameter and anchorOverride
| Boolean | optional |
Level override | levelOverride | disable or enable levelOverride (return the level)
| Boolean | optional |
Special Items
Code | Result |
---|---|
{{ItemLink|Health 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 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 characters to an link:
[[Hedgehag]]s
{{ItemLink|Veggie Set}}sresults in

Under specific conditions (parameter nowrap=0 is needed) Linktrail is supported by ItemLink:
{{ItemLink|Veggie Set|nowrap=0}}s
If nowrap is necessary:
{{Nowrap|{{ItemLink|Veggie Set|nowrap=0}}s}}
Linktrail and renamed Items:
{{ItemLink|Rauser|nowrap=0}}s
LV01-Rauserrs
Item Lists
List | Description |
---|---|
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
- 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 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![]() |
{{ItemLink|Geo-Data #3469}} |
![]() |
{{ItemLink|Recruit's Scope}} |
LV11![]() |
{{ItemLink|Ginger Tom. Salad|showName=Blattsalat|noLink=1}} |
![]() |
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.