Main Page Categories: Difference between revisions

From Philadelphia.Wiki
Automated upload via Philadelphia.Wiki content pipeline
 
Automated improvements: Fix bold markup inside HTML spans, correct ampersand entity encoding, expand noinclude documentation with usage instructions and TemplateData, add 'See all categories' link, note accessibility improvements for ARIA roles, verify category link targets match actual wiki category names.
 
Line 1: Line 1:
<noinclude>
<noinclude>
'''Main Page Categories''' - Category navigation grid for the main page.
This template provides a category navigation grid for use on the main page of the Philadelphia wiki. It displays eight primary subject categories as styled navigation buttons, allowing readers to browse major topic areas of the encyclopedia directly from the main page.
 
== Usage ==
Transclude this template on the main page using the following syntax:
 
<pre>{{Main Page Categories}}</pre>
 
This template accepts no parameters. All category links and display labels are defined within the template itself. To add, remove, or rename a category button, edit the template directly.
 
== Categories Included ==
The template currently links to the following eight categories: Neighborhoods, Restaurants, History, Landmarks, Museums, Parks, Sports, and Arts and Culture. Before modifying the template, editors should verify that each target category page exists on the wiki, as broken category links will silently fail to display article counts or navigate correctly.
 
== Accessibility Notes ==
The outer container uses a plain <code>div</code> element. Editors maintaining this template should consider adding <code>role="navigation"</code> and <code>aria-label="Browse Philadelphia categories"</code> to the outer div to improve compatibility with screen readers and assistive technologies.
 
== TemplateData ==
<templatedata>
{
  "description": "Displays a category navigation grid for the main page, linking to eight primary subject areas of the Philadelphia wiki.",
  "params": {},
  "format": "block"
}
</templatedata>
 
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><div style="background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 6px; padding: 15px;">
[[Category:Navigation templates]]
</noinclude><includeonly><div role="navigation" aria-label="Browse Philadelphia categories" style="background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 6px; padding: 15px;">
<div style="font-size: 1.1em; font-weight: bold; color: #004C54; margin-bottom: 12px;">Explore Philadelphia</div>
<div style="font-size: 1.1em; font-weight: bold; color: #004C54; margin-bottom: 12px;">Explore Philadelphia</div>
<div style="display: flex; flex-wrap: wrap; gap: 8px;">
<div style="display: flex; flex-wrap: wrap; gap: 8px;">
<span style="background: #004C54; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Neighborhoods|Neighborhoods]]'''</span>
<span style="background: #004C54; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia neighborhoods">[[:Category:Neighborhoods|Neighborhoods]]</span>
<span style="background: #046A38; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Restaurants|Restaurants]]'''</span>
<span style="background: #046A38; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia restaurants">[[:Category:Restaurants|Restaurants]]</span>
<span style="background: #8B4513; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:History|History]]'''</span>
<span style="background: #8B4513; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia history">[[:Category:History|History]]</span>
<span style="background: #4169E1; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Landmarks|Landmarks]]'''</span>
<span style="background: #4169E1; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia landmarks">[[:Category:Landmarks|Landmarks]]</span>
<span style="background: #800020; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Museums|Museums]]'''</span>
<span style="background: #800020; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia museums">[[:Category:Museums|Museums]]</span>
<span style="background: #2F4F4F; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Parks|Parks]]'''</span>
<span style="background: #2F4F4F; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia parks">[[:Category:Parks|Parks]]</span>
<span style="background: #8B0000; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Sports|Sports]]'''</span>
<span style="background: #8B0000; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia sports">[[:Category:Sports|Sports]]</span>
<span style="background: #483D8B; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;">'''[[:Category:Arts and Culture|Arts & Culture]]'''</span>
<span style="background: #483D8B; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9em;" title="Browse articles about Philadelphia arts and culture">[[:Category:Arts and Culture|Arts &amp; Culture]]</span>
</div>
</div>
<div style="margin-top: 10px; font-size: 0.85em;">[[:Special:Categories|See all categories]]</div>
</div></includeonly>
</div></includeonly>

Latest revision as of 02:01, 5 March 2026

This template provides a category navigation grid for use on the main page of the Philadelphia wiki. It displays eight primary subject categories as styled navigation buttons, allowing readers to browse major topic areas of the encyclopedia directly from the main page.

Usage

Transclude this template on the main page using the following syntax:

{{Main Page Categories}}

This template accepts no parameters. All category links and display labels are defined within the template itself. To add, remove, or rename a category button, edit the template directly.

Categories Included

The template currently links to the following eight categories: Neighborhoods, Restaurants, History, Landmarks, Museums, Parks, Sports, and Arts and Culture. Before modifying the template, editors should verify that each target category page exists on the wiki, as broken category links will silently fail to display article counts or navigate correctly.

Accessibility Notes

The outer container uses a plain div element. Editors maintaining this template should consider adding role="navigation" and aria-label="Browse Philadelphia categories" to the outer div to improve compatibility with screen readers and assistive technologies.

TemplateData

Displays a category navigation grid for the main page, linking to eight primary subject areas of the Philadelphia wiki.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified