Difference between revisions of "Template:SecTitleRel/doc"
From Apache OpenOffice Wiki
(Основной текст) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{docpage}}</noinclude><!-- | <noinclude>{{docpage}}</noinclude><!-- | ||
{{#titleparts:{{#rel2abs:}}| | -1 }}--> <!-- Вычленяет последний сегмент имени страницы --><!-- | {{#titleparts:{{#rel2abs:}}| | -1 }}--> <!-- Вычленяет последний сегмент имени страницы --><!-- | ||
− | -->__NOTOC__{{Doc/doc/code/tbl/begin}} | + | -->__NOTOC__{{Doc/doc/code/tbl/begin |
+ | |l1=РУС | ||
+ | }} | ||
{{Doc/doc/code/tbl/titleMission}} | {{Doc/doc/code/tbl/titleMission}} | ||
{{Doc/doc/code/tbl/strL10n | {{Doc/doc/code/tbl/strL10n | ||
Line 12: | Line 14: | ||
К сожалению, такой способ не позволяет отобразить локализованные названия на страницах категорий но его возможно использовать в шаблоне DPL, позволяющем вставлять отдельные секции документа. Но при формировании ссылок "вручную", такой способ позволяет избежать дублирования локализованного названия на других страницах и избежать веерных правок, в случае переименования страницы. | К сожалению, такой способ не позволяет отобразить локализованные названия на страницах категорий но его возможно использовать в шаблоне DPL, позволяющем вставлять отдельные секции документа. Но при формировании ссылок "вручную", такой способ позволяет избежать дублирования локализованного названия на других страницах и избежать веерных правок, в случае переименования страницы. | ||
− | {{ | + | {{Warn|Не следует использовать этот шаблон, если содержимое страницы, на которой он расположен, будет включаться (include) в другие страницы. В этом случае относительная ссылка на странице-агрегаторе вычисляется неверно.}} |
|l2=This template is designed to insert page titles in the national languages (for cases where the page name does not coincide with his lokalizovannyem name). This is a relatively simple way to partially circumvent the restrictions on the tag {{Tag|DISPLAYTITLE}}, the contents of which, at present, impossible to obtain from other pages. However, nothing prevents the paste all the contents of any page or only part of it. Which part of the page will be exported, adjusted a pair of tags {{Tag|<nowiki>section begin=section_name /</nowiki>|1}} and {{Tag|<nowiki>section end=section_name /</nowiki>|1}}. Exported portion located between them. Including, you can cut to export the text within the {{Tag|DISPLAYTITLE}}. | |l2=This template is designed to insert page titles in the national languages (for cases where the page name does not coincide with his lokalizovannyem name). This is a relatively simple way to partially circumvent the restrictions on the tag {{Tag|DISPLAYTITLE}}, the contents of which, at present, impossible to obtain from other pages. However, nothing prevents the paste all the contents of any page or only part of it. Which part of the page will be exported, adjusted a pair of tags {{Tag|<nowiki>section begin=section_name /</nowiki>|1}} and {{Tag|<nowiki>section end=section_name /</nowiki>|1}}. Exported portion located between them. Including, you can cut to export the text within the {{Tag|DISPLAYTITLE}}. | ||
Unfortunately, this method does not allow to display the localized name of a category page but it is possible to use a template DPL, allows you to embed specific section of the document. But the formation of links manually, this method allows to avoid duplication of localized names on other pages and avoid fan edits, in the case of renaming the page. | Unfortunately, this method does not allow to display the localized name of a category page but it is possible to use a template DPL, allows you to embed specific section of the document. But the formation of links manually, this method allows to avoid duplication of localized names on other pages and avoid fan edits, in the case of renaming the page. | ||
− | {{ | + | {{Warn|You should not use this template, if the contents of the page where it is located, will be included in the other pages. In this case, the relative link to the page-aggregator is calculated incorrectly.}} |
}} | }} | ||
{{Doc/doc/code/tbl/titleParameters}} | {{Doc/doc/code/tbl/titleParameters}} | ||
Line 28: | Line 30: | ||
{{Doc/doc/code/tbl/titleOperationManual}} | {{Doc/doc/code/tbl/titleOperationManual}} | ||
{{Doc/doc/code/tbl/strL10n | {{Doc/doc/code/tbl/strL10n | ||
− | |l1={{ | + | |l1={{Warn|Для использования шаблона требуются предварительно подготовленные страницы.}} |
Например: | Например: | ||
Line 53: | Line 55: | ||
<pre>[[RU/kb/page1|Страница 1]]</pre> | <pre>[[RU/kb/page1|Страница 1]]</pre> | ||
− | |l2={{ | + | |l2={{Warn|To use a template requires pre-prepared pages.}} |
Example: | Example: | ||
Line 76: | Line 78: | ||
Result: | Result: | ||
<pre>[[RU/kb/page1|Page 1]]</pre> | <pre>[[RU/kb/page1|Page 1]]</pre> | ||
+ | }} | ||
+ | {{Doc/doc/code/tbl/titleParentTemplate}} | ||
+ | {{Doc/doc/code/tbl/strL10n | ||
+ | |l1=<Перечень родительских шаблонов / List of parenting templates> | ||
+ | |l2=<List of parenting templates> | ||
+ | }} | ||
+ | {{Doc/doc/code/tbl/titleSubsidiariesTemplates}} | ||
+ | {{Doc/doc/code/tbl/strL10n | ||
+ | |l1=<Перечень дочерних шаблонов / List of subsidiaries templates> | ||
+ | |l2=<List of subsidiaries templates> | ||
}} | }} | ||
{{Doc/doc/code/tbl/titleExample}} | {{Doc/doc/code/tbl/titleExample}} |
Latest revision as of 08:00, 14 July 2018
Template:SecTitleRel · Документация — Documentation · Обсуждение — Talk · Где используется — Where Used