Template:PageRef/doc: Difference between revisions

added lang parameter to doc
more details
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Note: It's recommended to use {{tl|HeroIcon}}, {{tl|AbilityIcon}}, or {{tl|ItemIcon}} instead, as those templates use [[Module:Icon]] and thus allow for more elaborate functions such as custom previews. PageRef should only be used for icons not covered in those templates, i.e. {{PageRef|Hidden King}} or {{PageRef|Shopkeeper}}.
=Overview=
=Overview=
Outputs an icon in svg and a link to the given localized page with an optional alternate display name.
Outputs an icon in svg and a link to the given localized page with an optional alternate display name.
Line 88: Line 89:
"size": {
"size": {
"label": "Size",
"label": "Size",
"description": "Size of the icon link, defaulted to '15'px",
"description": "Size of the icon link, defaulted to '20'px",
"type": "number",
"type": "number",
"required": false,
"required": false,