Template:Item: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
FaeriMagic (talk | contribs) m (Removed extra line break.)  | 
				FaeriMagic (talk | contribs)  m (Moved "How to use" section and renamed it to "Template:". Edited TemplateData.)  | 
				||
| Line 11: | Line 11: | ||
|}  | |}  | ||
<noinclude>  | <noinclude>  | ||
'''Template:'''  | |||
<pre style="width: 500px;">  | |||
{{Item  | |||
  | name   =  | |||
  | img    =  | |||
  | rarity =  | |||
  | num    =  | |||
}}</pre>  | |||
<templatedata>  | <templatedata>  | ||
{  | {  | ||
| Line 24: | Line 32: | ||
			"description": "The rarity determines the background color of the icon.",  | 			"description": "The rarity determines the background color of the icon.",  | ||
			"type": "string",  | 			"type": "string",  | ||
			"default": "background: radial-gradient(circle, white, lightgray);",  | |||
			"default": "background: radial-gradient(circle, white, lightgray);"  | 			"required": true  | ||
		},  | 		},  | ||
		"num": {  | 		"num": {  | ||
| Line 37: | Line 45: | ||
			"description": "The item's page name is listed here and will direct the user to that page upon click.",  | 			"description": "The item's page name is listed here and will direct the user to that page upon click.",  | ||
			"type": "wiki-page-name",  | 			"type": "wiki-page-name",  | ||
			"  | 			"required": true  | ||
		}  | 		}  | ||
	},  | 	},  | ||
| Line 49: | Line 57: | ||
}  | }  | ||
</templatedata>  | </templatedata>  | ||
</noinclude>  | </noinclude>  | ||
Revision as of 20:09, 5 April 2025
![]()  | 
0 | 
Template:
{{Item
  | name   =
  | img    =
  | rarity =
  | num    =
}}
This template renders an item icon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | The item's page name is listed here and will direct the user to that page upon click.  | Page name | required | 
| img | img | The item icon image is listed here. Do not use the "File:" prefix. 
  | File | suggested | 
| rarity | rarity | The rarity determines the background color of the icon. 
  | String | required | 
| quantity | num | The quantity of the item is listed here. 
  | Number | suggested | 
