(Import from MediaWiki.org) |
m (Add example for overriding label) Tag: 2017 source edit |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude><includeonly><span class="plainlinks redlink">[{{fullurl:{{{1}}}|{{{params|redlink=1}}}}} <span style="color: var(--color-link-new);" title="{{int:red-link-title|{{FULLPAGENAME:{{{1}}}}}}}">{{{2|{{{1}}}}}}</span>]</span></includeonly></onlyinclude> | ||
<span class="plainlinks redlink">[{{fullurl:{{{1}}}|{{{params|redlink=1}}}}} <span title="{{int:red-link-title| | |||
Creates a redlink that doesn't affect the target page's standing in [[Special:WantedPages]]. | |||
Examples: | |||
* <code><nowiki>{{redlink not wanted|nonexistent page}}</nowiki></code> ⟶ {{redlink not wanted|nonexistent page}} | |||
* <code><nowiki>{{redlink not wanted|nonexistent page|label}}</nowiki></code> ⟶ {{redlink not wanted|nonexistent page|label}} | |||
* <code><nowiki>{{redlink not wanted|Main Page}}</nowiki></code> ⟶ {{redlink not wanted|Main Page}} (note the target page exists; this is not checked) | |||
{{TemplateData preamble}}<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Target Page", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Label Text", | |||
"type": "line", | |||
"default": "{{{1}}} (value of page name parameter)" | |||
}, | |||
"params": { | |||
"label": "Link Querystring", | |||
"description": "the whole querystring except the leading '?'", | |||
"type": "url", | |||
"default": "redlink=1" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"params" | |||
], | |||
"description": "Creates a redlink that doesn't affect the target page's standing in Special:WantedPages.", | |||
"format": "inline" | |||
} | |||
</templatedata> |
Latest revision as of 17:38, 1 August 2024
Creates a redlink that doesn't affect the target page's standing in Special:WantedPages.
Examples:
{{redlink not wanted|nonexistent page}}
⟶ nonexistent page{{redlink not wanted|nonexistent page|label}}
⟶ label{{redlink not wanted|Main Page}}
⟶ Main Page (note the target page exists; this is not checked)
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Creates a redlink that doesn't affect the target page's standing in Special:WantedPages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Target Page | 1 | no description | Page name | required |
Label Text | 2 | no description
| Line | optional |
Link Querystring | params | the whole querystring except the leading '?'
| URL | optional |