Template:Zdoomwiki: Difference between revisions
DrinkyBird (talk | contribs) (Created page with "<noinclude> This template links to the [http://zdoom.org/wiki ZDoom Wiki]. == Examples == # {{zdoomwiki|Main Page}} <br /> <code><nowiki>{{zdoomwiki|Main Page}}</nowiki></co...") |
DrinkyBird (talk | contribs) (Those are not named parameters) Tag: Source edit |
||
(12 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 7: | Line 30: | ||
# {{zdoomwiki|Using ZIPs as WAD replacement}} <br /> <code><nowiki>{{zdoomwiki|Using ZIPs as WAD replacement}}</nowiki></code> | # {{zdoomwiki|Using ZIPs as WAD replacement}} <br /> <code><nowiki>{{zdoomwiki|Using ZIPs as WAD replacement}}</nowiki></code> | ||
# {{zdoomwiki|Using ZIPs as WAD replacement|An article}} <br /> <code><nowiki>{{zdoomwiki|Using ZIPs as WAD replacement|An article}}</nowiki></code> | # {{zdoomwiki|Using ZIPs as WAD replacement|An article}} <br /> <code><nowiki>{{zdoomwiki|Using ZIPs as WAD replacement|An article}}</nowiki></code> | ||
[[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}}