Template:W/doc
Use
- Use the normal syntax of <syntaxhighlight lang="text" inline>Page name</syntaxhighlight> or <syntaxhighlight lang="text" inline>displayed text</syntaxhighlight> whenever possible.
- Interwiki links are welcome. Many times there is no page in the Simple English Wikipedia page (yet), but there is already a page in the “complex” English Wikipedia.
- If it is really necessary, you can use this template. It uses uses the “expensive parser function” <syntaxhighlight lang="text" inline>#ifexist:</syntaxhighlight>.
- If the target page does not exist in the Simple English page (yet), the “complex” English Wikipedia is automatically linked. Important: The link is always a blue link, even if there is no page in the “complex” English Wikipedia. (→ Did you make a spelling mistake?)
- First argument is the target page’s name.
- Second optional argument is the displayed target name. If omitted, the first argument is the displayed text.
- Example: <syntaxhighlight lang="text" inline>[[Main Page|]]</syntaxhighlight> makes <syntaxhighlight lang="text" inline>Start here</syntaxhighlight>.
- Example: On December 16, 2022, <syntaxhighlight lang="text" inline>[[Presseabteilung|]]</syntaxhighlight> makes <syntaxhighlight lang="text" inline>Presseabteilung</syntaxhighlight>, because (as of December 16, 2022) there is no Simple English Wikipedia page named Presseabteilung.
- Usage of <syntaxhighlight lang="text" inline>#ifexist:</syntaxhighlight> is intentional so the target page appears on the wanted pages list. However, there is no red link on the page where you use this template.
TemplateData
<templatedata> { "params": { "1": { "label": "Target", "description": "Link target page name and possibly also displayed text.", "example": "Main Page", "type": "wiki-page-name", "required": true }, "2": { "label": "Display text", "description": "Text to display as the link.", "example": "Start reading here", "type": "string", "default": "If empty, the target page’s name (first argument) is displayed." } }, "format": "inline", "description": "Wikipedia link template." } </templatedata>