Template:Item icon/doc: Difference between revisions
Created page with "== Summary == <templatedata> { "params": { "1": { "aliases": [ "page" ], "label": "Page Name", "description": "The name for the target page.", "example": "Page Name", "type": "wiki-page-name", "required": true }, "2": { "aliases": [ "label" ], "label": "Link Label", "description": "The text to the be displayed on the link icon's label.", "example": "Alternative Page Name", "type": "line" } }, "description": "Use t..." |
|||
| Line 29: | Line 29: | ||
== Examples == | == Examples == | ||
For the examples below, <code><nowiki>File: | For the examples below, <code><nowiki>File:12440_Steel_Bar.png</nowiki></code> was used as the icon for a page called <code>Steel Bar</code>. | ||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
|- | |- | ||
| <code><nowiki>{{Item icon| | | <code><nowiki>{{Item icon|Steel Bar}}</nowiki></code> || {{Item icon|Steel Bar}} | ||
|- | |- | ||
| <code><nowiki>{{Item icon| | | <code><nowiki>{{Item icon|Steel Bar|Steel Bar}}</nowiki></code> || {{Item icon|Steel Bar|Steel Bar}} | ||
|- | |- | ||
| <code><nowiki>{{Item icon| | | <code><nowiki>{{Item icon|Steel Bar|notext}}</nowiki></code> || {{Item icon|Steel Bar|notext}} | ||
|- | |- | ||
| <code><nowiki>{{Item icon|Missing Item}}</nowiki></code> (Missing Page Icon) || {{Item icon|Missing Item}} | | <code><nowiki>{{Item icon|Missing Item}}</nowiki></code> (Missing Page Icon) || {{Item icon|Missing Item}} | ||
|} | |} | ||
== Dependencies== | == Dependencies== | ||
For this template to work properly, you need the following: | For this template to work properly, you need the following: | ||
* The base {{tl|Link icon}} template. | * The base {{tl|Link icon}} template. | ||
* The <code>.link-icon</code> class and any related classes, found in [[MediaWiki:Common.css]]. | * The <code>.link-icon</code> class and any related classes, found in [[MediaWiki:Common.css]]. | ||