Template:Help/Category: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
|||
| Line 6: | Line 6: | ||
== Example == | == Example == | ||
nowiki{{/nowiki{{PAGENAME}}|MediaWiki Introduction|lang=zh}} | <nowiki>{{</nowiki>{{PAGENAME}}|MediaWiki Introduction|lang=zh}} | ||
nowiki{{/nowiki{{PAGENAME}}|MediaWiki Introduction}} | <nowiki>{{</nowiki>{{PAGENAME}}|MediaWiki Introduction}} | ||
Default value of {{{lang}}} will be nowiki{{SUBPAGENAME}}/nowiki (which will be fr, ja, th, for, Page/fr, Page/ja, Page/th, respectively). | Default value of {{{lang}}} will be <nowiki>{{SUBPAGENAME}}</nowiki> (which will be fr, ja, th, for, Page/fr, Page/ja, Page/th, respectively). | ||
If you want to specify the sort key, you may instead use the form nowiki[[Category:Cat name{{Lang subpage}}|sort key]]/nowiki. | If you want to specify the sort key, you may instead use the form nowiki[[Category:Cat name{{Lang subpage}}|sort key]]/nowiki. | ||
This template is equivalent to nowiki[[Category:Cat name{{Lang subpage}}|{{En pagename}}]]/nowiki, but it compute nowiki{{If en|...}}/nowiki two times, while this template | This template is equivalent to <nowiki>[[Category:Cat name{{Lang subpage}}|{{En pagename}}]]</nowiki>, but it compute <nowiki>{{If en|...}}</nowiki> two times, while this template computes <nowiki>{{If en|...}}}</nowiki> only once. | ||
[[Category:Internationalization templates|Category/Help]] | [[Category:Internationalization templates|Category/Help]] | ||
/noinclude | </noinclude> | ||
{{Help/If en| | {{Help/If en| | ||
[[Category:{{{1|nowiki{{{1}}}/nowiki}}}|{{PAGENAME}}]]| | [[Category:{{{1|<nowiki>{{{1}}}</nowiki>}}}|{{PAGENAME}}]]| | ||
[[Category:{{{1|nowiki{{{1}}}/nowiki}}}/{{{lang|{{SUBPAGENAME}} }}}|{{BASEPAGENAME}}]]}} | [[Category:{{{1|<nowiki>{{{1}}}</nowiki>}}}/{{{lang|{{SUBPAGENAME}} }}}|{{BASEPAGENAME}}]]}} | ||
Revision as of 03:16, 10 October 2009
noinclude {{#ifexist: Template:PD Help Page/Category|Template:PD Help Page/Category|
| {{{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.}} |
}}
This template is to be transcluded in public domain help pages to categorize those pages.
Example
{{Help/Category|MediaWiki Introduction|lang=zh}}
{{Help/Category|MediaWiki Introduction}}
Default value of {{{lang}}} will be {{SUBPAGENAME}} (which will be fr, ja, th, for, Page/fr, Page/ja, Page/th, respectively).
If you want to specify the sort key, you may instead use the form nowiki[[Category:Cat nameTemplate:Lang subpage|sort key]]/nowiki. This template is equivalent to [[Category:Cat name{{Lang subpage}}|{{En pagename}}]], but it compute {{If en|...}} two times, while this template computes {{If en|...}}} only once.
{{#ifeq: category|Category |
[[Category:{{{1}}}|Help/Category]]|
[[Category:{{{1}}}/Category |Help]] }}