Template:PageRef/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
Created page with "Example {{PageRef|Lash}} {{PageRef|Lash|alt=Jacob}} {{PageRef|Siphon Life|size=50}} {{PageRef|Basic Magazine}} {{PageRef|The Curiosity Shop|alt=Shop|size=100}} <templatedata> { "description": "Template that outputs an icon and a link to the given page with an optional alternate display name.", "params": { "name": { "label": "Name", "description": "The name of the page to link to, also used to determine the icon.",..."
 
Sur (talk | contribs)
mNo edit summary
Line 6: Line 6:


{{PageRef|Siphon Life|size=50}}
{{PageRef|Siphon Life|size=50}}
{{PageRef|AttributeIconTechDuration}}


{{PageRef|Basic Magazine}}
{{PageRef|Basic Magazine}}
Line 13: Line 15:
<templatedata>
<templatedata>
{
{
     "description": "Template that outputs an icon and a link to the given page with an optional alternate display name.",
     "description": "Template that outputs an icon in svg and a link to the given page with an optional alternate display name.",
     "params": {
     "params": {
         "name": {
         "name": {

Revision as of 18:38, 6 October 2024

Example

Lash

Lash

50 Siphon Life

AttributeIconTechDuration

Basic Magazine

100 The Curiosity Shop

Template that outputs an icon in svg and a link to the given page with an optional alternate display name.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the page to link to, also used to determine the icon.

Example
Lash
Stringrequired
Alternate Namealt

An optional display name to show instead of the page name in the link.

Example
Jacob
Stringoptional
Sizesize

Size of the icon link, defaulted to 15px

Example
50
Numberoptional