Template:ToDo: Difference between revisions

From Firrhna Project Wiki
Jump to navigationJump to search
(Created page with "<includeonly> [[:{{{link|Category:Article stubs}}}|{{{text|Stubs}}}]]: {{{manual|{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Article stubs}}}}}}}|{{{type|pages}}}}}}}} </includeonly> <templatedata> { "params": { "link": { "example": "Category:Article Stubs", "type": "wiki-page-name", "description": "Category to link to" }, "text": { "description": "Text for link", "example": "Stubs", "type": "string" }, "manual": { "descri...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>[[:{{{link}}}|{{{text}}}]]: {{{manual|{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link}}}}}}}|{{{type|pages}}}|R}}}}}</includeonly>
[[:{{{link|Category:Article stubs}}}|{{{text|Stubs}}}]]: {{{manual|{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Article stubs}}}}}}}|{{{type|pages}}}}}}}}
<noinclude>
</includeonly>
{{ToDo|link=Category:Article_stubs|text=Stubs}}
 
{{ToDo|link=Special:WantedPages|text=Wanted}}
 
{{ToDo|link=Non-existent|text=Fake|manual=42}}
 
<templatedata>
<templatedata>
{
{
Line 29: Line 34:
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 00:12, 9 January 2024


Stubs: 33


Wanted: 0


Fake: 42


Provides a quick and simple counter for the number of pages in a given category. Adapted from the Nookipedia.

Template parameters

ParameterDescriptionTypeStatus
linklink

Category to link to

Example
Category:Article Stubs
Page nameoptional
texttext

Text for link

Example
Stubs
Stringoptional
manualmanual

Value to show instead of a page count

Example
33
Numberoptional
typetype

Type of entry to show: "pages" or "files"

Example
pages
Stringoptional