Template:PageRef/doc: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m type param removed
Sur (talk | contribs)
m alttarget -> alt_link, altname -> alt_name
Line 13: Line 13:
=Examples=
=Examples=


{{PageRef|Lash|altname=Jacob}}
{{PageRef|Lash|alt_name=Jacob}}
{{PageRef|Bullet Lifesteal|alttarget=Bullet Lifesteal (item)}}
{{PageRef|Bullet Lifesteal|alt_link=Bullet Lifesteal (item)}}
{{PageRef|Siphon Life|alttarget=Abrams#(1) Siphon Life}}
{{PageRef|Siphon Life|alt_link=Abrams#(1) Siphon Life}}


==not yet working==
==not yet working==


{{PageRef|Lash|alt=Jacob}}
{{PageRef|Lash|alt_name=Jacob}}


{{PageRef|Siphon Life|size=50}}
{{PageRef|Siphon Life|size=50}}
Line 27: Line 27:
{{PageRef|Basic Magazine}}
{{PageRef|Basic Magazine}}


{{PageRef|The Curiosity Shop|alt=Shop|size=100}}
{{PageRef|The Curiosity Shop|alt_name=Shop|size=100}}




Below is a fake example. Ideally, the template is called like:
Below is a fake example. Ideally, the template is called like:


<pre style="width: fit-content">{{PageRef|Lash|alt=Jacob}}</pre>
<pre style="width: fit-content">{{PageRef|Lash|alt_name=Jacob}}</pre>


In wikitext it would look be outputted as:
In wikitext it would look be outputted as:
Line 51: Line 51:
             "example": "Lash"
             "example": "Lash"
         },
         },
         "alt": {
         "alt_name": {
             "label": "Alternate Name",
             "label": "Alternate Name",
             "description": "An optional display name to show instead of the page name in the link.",
             "description": "An optional display name to show instead of the page name in the link.",
            "type": "string",
            "required": false,
            "example": "Jacob"
        },
        "alt_link": {
            "label": "Alternate Link",
            "description": "An optional link to link to instead of the 1st parameter (name).",
             "type": "string",
             "type": "string",
             "required": false,
             "required": false,