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:Page assessment|main|Wikipedia}}
→ B{{#invoke:Page assessment|main|Wiktionary}}
→ C{{#invoke:Page assessment|main|Wikt}}
→ Redirect
To normalise output, or generate icons or table cells, the output can be passed into other templates or modules:
{{class/icon|{{#invoke:Page assessment|main|Wikipedia}}}}
→
{|class=wikitable ! Class !! Article |- {{class|{{#invoke:Page assessment|main|Wiktionary}}}}<td>[[Wiktionary]]</td> |}
Class | Article |
---|---|
C | Wiktionary |