From Welcome to Elderfield Wiki
Jump to navigation
Jump to search
Summary
{
"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 this template to display an icon next to a page link.\n\nThis template assumes that each page has an icon uploaded at a specific location, namely \"File:Page Name (Character).png\".",
"format": "inline"
}
Examples
The examples below use the existing article title. The template looks for
File:Pumpkid (Character).png as the icon for the page
Pumpkid.
| Code | Result |
|---|
{{Character icon|Pumpkid}} | Pumpkid (Character).png (image not recovered) Pumpkid |
{{Character icon|Pumpkid|The Pumpkid}} | Pumpkid (Character).png (image not recovered) The Pumpkid |
{{Character icon|Pumpkid|notext}} | Pumpkid (Character).png (image not recovered) notext |
{{Character icon|Missing Boy}} (Missing Page Icon) | {{Character icon|Missing Boy}} (illustrative missing-icon case) |
Dependencies
For this template to work properly, you need the following:
- The base
{{Link icon}} template. - The
.link-icon class and any related classes, found in MediaWiki:Common.css.