EveryCRT:Category maintenance: Difference between revisions

Create maintenance page to detect categorization and category page issues (via create-page on MediaWiki MCP Server)
 
Add status overview grid at top of page (via update-page on MediaWiki MCP Server)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
__NOCACHE__
__NOCACHE__
This page helps identify issues with the dynamic brand/type listing system.
<templatestyles src="Template:Maintenance status styles.css" />


== CRT Brand Category Health ==
This page helps identify issues with the dynamic brand/type listing system on the [[Main Page]].


This table compares the count of CRTs with each brand (from semantic property) vs the count in the corresponding category. If these numbers don't match, some pages need to be re-saved to pick up the new auto-categorization.
← Back to [[EveryCRT:Maintenance|Main Maintenance Dashboard]]
 
== Status Overview ==
 
{{#invoke:MaintenanceDashboard|categoryStatus}}
 
''Green = all good, Yellow = needs attention, Red = urgent. Click a card to jump to details.''
 
== Missing Category Pages ==
 
These brands/types are used on CRT or AV device pages but don't have a corresponding category page. '''Create the category page to make them appear in the Main Page listings.'''
 
=== CRT Brands Missing Category Pages ===
 
{{#invoke:CategoryAudit|missingCRTBrands}}
 
=== CRT Types Missing Category Pages ===
 
{{#invoke:CategoryAudit|missingCRTTypes}}
 
=== AV Brands Missing Category Pages ===
 
{{#invoke:CategoryAudit|missingAVBrands}}
 
=== AV Device Types Missing Category Pages ===
 
{{#invoke:CategoryAudit|missingAVTypes}}
 
== Category Health Check ==
 
These tables compare the count of pages with each brand/type property vs the count in the corresponding category. If these numbers don't match, some pages need to be re-saved to pick up the auto-categorization.
 
=== CRT Brands ===


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 18: Line 50:
|}
|}


== CRT Type Category Health ==
=== CRT Types ===


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 32: Line 64:
|}
|}


== AV Brand Category Health ==
=== AV Brands ===


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 46: Line 78:
|}
|}


== AV Device Type Category Health ==
=== AV Device Types ===


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 59: Line 91:
}}
}}
|}
|}
== Missing Category Pages ==
These brands/types have CRT or AV device pages using them, but no corresponding category page exists yet. Create the category page to make them appear in the Main Page listings.
=== CRT Brands Without Category Pages ===
This query finds brands used on CRT pages that don't have a registered category page:
{{#ask:
[[Category:CRT models]]
[[Has brand::+]]
|?Has brand
|format=broadtable
|headers=hide
|link=none
|mainlabel=-
|limit=500
|searchlabel=
}}
''Compare the brands above to the registered CRT brand categories:''
{{#ask:
[[Is CRT brand category::Yes]]
|?Brand name
|format=ul
|link=none
|searchlabel=
}}
=== AV Brands Without Category Pages ===
{{#ask:
[[Category:AV devices]]
[[Has brand::+]]
|?Has brand
|format=broadtable
|headers=hide
|link=none
|mainlabel=-
|limit=500
|searchlabel=
}}
''Compare to registered AV brand categories:''
{{#ask:
[[Is AV brand category::Yes]]
|?Brand name
|format=ul
|link=none
|searchlabel=
}}


== How to Fix Issues ==
== How to Fix Issues ==


=== Pages needing re-save ===
=== Missing category pages ===
If the "property" count is higher than the "category" count, some pages haven't been re-saved since the template was updated. Options:
* '''Manual''': Edit and save each affected page (even a null edit works)
* '''Bot''': Use a bot to perform null edits on all pages in [[Category:CRT models]]
* '''Maintenance script''': Run <code>php maintenance/runJobs.php</code> on the server


=== Missing category pages ===
Create the category page using the appropriate template:
Create the category page using the appropriate template:


'''For CRT brands:'''
{| class="wikitable"
<pre>{{CRT brand category|brand=BrandName}}</pre>
! Type !! Template !! Create at
Create at: <code>Category:BrandName CRTs</code>
|-
| CRT Brand || <code><nowiki>{{CRT brand category|brand=BrandName}}</nowiki></code> || <code>Category:BrandName CRTs</code>
|-
| CRT Type || <code><nowiki>{{CRT type category|type=TypeName}}</nowiki></code> || <code>Category:TypeName</code>
|-
| AV Brand || <code><nowiki>{{AV brand category|brand=BrandName}}</nowiki></code> || <code>Category:BrandName AV devices</code>
|-
| AV Device Type || <code><nowiki>{{AV device type category|type=TypeName}}</nowiki></code> || <code>Category:TypeNames</code> ''(plural)''
|}


'''For CRT types:'''
=== Pages needing re-save (mismatched counts) ===
<pre>{{CRT type category|type=TypeName}}</pre>
Create at: <code>Category:TypeName</code>


'''For AV brands:'''
If the "property" count is higher than the "category" count, some pages haven't been re-saved since the template was updated. Options:
<pre>{{AV brand category|brand=BrandName}}</pre>
Create at: <code>Category:BrandName AV devices</code>


'''For AV device types:'''
* '''Manual''': Edit and save each affected page (even a null edit works)
<pre>{{AV device type category|type=TypeName}}</pre>
* '''Bot''': Use a bot to perform null edits on all pages in [[Category:CRT models]] or [[Category:AV devices]]
Create at: <code>Category:TypeNames</code> (note the plural)
* '''Refresh all''': Use [[Special:SMWAdmin]] to rebuild semantic data


[[Category:Maintenance]]
[[Category:Maintenance]]
[[Category:EveryCRT administration]]
[[Category:EveryCRT administration]]
MediaWiki Appliance - Powered by TurnKey Linux