Difference between revisions of "Template:Name"
Margotbean (talk | contribs) |
Margotbean (talk | contribs) (+colored artisan goods) |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><templatestyles src="Template:Name/styles.css" /><span class="nametemplate{{#ifeq:{{{class|}}}|inline|inline|}}">[[File: | + | <includeonly><templatestyles src="Template:Name/styles.css" /><span class="nametemplate{{#ifeq:{{{class|}}}|inline|inline|}}">[[File:{{{1|}}}.png|{{#if:{{{size|}}}|{{{size|}}}|24}}px|link=]] {{#if:{{{link|}}}|[[{{{link|}}}]]|{{#switch:{{lc:{{{1|}}}}} |
|fishing treasure chest=[[Fishing#Treasure Chests|Fishing Treasure Chest]] | |fishing treasure chest=[[Fishing#Treasure Chests|Fishing Treasure Chest]] | ||
|muscle remedy=[[Harvey's Clinic#Medical Supplies|Muscle Remedy]] | |muscle remedy=[[Harvey's Clinic#Medical Supplies|Muscle Remedy]] | ||
|energy tonic=[[Harvey's Clinic#Medical Supplies|Energy Tonic]] | |energy tonic=[[Harvey's Clinic#Medical Supplies|Energy Tonic]] | ||
− | |jelly=[[Jellies and Pickles|Jelly]] | + | |jelly|blue jelly|brown jelly|dark blue jelly|dark pink jelly|dark purple jelly|green jelly|light blue jelly|orange jelly|pink jelly|purple jelly|red jelly|white jelly|yellow jelly=[[Jellies and Pickles|Jelly]] |
− | |pickles=[[Jellies and Pickles|Pickles]] | + | |pickles|brown pickles|dark pink pickles|dark purple pickles|green pickles|orange pickles|pink pickles|purple pickles|red pickles|white pickles|yellow pickles=[[Jellies and Pickles|Pickles]] |
+ | |dried fruit|blue dried fruit|brown dried fruit|dark blue dried fruit|dark pink dried fruit|green dried fruit|light blue dried fruit|orange dried fruit|pink dried fruit|purple dried fruit|red dried fruit|white dried fruit|yellow dried fruit=[[Dried Fruit]] | ||
+ | |wine|blue wine|brown wine|dark blue wine|dark pink wine|dark purple wine|green wine|light blue wine|orange wine|pink wine|purple wine|red wine|white wine|yellow wine=[[Wine]] | ||
+ | |juice|brown juice|dark purple juice|green juice|orange juice|pink juice|purple juice|red juice|white juice|yellow juice=[[Juice]] | ||
+ | |dried mushrooms|dried chanterelles|dried common mushrooms|dried magma caps|dried morels|dried purple mushrooms=[[Dried Mushrooms]] | ||
|warp totem farm=[[Warp Totem: Farm]] | |warp totem farm=[[Warp Totem: Farm]] | ||
|warp totem beach=[[Warp Totem: Beach]] | |warp totem beach=[[Warp Totem: Beach]] | ||
Line 16: | Line 20: | ||
|secret note=[[Secret Notes|Secret Note]] | |secret note=[[Secret Notes|Secret Note]] | ||
|sturgeon roe=[[Roe|Sturgeon Roe]] | |sturgeon roe=[[Roe|Sturgeon Roe]] | ||
− | |copper pan=[[ | + | |copper pan=[[Pans|Panning]] |
|trimmed lucky purple shorts=[[Secrets#Lucky Purple Shorts|Trimmed Lucky Purple Shorts]] | |trimmed lucky purple shorts=[[Secrets#Lucky Purple Shorts|Trimmed Lucky Purple Shorts]] | ||
− | | | + | |green slime dangerous=[[Slimes#Dangerous Slimes|Green Slime (dangerous)]] |
+ | |blue slime dangerous=[[Slimes#Dangerous Slimes|Blue Slime (dangerous)]] | ||
+ | |red slime dangerous=[[Slimes#Dangerous Slimes|Red Slime (dangerous)]] | ||
+ | |purple slime dangerous=[[Slimes#Dangerous Slimes|Purple Slime (dangerous)]] | ||
+ | |stacked slimes=[[Slimes#Dangerous Slimes|Stacked Slimes]] | ||
+ | |haunted skull dangerous=[[Haunted Skull (dangerous)]] | ||
+ | |bug dangerous=[[Bug (dangerous)]] | ||
+ | |duggy dangerous=[[Duggy (dangerous)]] | ||
+ | |rock crab dangerous=[[Rock Crab (dangerous)]] | ||
+ | |lava crab dangerous=[[Lava Crab (dangerous)]] | ||
+ | |stone golem dangerous=[[Stone Golem (dangerous)]] | ||
+ | |grub dangerous=[[Grub (dangerous)]] | ||
+ | |cave fly dangerous=[[Cave Fly (dangerous)]] | ||
+ | |dust sprite dangerous=[[Dust Sprite (dangerous)]] | ||
+ | |skeleton dangerous=[[Skeleton (dangerous)]] | ||
+ | |skeleton mage dangerous=[[Skeleton Mage]] | ||
+ | |metal head dangerous=[[Metal Head (dangerous)]] | ||
+ | |shadow brute dangerous=[[Shadow Brute (dangerous)]] | ||
+ | |shadow shaman dangerous=[[Shadow Shaman (dangerous)]] | ||
+ | |squid kid dangerous=[[Squid Kid (dangerous)]] | ||
+ | |armored bug dangerous=[[Armored Bug (dangerous)]] | ||
+ | |mummy dangerous=[[Mummy (dangerous)]] | ||
+ | |green slime=[[Slimes|Green Slime]] | ||
+ | |frost jelly=[[Slimes|Blue Slime]] | ||
+ | |red sludge=[[Slimes|Red Slime]] | ||
+ | |purple slime=[[Slimes|Purple Slime]] | ||
+ | |copper slime=[[Slimes|Copper Slime]] | ||
+ | |iron slime=[[Slimes|Iron Slime]] | ||
+ | |tiger slime=[[Slimes|Tiger Slime]] | ||
+ | |big slime sprite|big blue slime|big green slime|big purple slime|big red slime=[[Slimes|Big Slime]] | ||
+ | |bat=[[Bats|Bat]] | ||
+ | |frost bat=[[Bats|Frost Bat]] | ||
+ | |lava bat=[[Bats|Lava Bat]] | ||
+ | |iridium bat=[[Bats|Iridium Bat]] | ||
+ | |bat dangerous=[[Bats|Bat (dangerous)]] | ||
+ | |frost bat dangerous=[[Bats|Frost Bat (dangerous)]] | ||
+ | |big coop=[[Coop|Big Coop]] | ||
+ | |deluxe coop=[[Coop|Deluxe Coop]] | ||
+ | |big barn=[[Barn|Big Barn]] | ||
+ | |deluxe barn=[[Barn|Deluxe Barn]] | ||
+ | |green slime egg=[[Slime Egg|Green Slime Egg]] | ||
+ | |blue slime egg=[[Slime Egg|Blue Slime Egg]] | ||
+ | |red slime egg=[[Slime Egg|Red Slime Egg]] | ||
+ | |purple slime egg=[[Slime Egg|Purple Slime Egg]] | ||
+ | |tiger slime egg=[[Slime Egg|Tiger Slime Egg]] | ||
+ | |bone node 1|bone node 2=[[Mining#Bone Node|Bone Node]] | ||
+ | |lost book=[[Lost Books|Lost Book]] | ||
+ | |sloth skeleton l=[[Sloth Skeleton|Sloth Skeleton L]] | ||
+ | |sloth skeleton m=[[Sloth Skeleton|Sloth Skeleton M]] | ||
+ | |sloth skeleton r=[[Sloth Skeleton|Sloth Skeleton R]] | ||
+ | |bait=[[Bait (item)|Bait]] | ||
+ | |green frog egg=[[Frog Egg]] | ||
|#default=[[{{{1|}}}]]}}}}{{#if: {{{2|}}}| ({{{2|}}})|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |#default=[[{{{1|}}}]]}}}}{{#if: {{{2|}}}| ({{{2|}}})|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Latest revision as of 18:32, 13 July 2024
Description
This template is used to place the picture of a named item next to the name, resizes the image to 24px wide, makes the item name a link if there's an available article of the same name, and lastly places the third parameter in parenthesis to signify quantity, relationship or any other secondary detail. To refer to villagers and NPCs, use Template:NPC.
Image size can be adjusted by adding the parameter "size".
Use
This template can be used by entering the following onto a relevant page.
{{name|''item name''|''amount''}}
Optional Parameters
All Optional Parameters if used together with "quantity" should be placed after the quantity value!
- size: the image size to be displayed (example: size=48)
- link: replace the name with a link to another page
- class: alternative classes. Currently there is only inline to suppress line break (example: class=inline)
Examples
{{name|Complete Breakfast|30}}
When used the parameters are not identified by name, but by order. Example use of this template;
{{name|Corn|30}}
Result: Corn (30)
{{name|Preserves Jar|3}}
Result: Preserves Jar (3)
Optional parameter examples:
Crafting recipe unlocked at {{name|Mining|Level 9|class=inline}}.
Result: Crafting recipe unlocked at Mining (Level 9).
Size can be defined by using the named parameter "size":
{{name|Apple|size=48}}
Result: Apple
{{name|Melon|3|size=48}}
Result: Melon (3)
{{name|Corn|3|link=Grape}}
Result: Grape (3)