Шаблон:Help/Categories — различия между версиями
Материал из Базы Знаний
WikiSysop (обсуждение | вклад) (Новая страница: «<noinclude> {{#ifexist: Template:PD Help Page/{{SUBPAGENAME}}|{{PD Help Page/{{SUBPAGENAME}} }}|{{PD Help Page}} }} This template is to be transcluded in '''public ...») |
WikiSysop (обсуждение | вклад) |
||
| Строка 2: | Строка 2: | ||
{{#ifexist: Template:PD Help Page/{{SUBPAGENAME}}|{{PD Help Page/{{SUBPAGENAME}} }}|{{PD Help Page}} }} | {{#ifexist: Template:PD Help Page/{{SUBPAGENAME}}|{{PD Help Page/{{SUBPAGENAME}} }}|{{PD Help Page}} }} | ||
| − | This template is to be transcluded in '''public domain''' help | + | This template is to be transcluded in '''public domain''' help pages. |
| + | This template will transclude the central en categories template, if the template exists. | ||
| + | Include this template in any language subpages, to unify the page's categories across languages. | ||
== Example == | == Example == | ||
| + | * title: Help:Deleting a page --> transclude {<nowiki></nowiki>{Help:Deleting a page/categories}} | ||
| + | * title: Help:Deleting a page/th --> transclude {<nowiki></nowiki>{Help:Deleting a page/categories}} | ||
| + | * title: Help:Deleting a page/subpage --> transclude {<nowiki></nowiki>{Help:Deleting a page/subpage/categories}} | ||
| + | * title: Help:Deleting a page/subpage/th --> transclude {<nowiki></nowiki>{Help:Deleting a page/subpage/categories}} | ||
| − | + | [[Category:Internationalization templates|Categories/Help]] | |
| + | </noinclude><!-- | ||
| − | + | Trying to optimize {{If en}} calling. | |
| + | This call {{If en}} only once. | ||
| − | + | -->{{If en|<!-- | |
| − | + | -->{{#ifexist: {{{1|{{NAMESPACE}}:{{PAGENAME}}<!-- end of {{{1}}} -->}}}/categories |<!-- | |
| − | + | -->{{ {{{1|{{NAMESPACE}}:{{PAGENAME}}<!-- end of {{{1}}} -->}}}/categories|<!-- | |
| + | -->En pagename={{PAGENAME}}|<!-- | ||
| + | -->Lang subpage=<!-- | ||
| + | -->}}<!-- | ||
| + | -->}}<!-- | ||
| − | + | -->|<!-- else --><!-- | |
| − | </ | + | -->{{#ifexist: {{{1|{{NAMESPACE}}:{{BASEPAGENAME}}<!-- end of {{{1}}} -->}}}/categories |<!-- |
| − | {{ | + | -->{{ {{{1|{{NAMESPACE}}:{{BASEPAGENAME}}<!-- end of {{{1}}} -->}}}/categories|<!-- |
| − | + | -->En pagename={{BASEPAGENAME}}|<!-- | |
| − | + | -->Lang subpage=/{{SUBPAGENAME}}<!-- | |
| + | -->}}<!-- | ||
| + | -->}}<!-- | ||
| + | |||
| + | -->}}<!-- | ||
| + | |||
| + | -->{{#if: |<!-- | ||
| + | |||
| + | The following statements call {{En pagename}} two times which then call {{If en}} two times. | ||
| + | |||
| + | -->{{#ifexist: {{{1|{{NAMESPACE}}:{{En pagename}}<!-- end of {{{1}}} -->}}}/categories |<!-- | ||
| + | -->{{ {{{1|{{NAMESPACE}}:{{En pagename}}<!-- end of {{{1}}} -->}}}/categories }}<!-- | ||
| + | -->}}<!-- | ||
| + | |||
| + | -->}}<!-- | ||
| + | |||
| + | --> | ||
Текущая версия на 10:30, 6 сентября 2011
| |
Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Contents for an overview of all pages. See Copying for instructions. | |
This template is to be transcluded in public domain help pages.
This template will transclude the central en categories template, if the template exists. Include this template in any language subpages, to unify the page's categories across languages.
Example
- title: Help:Deleting a page --> transclude {{Help:Deleting a page/categories}}
- title: Help:Deleting a page/th --> transclude {{Help:Deleting a page/categories}}
- title: Help:Deleting a page/subpage --> transclude {{Help:Deleting a page/subpage/categories}}
- title: Help:Deleting a page/subpage/th --> transclude {{Help:Deleting a page/subpage/categories}}