Difference between revisions of "Template:GiftsByItem"
Margotbean (talk | contribs) m (Reverted edits by BotAntony (talk) to last revision by Margotbean) Tag: Rollback |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{|class="wikitable roundedborder" |
− | + | !colspan="2"|Villager Reactions | |
− | {| class="wikitable | + | {{#if:{{{love|}}}|<nowiki/> |
− | ! colspan=2 | Villager Reactions | ||
− | {{#if:{{{love|}}}| | ||
{{!}}- | {{!}}- | ||
!Love | !Love | ||
− | {{!}}{{# | + | {{!}}{{#invoke:GiftsByItem|ts|{{{love|}}}}} |
− | {{#if:{{{like|}}}| | + | }}{{#if:{{{like|}}}|<nowiki/> |
{{!}}- | {{!}}- | ||
!Like | !Like | ||
− | {{!}}{{# | + | {{!}}{{#invoke:GiftsByItem|ts|{{{like|}}}}} |
− | {{#if:{{{neutral|}}}| | + | }}{{#if:{{{neutral|}}}|<nowiki/> |
{{!}}- | {{!}}- | ||
!Neutral | !Neutral | ||
− | {{!}}{{# | + | {{!}}{{#invoke:GiftsByItem|ts|{{{neutral|}}}}} |
− | {{#if:{{{dislike|}}}| | + | }}{{#if:{{{dislike|}}}|<nowiki/> |
{{!}}- | {{!}}- | ||
!Dislike | !Dislike | ||
− | {{!}}{{# | + | {{!}}{{#invoke:GiftsByItem|ts|{{{dislike|}}}}} |
− | {{#if:{{{hate|}}}| | + | }}{{#if:{{{hate|}}}|<nowiki/> |
{{!}}- | {{!}}- | ||
!Hate | !Hate | ||
− | {{!}}{{# | + | {{!}}{{#invoke:GiftsByItem|ts|{{{hate|}}}}} |
− | + | }} | |
− | |} | + | |}</includeonly><noinclude>{{{{PAGENAME}}/doc}}</noinclude> |
− | </includeonly> | ||
− | <noinclude>{{{{PAGENAME}}/doc}}</noinclude> |
Latest revision as of 16:56, 10 December 2023
Description
This template displays a table of villager reactions when given an item as a gift. Place it on the item's page in a "Gifting" section.
Each template call should include all 34 giftable villagers' gift tastes for the item.
This template automatically translates all villagers' names, icons, and links into other languages, and automatically sorts them according to the appropriate alphabet/character set, in all but Japanese and Chinese. Therefore, the entire template call + parameters can be copy/pasted from the item's page in English to the item's page in another language, without alteration, and will display correctly.
Parameters
All parameters are optional. For example, if no villager dislikes a gift, that parameter can be omitted.
The list of villager names can be in any order; the template will automatically sort each list alphabetically (for all but Japanese and Chinese).
Parameter | Notes |
---|---|
love | Comma-separated list of names of villagers who love the item when received as a gift |
like | Comma-separated list of names of villagers who like the item when received as a gift |
neutral | Comma-separated list of names of villagers who are neutral towards the item when received as a gift |
dislike | Comma-separated list of names of villagers who dislike the item when received as a gift |
hate | Comma-separated list of names of villagers who hate the item when received as a gift |
Example
{{GiftsByItem |like = Robin,Maru,Linus,Pierre,Caroline,Abigail,Alex,George,Lewis,Clint,Penny,Pam,Haley,Jas,Vincent,Leah,Shane,Gus,Dwarf,Wizard,Harvey,Sandy |love = Sebastian,Jodi,Sam,Leo |hate = Evelyn,Emily,Kent,Demetrius |dislike = Willy,Krobus,Marnie,Elliott }}
Villager Reactions
| |
---|---|
Love | Jodi • Leo • Sam • Sebastian |
Like | Abigail • Alex • Caroline • Clint • Dwarf • George • Gus • Haley • Harvey • Jas • Leah • Lewis • Linus • Maru • Pam • Penny • Pierre • Robin • Sandy • Shane • Vincent • Wizard |
Dislike | Elliott • Krobus • Marnie • Willy |
Hate | Demetrius • Emily • Evelyn • Kent |