Template:Gifted item/doc
This template uses one or more modules written in the Lua programming language.
For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: Gifted item.
This template is used to display how much different NPC's like or dislike an item. It should be displayed on the item pages, rather than NPC pages.
Related Modules, Templates, or Tables:
- This template requires Module:Gifted item
- If new NPC's are added in the future, add them to Module:Gifted item/data for them to be automatically added to the "universal" list. This means anywhere "universal" is used, it will automatically pull in the new NPC's without updating every page. The 'universal" list will remove any NPC names in any of the other categories.
Syntax
{{Gifted item|PREFERENCELEVEL=universal}}
preferenceLevel
should be replaced with "love", "like", "neutral", or "dislike". This information comes from the data-mined field defaultGiftLevel
which tells us what base-level of gift this item is.
0 = Neutral 1 = Love 2 = Like 3 = Dislike
The template will then query the npcPreferences cargo table for the unique overrides. The user only needs to tell the template what the universal preference level is.
Example
Love
{{Gifted item|love = universal}}
Characters | |
---|---|
Loved | |
Liked | No character likes this item. |
Neutral | No character is neutral towards this item. |
Disliked | No character dislikes this item. |
Like
{{Gifted item|like = universal}}
Characters | |
---|---|
Loved | No character loves this item. |
Liked | |
Neutral | No character is neutral towards this item. |
Disliked | No character dislikes this item. |
Neutral
{{Gifted item|neutral = universal}}
Characters | |
---|---|
Loved | No character loves this item. |
Liked | No character likes this item. |
Neutral | |
Disliked | No character dislikes this item. |
Dislike
{{Gifted item|dislike = universal}}
Characters | |
---|---|
Loved | No character loves this item. |
Liked | No character likes this item. |
Neutral | No character is neutral towards this item. |
Disliked |