Template:Zdoomwiki: Difference between revisions

From Zandronum Wiki
No edit summary
(Those are not named parameters)
Tag: Source edit
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template links to the [http://zdoom.org/wiki ZDoom Wiki].
<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=http://zdoom.org/wiki|ZDoom Wiki]] <span class="plainlinks">[http://zdoom.org/wiki/{{PAGENAMEE: {{{1}}}}} {{#if: {{{2}}} | {{{2}}} | {{{1}}}}}]</span></includeonly>
</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

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}}