Template:Help/Categories

From TIGHAR
Jump to: navigation, search

noinclude {{#ifexist: Template:PD Help Page/Help/Categories|Template:PD Help Page/Help/Categories|

PD {{{text}}}|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 Help:Contents for an overview of all pages. See Project:PD help/Copying for instructions.}} PD
}}

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 {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}}

/noinclude!--

Trying to optimize {{#ifeq: help/categories|Help/Categories |{{{1}}}| }} calling. This call {{#ifeq: help/categories|Help/Categories |{{{1}}}| }} only once.

--{{#ifeq: help/categories|Help/Categories |!--

  --{{#ifexist: Template:Help/Categories!-- end of {{{1}}} --/categories |!--
     --{{ Template:Help/Categories!-- end of {{{1}}} --/categories|!--
        --En pagename=Help/Categories|!--
        --Lang subpage=!--
     --}}!--
  --}}!--

--|!-- else --!--

  --{{#ifexist: Template:Help/Categories!-- end of {{{1}}} --/categories |!--
     --{{ Template:Help/Categories!-- end of {{{1}}} --/categories|!--
        --En pagename=Help/Categories|!--
        --Lang subpage=/Help/Categories!--
     --}}!--
  --}}!--

-- }}!--

--{{#if: |!--

The following statements call Template:En pagename two times which then call {{#ifeq: help/categories|Help/Categories |{{{1}}}| }} two times.

--{{#ifexist: Template:Template:En pagename!-- end of {{{1}}} --/categories |!--

  --{{ Template:Template:En pagename!-- end of {{{1}}} --/categories }}!--

--}}!--

--}}!--

--