אונטערשייד צווישן ווערסיעס פון "מוסטער:Linkless exists/דאק"
ק (←TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
ק (דעסקריפציע) |
||
(2 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.) | |||
שורה 1: | שורה 1: | ||
{{Documentation subpage}} | <noinclude>{{דעסקריפציע}}</noinclude>{{Documentation subpage}} | ||
'''Linkless exists''' checks whether a page exists. It differs from alternatives such as [[Help:Magic words#Conditional|#ifexist:]] in that the page containing this template is not recorded as linking to or transcluding the page being checked. This has the advantage of avoiding spurious wikilinks, especially to disambiguation pages which should not have incoming links, but has the disadvantage that the containing page may not be updated automatically if the checked page is created or deleted later. | '''Linkless exists''' checks whether a page exists. It differs from alternatives such as [[Help:Magic words#Conditional|#ifexist:]] in that the page containing this template is not recorded as linking to or transcluding the page being checked. This has the advantage of avoiding spurious wikilinks, especially to disambiguation pages which should not have incoming links, but has the disadvantage that the containing page may not be updated automatically if the checked page is created or deleted later. | ||
יעצטיגע רעוויזיע זינט 20:56, 29 אקטאבער 2023
Linkless exists checks whether a page exists. It differs from alternatives such as #ifexist: in that the page containing this template is not recorded as linking to or transcluding the page being checked. This has the advantage of avoiding spurious wikilinks, especially to disambiguation pages which should not have incoming links, but has the disadvantage that the containing page may not be updated automatically if the checked page is created or deleted later.
Usage
The template requires one parameter: the name of the page to be checked. Include a namespace where necessary. There are two other optional parameters: the text to appear if the page is present, and the text to appear if it is absent. By default, these are set to "true" and "", which evaluate as true and false respectively within expressions. {{Linkless exists|Main Page|working|broken}}
is an efficient shortcut for {{#if:{{Linkless exists|Main Page}}|working|broken}}
.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Linkless exists
[[Category:Templates using TemplateData{{#translation:}}]]
Linkless exists checks whether a page exists without recording a wikilink or transclusion
פאראמעטער | באַשרייבונג | טיפ | סטאַטוס | |
---|---|---|---|---|
1 | 1 | The name of the page to be checked | שנירל | געפאדערט |
2 | 2 | The text to appear if the page is present
| שנירל | אפציאנאל |
3 | 3 | The text to appear if the page is absent
| שנירל | אפציאנאל |