Template:Zdoomwiki: Difference between revisions
DrinkyBird (talk | contribs) (Add default attr for text) Tag: Source edit |
DrinkyBird (talk | contribs) (Those are not named parameters) Tag: Source edit |
||
Line 5: | Line 5: | ||
"format": "inline", | "format": "inline", | ||
"params": { | "params": { | ||
" | "1": { | ||
"label": "Title", | "label": "Title", | ||
"description": "The title of the page to link to", | |||
"type": "line", | "type": "line", | ||
"required": true | "required": true | ||
}, | }, | ||
" | "2": { | ||
"label": "Text", | "label": "Text", | ||
"description": "The text of the link", | |||
"type": "content", | "type": "content", | ||
"default": "Defaults to the same value as 'page'." | |||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"1", | |||
"2" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> |
Latest revision as of 12:14, 2 January 2023
Creates a link to the ZDoom Wiki
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | 1 | The title of the page to link to | Line | required |
Text | 2 | The text of the link
| Content | optional |
Examples
- Main Page
{{zdoomwiki|Main Page}}
- Using ZIPs as WAD replacement
{{zdoomwiki|Using ZIPs as WAD replacement}}
- An article
{{zdoomwiki|Using ZIPs as WAD replacement|An article}}