Template:Article or page

article

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Article or page/doc" to edit its documentation if it is available. (How does this work?)

This template outputs either "article" or "page" based on whether a given quality assessment applies to an article or a page. It is mainly used within category header templates (for instance, {{WP 20th Century Studios quality and importance cat}}).

The default output is "article" to easily handle non-standard quality assessments.

Because it is easier to pluralize "article" and "page" than de-pluralize "articles" and "pages", the output of this template is singular. If the plural form is desired, you can add an s directly after the template, such as {{Article or page|Foo}}s.

Usage

  • {{Article or page|File}} → page
  • {{Article or page|File}}s → pages
  • {{Article or page|FILE}}s → pages
  • {{Article or page|B}} → article
  • {{Article or page|B}}s → articles
  • {{Article or page|B-class}}s → articles
  • {{Article or page|b-cLaSs}}s → articles
  • {{Article or page|Purple monkey dish washer}} → article

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Article or page in articles based on its TemplateData.

TemplateData for Article or page

A template which outputs "article" or "page", depending on whether the input is an assessment class for articles or pages.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Assessment class1

The assessment class

Linerequired