Template:Zdoomwiki: Difference between revisions
DrinkyBird (talk | contribs) (Icon also links to the specified page) Tag: Source edit |
DrinkyBird (talk | contribs) (Those are not named parameters) Tag: Source edit |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<templatedata> | |||
{ | |||
"description": "Creates a link to the ZDoom Wiki", | |||
"format": "inline", | |||
"params": { | |||
"1": { | |||
"label": "Title", | |||
"description": "The title of the page to link to", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Text", | |||
"description": "The text of the link", | |||
"type": "content", | |||
"default": "Defaults to the same value as 'page'." | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2" | |||
] | |||
} | |||
</templatedata> | |||
== Examples == | == Examples == | ||
Line 10: | Line 33: | ||
[[Category:External link templates]] | [[Category:External link templates]] | ||
</noinclude><includeonly>[[File:ZDoom Icon 16x16.png|link= | </noinclude><includeonly>[[File:ZDoom Icon 16x16.png|link=zdoom:{{PAGENAMEE: {{{1}}}}}]] [[zdoom:{{PAGENAMEE: {{{1}}}}}|{{#if: {{{2|}}} | {{{2}}} | {{{1}}}}}]]</includeonly> |
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}}