Template:Zdoomwiki: Difference between revisions

From Zandronum Wiki
(Add default attr for text)
Tag: Source edit
(Those are not named parameters)
Tag: Source edit
 
Line 5: Line 5:
"format": "inline",
"format": "inline",
"params": {
"params": {
"page": {
"1": {
"label": "Title",
"label": "Title",
"description": "The title of the page to link to",
"type": "line",
"type": "line",
"required": true,
"required": true
"description": "The title of the page to link to"
},
},
"text": {
"2": {
"label": "Text",
"label": "Text",
"description": "The text of the link",
"type": "content",
"type": "content",
"required": false,
"default": "Defaults to the same value as 'page'."
"description": "The text of the link",
            "default": "Defaults to the same value as 'page'."
}
}
}
},
"paramOrder": [
"1",
"2"
]
}
}
</templatedata>
</templatedata>

Latest revision as of 13:14, 2 January 2023

Creates a link to the ZDoom Wiki

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Title1

The title of the page to link to

Linerequired
Text2

The text of the link

Default
Defaults to the same value as 'page'.
Contentoptional

Examples

  1. Main Page
    {{zdoomwiki|Main Page}}
  2. Using ZIPs as WAD replacement
    {{zdoomwiki|Using ZIPs as WAD replacement}}
  3. An article
    {{zdoomwiki|Using ZIPs as WAD replacement|An article}}