Template:PAGESINCATEGORY/doc: Difference between revisions
Appearance
Content deleted Content added
add magic word notice |
m Fix wikilink |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
{{important|Please use <code><nowiki>{{PAGESINCATEGORY</nowiki>{{highlight round|bc=lightgreen|''':'''}}<nowiki>Category}}</nowiki></code>, rather than <code><nowiki>{{PAGESINCATEGORY</nowiki>{{highlight round|bc=lightsalmon|'''|'''}}<nowiki>Category}}</nowiki></code>. {{nowrap|This uses the [[ |
{{important|Please use <code><nowiki>{{PAGESINCATEGORY</nowiki>{{highlight round|bc=lightgreen|''':'''}}<nowiki>Category}}</nowiki></code>, rather than <code><nowiki>{{PAGESINCATEGORY</nowiki>{{highlight round|bc=lightsalmon|'''|'''}}<nowiki>Category}}</nowiki></code>. {{nowrap|This uses the [[: word|magic word]] directly instead of using the template to call the magic word.}}}} |
||
==Usage== |
==Usage== |
||
* {{Tlx|PAGESINCATEGORY|Featured articles}} gives {{PAGESINCATEGORY|Featured articles}} |
* {{Tlx|PAGESINCATEGORY|Featured articles}} gives {{PAGESINCATEGORY|Featured articles}} |
Latest revision as of 12:02, 20 April 2024
This is a documentation subpage for Template:PAGESINCATEGORY. It may contain usage information, categories and other content that is not part of the original template page. |
Please use {{PAGESINCATEGORY:Category}} , rather than {{PAGESINCATEGORY|Category}} . This uses the magic word directly instead of using the template to call the magic word. |
Usage
[edit]{{PAGESINCATEGORY|Featured articles}}
gives 6,583{{PAGESINCATEGORY|Featured articles|R}}
gives 6583 (no commas)
{{PAGESINCATEGORY|Wikipedia files requiring renaming|all}}
gives 4 — all pages{{PAGESINCATEGORY|Wikipedia files requiring renaming|pages}}
gives 0 — ordinary pages (excluding subcategories and files){{PAGESINCATEGORY|Wikipedia files requiring renaming|subcats}}
gives 4 — subcategories{{PAGESINCATEGORY|Wikipedia files requiring renaming|files}}
gives 0 — files
This behaviour is the same as (and uses) the WP:Magic word "PAGESINCATEGORY". The only exception is that if no parameter is used, the current pagename is used as the parameter.