Template:WikiProject Portals/doc
This is a documentation subpage for Template:WikiProject Portals. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage
lembaWhen you create or find a new page within the scope of WikiProject Portals please add any of the following to the top of its talk page:
{{WikiProject Portals |class= |importance= }}
{{WikiProject Portals |class= |importance= |historical= |featured= |small= |listas= |maintenance= }}
{{WikiProject Portals
|class =
|importance =
|historical =
|featured =
|small =
|listas =
|maintenance =
}}
Unused parameters may be omitted.
Optional parameters
lemba- class – valid values are listed in the custom class mask. See the project's quality scale for details. Setting an explicit value of NA is rarely necessary; for this, either leave
|class=
blank or omit the parameter. - featured – set
|featured=yes
if the page was designated as a featured portal, before the process was retired in 2017. - historical – set
|historical=yes
if the page is currently inactive and is retained for historical reference.- This parameter populates Category:Portal project pages marked historical.
- This parameter is only needed for pages not in the Wikipedia: namespace, see § Automatic messages.
- maintenance – set
|maintenance=na
to suppress the detection of a missing {{Portal maintenance status}} template and the corresponding note. - importance – valid values are: top, high, mid, low, bottom, na (case-insensitive). See the project's importance scale for details. Setting an explicit value of NA is rarely necessary; for this, either leave
|importance=
blank or omit the parameter. - listas – This parameter, which is the equivalent of the DEFAULTSORT sortkey that should be placed on all biographical articles, is a sortkey for the article talk page (e.g. for The Beatles, use
|listas=Beatles, The
so that the talk page will show up in the B's and not the T's of the various assessment and administrative categories). This is important because it is one source used by those who set DEFAULTSORT on the article; consider also setting the DEFAULTSORT for the article when setting this parameter. For more information about this, please see Wikipedia:Categorization of people § Ordering names in a category.
It is not required if another WikiProject template on the same page has its own|listas=
set, since it not only affects categories used by the banner in which it is set, but it also affects the sortkey of all other banners and templates. - small – this parameter is no longer supported and can safely be removed from the template.
- category – set
|category=no
if, and only if, a banner is being used for demonstration or testing purposes, to prevent unnecessary or undesirable categorization. Otherwise, omit this parameter.
Automatic messages
lembaThis template automatically detects the following maintenance templates on talk pages' related subject pages, and displays appropriate messages:
- {{Historical}} (on pages in the Wikipedia: namespace)
- This populates Category:Portal project pages marked historical
- {{Portal maintenance status}} (on pages in the Portal: namespace)
- Portals missing {{Portal maintenance status}} (except for redirects and disambiguation portals) automatically populate Category:Portals without maintenance status
TemplateData
lembaBanner for tagging and assessing pages related to WikiProject Portals
Parameter | Description | Type | Status | |
---|---|---|---|---|
Small | small | Shows the reduced size template
| Boolean | optional |
Category | category | Suppress the page category
| Boolean | optional |
ListAs | listas | Name used to list the page in categories, if different from PAGENAME
| String | optional |
Class | class | Page quality rating on the assessment scale
| String | suggested |
Importance | importance | Page priority rating on the assessment scale
| String | suggested |
Historical | historical | Used to mark pages as historical (outside portal space, and when {{historical}} is not available)
| Boolean | optional |
Featured | featured | Mark portals that were designated as featured before the process was retired
| Boolean | optional |
Maintenance | maintenance | Suppress the detection of a missing {{Portal maintenance status}} template
| Boolean | optional |