Template:HubHeader: Difference between revisions
Template page
More actions
No edit summary |
(No difference)
|
Revision as of 01:33, 18 March 2026
Title Text
Subtitle Text
HubHeader
Displays the full header block for project and tutorial hub pages. Includes a title/subtitle/description area, optional live count badge, toolbar row with a Submit button and navigation links, and a metadata bar showing default license and live activity (populated by MediaWiki:Gadget-projects.js or MediaWiki:Gadget-tutorials.js).
Usage β Projects hub
{{HubHeader
| title = Audio Projects
| subtitle = Music, sound design, and anything audio
| description = Any openly licensed audio project β sound FX, music, field recordings, podcasts, etc.
| category = Projects/Audio
| count_label = Audio Projects
| submit_form = Submit_Project
| hub_path = Projects/Audio
| hub_type = ProjectCard
| license = CC-BY-SA 4.0
}}
Usage β Tutorials hub
{{HubHeader
| title = Community Tutorials
| subtitle = Step-by-step guides written by the community
| description = Browse tutorials by topic below.
| category = Tutorials
| count_label = Tutorials
| submit_form = Submit_Tutorial
| hub_path = Tutorials
| hub_type = TutorialCard
| license = CC-BY-SA 4.0
}}
Parameters
title- Main heading. Defaults to "Title Text".
subtitle- Orange uppercase subtitle. Defaults to "Subtitle Text".
description- Optional body paragraph below the subtitle.
category- If provided, shows a live count badge using
PAGESINCATEGORYfor this category name (e.g.Projects/Audio). count_label- Label above the count badge. Defaults to "Projects".
submit_form- If provided, adds an orange "+ Submit" button linking to
Special:FormStart/FormName. UseSubmit_ProjectorSubmit_Tutorial. hub_path- Path used for the "Full Index" button (
Special:PrefixIndex/hub_path). Defaults to current page name. hub_type- Template name used for the "Templates" toolbar button. Defaults to "Project".
license- Default license shown in the metadata bar. Defaults to "CC-BY-SA 4.0".
Notes
- "Last Submission" and "Activity" in the metadata bar are populated by JavaScript gadgets β they show "Loading..." until the gadget runs.
- The toolbar links to Project:Submission Guidelines, Project:Licenses, the page's talk page, and Project:Community β create these pages to avoid red links.