Module:Page assessment/doc
Appearance
![]() | This is a documentation subpage for Module:Page assessment. It may contain usage information, categories and other content that is not part of the original module page. |
This module returns a page's assessment (class rating), by:
- Detecting non-existent pages (Needed class); or
- Detecting non-existent talk pages (Unassessed class); or
- Detecting redirects and disambiguation pages (Redirect or Disambig class); or
- Looking at the talk page for the value in the first
|class=
parameter; or - Looking at the namespace of the page
Usage
{{#invoke:Page assessment|main|page name}}
- Examples
{{#invoke:Sandbox/Evad37/Page assessment|main|Wikipedia}}
→ Script error: No such module "Sandbox/Evad37/Page assessment".{{#invoke:Sandbox/Evad37/Page assessment|main|Wiktionary}}
→ Script error: No such module "Sandbox/Evad37/Page assessment".{{#invoke:Sandbox/Evad37/Page assessment|main|Wikt}}
→ Script error: No such module "Sandbox/Evad37/Page assessment".
To normalise output, or generate icons or table cells, the output can be passed into other templates or modules:
{{class/icon|{{#invoke:Sandbox/Evad37/Page assessment|main|Wikipedia}}}}
→
{|class=wikitable ! Class !! Article |- {{class|{{#invoke:Sandbox/Evad37/Page assessment|main|Wiktionary}}}}<td>[[Wiktionary]]</td> |}
Class | Article |
---|---|
??? | Wiktionary |