--=REKLAMA=--

Szablon

KatWstaw

Z Joomla!WikiPL

The {{KatWstaw}} template makes category inclusion in other templates easier. It eliminates the need for complicated #switches and #ifeq of NAMESPACE to allow category inclusion in templates without including those categories in certain NAMESPACES such as, the Template and JDOC NAMESPACES. The code being used is shown below.

{{#switch: {{NAMESPACE}}
|Template=<!-- no categorization -->
|JDOC=<!-- no categorization -->
|#default={{#arraydefine:cats|{{{1|}}}}} {{#arrayprint:cats||@@@@|[[Kategoria:@@@@|{{PAGENAME}}]]}}{{#arrayreset:cats}}
}}