Line 1: |
Line 1: |
| ==Description== | | ==Description== |
− | This template is used to display how villagers react to an item and is meant to be used on item pages. | + | 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. |
| | | |
− | ==Use==
| + | Each template call should include all 34 giftable villagers' gift tastes for the item. |
− | This template can be used by entering the following.
| |
| | | |
− | <pre>
| + | 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. |
− | {{GiftsByItem
| + | |
− | |love =
| + | ==Parameters== |
− | |like =
| + | All parameters are optional. For example, if no villager dislikes a gift, that parameter can be omitted. |
− | |neutral =
| |
− | |dislike =
| |
− | |hate =
| |
− | |}
| |
− | </pre>
| |
| | | |
− | ===Parameters=== | + | The list of villager names can be in any order; the template will automatically sort each list alphabetically (for all but Japanese and Chinese). |
− | When a parameter is empty or not defined, 'None' is used in it's place.
| + | {|class="wikitable sortable" |
− | <pre>
| + | |- |
− | {{GiftsByItem
| + | !Parameter |
− | |love = Comma separated list of villagers that love this item | + | !Notes |
− | |like = Comma separated list of villagers that like this item | + | |- |
− | |neutral = Comma separated list of villagers that tolerate this item | + | |love||Comma-separated list of names of villagers who love the item when received as a gift |
− | |dislike = Comma separated list of villagers that dislike this item | + | |- |
− | |hate = Comma separated list of villagers that hate this item | + | |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 |
| + | |- |
| |} | | |} |
− | </pre>
| |
| | | |
| ==Example== | | ==Example== |
− | Using [[Sashimi]] as an example.
| |
| <pre>{{GiftsByItem | | <pre>{{GiftsByItem |
− | |like = Robin,Demetrius,Maru,Linus,Pierre,Caroline,Abigail,Alex,George,Lewis,Clint,Penny,Pam,Haley,Jas,Vincent,Jodi,Sam,Leah,Shane,Marnie,Elliott,Gus,Dwarf,Wizard,Harvey,Sandy | + | |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 | + | |love = Sebastian,Jodi,Sam,Leo |
− | |hate = Evelyn,Emily,Kent | + | |hate = Evelyn,Emily,Kent,Demetrius |
− | |dislike = Willy,Krobus | + | |dislike = Willy,Krobus,Marnie,Elliott |
| }}</pre> | | }}</pre> |
− |
| |
| {{GiftsByItem | | {{GiftsByItem |
− | |like=Robin,Demetrius,Maru,Linus,Pierre,Caroline,Abigail,Alex,George,Lewis,Clint,Penny,Pam,Haley,Jas,Vincent,Jodi,Sam,Leah,Shane,Marnie,Elliott,Gus,Dwarf,Wizard,Harvey,Sandy | + | |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 | + | |love = Sebastian,Jodi,Sam,Leo |
− | |hate=Evelyn,Emily,Kent | + | |hate = Evelyn,Emily,Kent,Demetrius |
− | |dislike=Willy,Krobus | + | |dislike = Willy,Krobus,Marnie,Elliott |
| }}<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | | }}<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |