Module:Page assessment/doc explained

This module returns a page's assessment (class rating), by:

Usage

text

Returns the class as text.<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|''page name''}}

Examples
  • <nowiki>{{#invoke:Page assessment|main|Wikipedia}}</nowiki>
  • <nowiki>{{#invoke:Page assessment|main|Wiktionary}}</nowiki>
  • <nowiki>{{#invoke:Page assessment|main|Wikt}}</nowiki>

    icon

    Returns the class as an icon.<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|icon|''page name''}}

    Examples
  • <nowiki>{{#invoke:Page assessment|icon|Wikipedia}}</nowiki>
  • <nowiki>{{#invoke:Page assessment|icon|Wiktionary}}</nowiki>
  • <nowiki>{{#invoke:Page assessment|icon|Wikt}}</nowiki>

    iconLink

    Returns the class as an icon and a link to the page.<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|iconLink|''page name''}}

    Examples
  • <nowiki>{{#invoke:Page assessment|iconLink|Wikipedia}}</nowiki>
  • <nowiki>{{#invoke:Page assessment|iconLink|Wiktionary}}</nowiki>
  • <nowiki>{{#invoke:Page assessment|iconLink|Wikt}}</nowiki>

    In other templates

    The output can be passed into other templates or modules, for example to generate table cells:

    style="margin-left:1.6em">
    {|class=wikitable
    ! Class !! Article
    |-
    {{class|{{#invoke:Page assessment|main|Wiktionary}}}}<td>[[Wiktionary]]</td>
    |}