Template:PageRef/doc: Difference between revisions

Sur (talk | contribs)
m added an example to showcase how the icon is not used when it doesnt exist yet
No edit summary
Line 36: Line 36:
<templatedata>
<templatedata>
{
{
    "params": {
"params": {
        "name": {
"name": {
            "label": "Name",
"label": "Name",
            "description": "The localized name of the page to link to, also used to determine the icon.",
"description": "The localized name of the page to link to, also used to determine the icon.",
            "type": "string",
"type": "string",
            "required": true,
"required": true,
            "example": "Lash"
"example": "Lash",
        },
"aliases": [
        "alt_name": {
"1"
            "label": "Alternate Name",
]
            "description": "An optional display name to show instead of the page name in the link.",
},
            "type": "string",
"alt_name": {
            "required": false,
"label": "Alternate Name",
            "example": "Jacob"
"description": "An optional display name to show instead of the page name in the link.",
        },
"type": "string",
        "alt_link": {
"required": false,
            "label": "Alternate Link",
"example": "Jacob"
            "description": "An optional link to link to instead of the 1st parameter (name).",
},
            "type": "string",
"alt_link": {
            "required": false,
"label": "Alternate Link",
            "example": "Death Slam"
"description": "An optional link to link to instead of the 1st parameter (name).",
        },
"type": "string",
        "alt_file_name": {
"required": false,
            "label": "Alternate File Name",
"example": "Death Slam"
            "description": "An optional way to designate which file to include. Not needed if <first parameter> (name) is the same as the file name. File extension not needed, as it will try to prioritize the .svg first, otherwise use the .png.",
},
            "type": "string",
"alt_file_name": {
            "required": false,
"label": "Alternate File Name",
            "example": "Amber Hand.png"
"description": "An optional way to designate which file to include. Not needed if <first parameter> (name) is the same as the file name. File extension not needed, as it will try to prioritize the .svg first, otherwise use the .png.",
        },
"type": "string",
        "size": {
"required": false,
            "label": "Size",
"example": "Amber Hand.png"
            "description": "Size of the icon link, defaulted to '15'px",
},
            "type": "number",
"size": {
            "required": false,
"label": "Size",
            "example": "50"
"description": "Size of the icon link, defaulted to '15'px",
        }
"type": "number",
    },
"required": false,
    "format": "inline"
"example": "50"
}
},
"format": "inline"
}
}
</templatedata>
</templatedata>