Jump to content

Module:Page assessment/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Evad37 (talk | contribs) at 01:44, 23 December 2020 (Evad37 moved page Module:Sandbox/Evad37/Page assessment/doc to Module:Page assessment/doc without leaving a redirect: ready to use). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


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