Template:ItemLink/doc: Difference between revisions
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.
Streetclaw (talk | contribs) m (→Name) |
Streetclaw (talk | contribs) (noRename entry added) |
||
Line 69: | Line 69: | ||
|- | |- | ||
|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. {{ItemLink|Scrappy Plate|nowrap=0}} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
|- | |||
| rowspan="3"| noRename | |||
| rowspan="3"| boolean (1/0) | |||
| rowspan="3"| disabled (0) | |||
|disable (0) or enable (1) noRename (prevent auto-rename) | |||
|- | |||
|<pre>noRename: {{ItemLink|Rauser|noRename=1}} Rename: {{ItemLink|Rauser|noRename=0}}</pre> | |||
|- | |||
|noRename: {{ItemLink|Rauser|noRename=1}} Rename: {{ItemLink|Rauser|noRename=0}} | |||
|} | |} | ||
Revision as of 17:51, 16 July 2016
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