Template:Page Status: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{#var:tl_ps_visible|false}}|false|{{#vardefine:tl_ps_pagecontents|{{:{{PAGENAME}}}}}}<table style="margin:1em; padding:0 .5em; border: 2px solid {{#if:{{{flag|}}}|#A00; background-color: #FDD|#006AFF; background-color: #CCE6FF}}"><tr><td class="mbox-image">{{#if:{{{flag|}}}|[[File:Cmbox deletion.png|40x40px|link=|alt=]]|[[File:Tools.svg|40x40px|link=|alt=]]}}</td><td class="mbox-text"><div style="text-align: center;"><b>Page Status</b><small> ([[Template:Page Status|edit]])</small></div>{{#tag:ul|<!-- | <includeonly>{{#ifeq:{{#var:tl_ps_visible|false}}|false|{{#vardefine:tl_ps_pagecontents|{{:{{PAGENAME}}}}}}<table style="margin:1em; padding:0 .5em; border: 2px solid {{#if:{{{flag|}}}|#A00; background-color: #FDD|#006AFF; background-color: #CCE6FF}}"><tr><td class="mbox-image">{{#if:{{{flag|}}}|[[File:Cmbox deletion.png|40x40px|link=|alt=]]|[[File:Tools.svg|40x40px|link=|alt=]]}}</td><td class="mbox-text"><div style="text-align: center;"><b>Page Status</b><small> ([[Template:Page Status|edit]])</small></div>{{#tag:ul|<!-- | ||
-->{{#if:{{{flag|}}}|{{#tag:li|This page is <b>[[:Category:Pages flagged for immediate attention|flagged for immediate attention]]</b>. Please do not remove this flag until the issue is resolved.}}[[Category:Pages flagged for immediate attention]]}}<!-- | -->{{#if:{{{flag|}}}|{{#tag:li|This page is <b>[[:Category:Pages flagged for immediate attention|flagged for immediate attention]]</b>. Please do not remove this flag until the issue is resolved.}}[[Category:Pages flagged for immediate attention]]}}<!-- | ||
-->{{#if:{{{infobox|}}}|{{#tag:li|Infobox: {{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/infobox vevent/}}|{{#ifeq:{{{infobox}}}|none|unchecked.[[Category:Pages with an unchecked infobox]]|{{# | -->{{#if:{{{infobox|}}}|{{#tag:li|Infobox: {{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/infobox vevent/}}|{{#ifeq:{{{infobox}}}|none|unchecked.[[Category:Pages with an unchecked infobox]]|{{#if:{{#regex:{{{infobox}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_infoboxdate|{{#regex:{{{infobox}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_infoboxeditor|{{#regex:{{{infobox}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_infoboxdate}} by [[User:{{#var:tl_ps_infoboxeditor}}|{{#var:tl_ps_infoboxeditor}}]] ([[User talk:{{#var:tl_ps_infoboxeditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_infoboxdate}}}}>31104000|[[Category:Pages with an infobox checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}|<b>missing</b>.[[Category:Pages missing sections]][[Category:Pages with an unchecked infobox]]}}}}}}<!-- | ||
-->{{#if:{{{description|}}}|{{#tag:li|Description: {{#ifeq:{{{description}}}|none|unchecked.[[Category:Pages with an unchecked description]]|{{#if:{{#regex:{{{description}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_descripdate|{{#regex:{{{description}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_descripeditor|{{#regex:{{{description}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_descripdate}} by [[User:{{#var:tl_ps_descripeditor}}|{{#var:tl_ps_descripeditor}}]] ([[User talk:{{#var:tl_ps_descripeditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_descripdate}}}}>31104000|[[Category:Pages with a description checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}}}<!-- | |||
-->{{#if:{{{forumpage|}}}|{{#tag:li|Forum page: {{#ifeq:{{{forumpage}}}|none|unchecked.[[Category:Pages with an unchecked forum page]]|{{#if:{{#regex:{{{forumpage}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_forumdate|{{#regex:{{{forumpage}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_forumeditor|{{#regex:{{{forumpage}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_forumdate}} by [[User:{{#var:tl_ps_forumeditor}}|{{#var:tl_ps_forumeditor}}]] ([[User talk:{{#var:tl_ps_forumeditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_forumdate}}}}>31104000|[[Category:Pages with a forum page checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}}}<!-- | |||
-->{{#if:{{{gamelist|}}}|{{#tag:li|Game list: {{#ifeq:{{{gamelist}}}|none|unchecked.[[Category:Pages with an unchecked game list]]|{{#if:{{#regex:{{{gamelist}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_gamelistdate|{{#regex:{{{gamelist}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_gamelisteditor|{{#regex:{{{gamelist}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_gamelistdate}} by [[User:{{#var:tl_ps_gamelisteditor}}|{{#var:tl_ps_gamelisteditor}}]] ([[User talk:{{#var:tl_ps_gamelisteditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_gamelistdate}}}}>31104000|[[Category:Pages with a game list checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/Category.Platforms/}}||{{#tag:li|Platform category: <b>missing</b>}}[[Category:Pages missing sections]]}}}}<!-- | |||
-->{{#if:{{{enhancements|}}}|{{#tag:li|Enhancements: {{#ifeq:{{{enhancements}}}|none|unchecked.[[Category:Pages with unchecked enhancements]]|{{#if:{{#regex:{{{enhancements}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_enhancedate|{{#regex:{{{enhancements}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_enhanceeditor|{{#regex:{{{enhancements}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_enhancedate}} by [[User:{{#var:tl_ps_enhanceeditor}}|{{#var:tl_ps_enhanceeditor}}]] ([[User talk:{{#var:tl_ps_enhanceeditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_enhancedate}}}}>31104000|[[Category:Pages with enhancements checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}}}<!-- | |||
-->{{#if:{{{videogallery|}}}|{{#tag:li|Video Gallery: {{#ifeq:{{{videogallery}}}|none|unchecked.[[Category:Pages with an unchecked video gallery]]|{{#if:{{#regex:{{{videogallery}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_gallerydate|{{#regex:{{{videogallery}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_galleryeditor|{{#regex:{{{videogallery}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_gallerydate}} by [[User:{{#var:tl_ps_galleryeditor}}|{{#var:tl_ps_galleryeditor}}]] ([[User talk:{{#var:tl_ps_galleryeditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_gallerydate}}}}>31104000|[[Category:Pages with a video gallery checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}}}<!-- | |||
-->{{#if:{{{issuetracker|}}}|{{#tag:li|Issue tracker: {{#ifeq:{{{issuetracker}}}|none|unchecked.[[Category:Pages needing issue tracker scan]]|{{#if:{{#regex:{{{issuetracker}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_issuedate|{{#regex:{{{issuetracker}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_issueeditor|{{#regex:{{{issuetracker}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_issuedate}} by [[User:{{#var:tl_ps_issueeditor}}|{{#var:tl_ps_issueeditor}}]] ([[User talk:{{#var:tl_ps_issueeditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_issuedate}}}}>31104000|[[Category:Pages with issue tracker checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/.. Problems ..\n/}}||{{#tag:li|Problems: <b>missing</b>}}[[Category:Pages missing sections]]}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/.. Configuration ..\n/}}||{{#tag:li|Configuration: <b>missing</b>}}[[Category:Pages missing sections]]}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/.. Version Compatibility ..\n/}}||{{#tag:li|Version Compatibility: <b>missing</b>}}[[Category:Pages missing sections]]}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/.. Testing ..\n/}}||{{#tag:li|Testing: <b>missing</b>}}[[Category:Pages missing sections]]}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/.. Gameplay Videos ..\n/}}||{{#tag:li|Gameplay Videos: <b>missing</b>}}[[Category:Pages missing sections]]}}{{#if:{{#regex:{{#var:tl_ps_pagecontents}}|/Category.((Arcade{{!}}Commodore 64{{!}}GameCube{{!}}MSX{{!}}Neo Geo{{!}}NES{{!}}Nintendo 64{{!}}Sega (Genesis{{!}}Master System){{!}}SNES{{!}}Triforce{{!}}TurboGrafx-16{{!}}Virtual Console{{!}}Wii{{!}}WiiWare) games{{!}}Wii Channels{{!}}Wii U vWii)/}}||{{#tag:li|Page category: <b>missing</b>.}}[[Category:Pages missing sections]]}}}}<!-- | |||
-->{{#if:{{{idcheck|}}}|{{#tag:li|GameIDs: {{#ifeq:{{{idcheck}}}|none|unchecked.[[Category:Pages with unchecked GameIDs]]|{{#if:{{#regex:{{{idcheck}}}|/\[\[User\:.+\{{!}}.+\]\] \(\[\[User talk\:.+\{{!}}talk\]\]\) .+ \(CEST\)/}}|{{#vardefine:tl_ps_iddate|{{#regex:{{{idcheck}}}|/..User.+ \(..User talk.+\) (.+) .CEST./|$1}}}}{{#vardefine:tl_ps_ideditor|{{#regex:{{{idcheck}}}|/..User.(\w+).+ \(..User talk.+\) .+ .CEST./|$1}}}}last checked at {{#var:tl_ps_iddate}} by [[User:{{#var:tl_ps_ideditor}}|{{#var:tl_ps_ideditor}}]] ([[User talk:{{#var:tl_ps_ideditor}}|talk]]).{{#ifexpr:{{#time:xnU|{{CURRENTTIMESTAMP}}}}-{{#time:xnU|{{#var:tl_ps_iddate}}}}>31104000|[[Category:Pages with GameIDs checked over 1 year ago]]}}|<b>bad input</b>.{{#vardefine:tl_ps_mode|error}}}}}}}}}}<!-- | |||
-->{{#if:{{{id1|}}}|{{#vardefine:tl_ps_idcount|2}}{{#while:|{{{id{{#var:tl_ps_idcount}}|}}}|{{#vardefine:tl_ps_idcount|{{#expr:{{#var:tl_ps_idcount}}+1}}}}}}{{#vardefine:tl_ps_idcount|{{#expr:{{#var:tl_ps_idcount}}-1}}}}{{#tag:li|Unconfirmed IDs:{{#tag:ul|{{#while:|{{#ifexpr:{{#var:tl_ps_idcount}}>1|true}}|{{#tag:li|[[{{{id{{#var:tl_ps_idcount}}}}}]]}}{{#vardefine:tl_ps_idcount|{{#expr:{{#var:tl_ps_idcount}}-1}}}}}}{{#tag:li|[[{{{id1}}}]]}}}}}}[[Category:Pages with unconfirmed GameIDs]]}}<!-- | -->{{#if:{{{id1|}}}|{{#vardefine:tl_ps_idcount|2}}{{#while:|{{{id{{#var:tl_ps_idcount}}|}}}|{{#vardefine:tl_ps_idcount|{{#expr:{{#var:tl_ps_idcount}}+1}}}}}}{{#vardefine:tl_ps_idcount|{{#expr:{{#var:tl_ps_idcount}}-1}}}}{{#tag:li|Unconfirmed IDs:{{#tag:ul|{{#while:|{{#ifexpr:{{#var:tl_ps_idcount}}>1|true}}|{{#tag:li|[[{{{id{{#var:tl_ps_idcount}}}}}]]}}{{#vardefine:tl_ps_idcount|{{#expr:{{#var:tl_ps_idcount}}-1}}}}}}{{#tag:li|[[{{{id1}}}]]}}}}}}[[Category:Pages with unconfirmed GameIDs]]}}<!-- | ||
-->}}</td></tr></table>{{#vardefine:tl_ps_visible|true}}|{{#vardefine:tl_ps_mode|error}}}}{{#ifeq:{{#var:tl_ps_mode}}|error|[[Category:Pages calling Page Status template improperly]]}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]</noinclude> | -->}}</td></tr></table>{{#vardefine:tl_ps_visible|true}}|{{#vardefine:tl_ps_mode|error}}}}{{#ifeq:{{#var:tl_ps_mode}}|error|[[Category:Pages calling Page Status template improperly]]}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]</noinclude> |
Revision as of 02:53, 2 September 2017
Because this template needs an article and its discussion page to function, please use Dummy Page for testing instead of creating a sandbox normally. A demonstration can be found at Talk:Dummy Page.
Usage
This template is called with {{Page Status}}
from any article's talk page. All of its functions are aimed at extended maintenance of various pages on the wiki, helping to categorize and prioritize what pages need attention and in what specific way.
Manual section checks
There are many different parameters each dictating their own section of a page which may need review. Depending on the page, these should be included as |parameter = none
to show that the page has that section and add it to applicable categories. When an editor checks parts of an article, that editor should replace the none
in the template with a standard ~~~~
signature to confirm that they did a thorough check of that specific part of the page, effectively saying "this will be fine to keep as-is for at least a year". It can take the following values:
|infobox = none |forumpage = none |description = none |gamelist = none |enhancements = none |videogallery = none |issuetracker = none |idcheck = none
GameIDs
Additionally, any IDs which an editor has failed to confirm by hand can also be added to this template to track them. This is done with the following values:
|id1 = |id2 = |id3 = (...)
After checking the IDs for a page, sign with ~~~~
after idcheck =
to show that they were verified, the same way as before. If one of more of them requires a second opinion, add the full length of it, or as much as you know, to the id# =
.
- There is no limit on the amount of IDs that it can take, as it uses a loop to go through all of them. The only restriction is that there can't be any gaps between the
id#
numbers, and the first must beid1
. For example, to display three IDs, those must be assigned toid1
,id2
, andid3
.
- Since it doesn't actually do anything with the IDs besides link to them and check they exist, you could also type in prefixes here instead of full length ones if desired. Neither Dolphin nor the wiki use 4-digit IDs, however, so it's better practice to replace the missing parts of the ID with
?
s, for example:|id1 = R12E??
.
Flagging
Pages can also be flagged as needing immediate help from an administrator through the use of the |flag =
parameter. Setting this to any value other than whitespace will add the page to Category:Pages flagged for immediate attention, and change the color scheme and icon for the template to try and draw as much attention as possible. This should be used sparingly if at all, and once added should be left up until an administrator decides to remove it.
Automatic checks
This template will automatically check for missing parts of its attached page. These automatic checks are hidden within other parameters to determine what kind of page is being checked, making the template as flexible as possible. Right now, it does the following:
- Checks for an infobox if
infobox =
is set.
- Checks for all the normal game page headers if
issuetracker =
is set.
- Makes sure that platform pages have Category:Platforms.
TODO
The CSS can definitely be improved. The manual check functions that require signatures need support for IP editor signatures (this can be done later though since users without accounts can't even edit right now).
The above documentation is transcluded from Template:Page Status/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |