Шаблон:Linkless exists/doc

Материал из Буквицы
Версия от 13:21, 8 июля 2025; Karaby (обсуждение | вклад) (Новая страница: «<!-- {{Documentation subpage}} {{High-use}} --> '''Linkless exists''' checks whether a page exists. This check functions the same way as #ifexist:, and checks for a page's existence without creating a backlink. ===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,...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

Linkless exists checks whether a page exists. This check functions the same way as #ifexist:, and checks for a page's existence without creating a backlink.

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

Шаблон:TemplateDataHeader

Linkless exists checks whether a page exists without recording a wikilink or transclusion

Параметры шаблона

ПараметрОписаниеТипСтатус
11

The name of the page to be checked

Строковый (без форматирования)обязательный
22

The text to appear if the page is present

По умолчанию
true
Пример
page found
Строковый (без форматирования)необязательный
33

The text to appear if the page is absent

По умолчанию
(blank string)
Пример
page not found
Строковый (без форматирования)необязательный