Tim1mike (обсуждение | вклад) Нет описания правки |
Tim1mike (обсуждение | вклад) Нет описания правки |
||
| Строка 5: | Строка 5: | ||
Поместите {{t|documentation}} на самом верху страницы с документацией. | Поместите {{t|documentation}} на самом верху страницы с документацией. | ||
If the page to be documented is a subpage, use {{t|documentation|pagename of page to be documented}} at the top of the documentation page. | If the page to be documented is a subpage, use {{t|documentation|pagename of page to be documented}} at the top of the documentation page. Например, документация страницы Шаблон:Foo/bar должен быть указан, как {{t|documentation|Шаблон:Foo/bar}}. | ||
The template will attempt to auto detect and link <code><nowiki>{{#Invoke:}}</nowiki></code> calls on template documentations or the <code>require()</code>/<code>mw.loadData()</code> depedency list on module documentations. If you want to supress the auto generated dependency list, use {{t|documentation|DependencyList=no}} | The template will attempt to auto detect and link <code><nowiki>{{#Invoke:}}</nowiki></code> calls on template documentations or the <code>require()</code>/<code>mw.loadData()</code> depedency list on module documentations. If you want to supress the auto generated dependency list, use {{t|documentation|DependencyList=no}} | ||
== | ==Заметка== | ||
This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation. | This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation. | ||
<includeonly></includeonly> | <includeonly></includeonly> | ||
| Строка 17: | Строка 17: | ||
{ | { | ||
"params": {}, | "params": {}, | ||
"description": " | "description": "Шаблон документации включен в template/module документацию. Этот шаблон используется только на подстраницах с пометкой \"doc\"." | ||
} | } | ||
</templatedata> | </templatedata> | ||
Версия от 08:58, 7 ноября 2020
documentation шаблон включен в template/module документацию. Этот шаблон используется только на подстраницах с пометкой "doc".
Использование
Поместите {{documentation}} на самом верху страницы с документацией.
If the page to be documented is a subpage, use {{documentation|<pagename of page to be documented>}} at the top of the documentation page. Например, документация страницы Шаблон:Foo/bar должен быть указан, как {{documentation|<Шаблон:Foo/bar>}}.
The template will attempt to auto detect and link {{#Invoke:}} calls on template documentations or the require()/mw.loadData() depedency list on module documentations. If you want to supress the auto generated dependency list, use {{documentation}}
Заметка
This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation.
TemplateData
Шаблон документации включен в template/module документацию. Этот шаблон используется только на подстраницах с пометкой "doc".
| Параметр | Описание | Тип | Статус | |||
|---|---|---|---|---|---|---|
| Не указано ни одного параметра | ||||||