Template:PatchNav/Doc: Difference between revisions
Template page
More actions
Created page with "This template renders a simple '''Previous / Current / Next''' navigator for patch notes and stores Semantic MediaWiki properties on the current page. == Usage == <pre>{{PatchNav|Prev=SpiritVale Playtest 0.3.4|publishdate=2026-02-24|blurb=Short summary of the patch|Next=SpiritVale Playtest 0.4.0}}</pre> == Parameters == {| class="wikitable" ! Parameter !! Description |- | <code>Prev</code> || Previous patch title (page title without namespace). Alias: <code>PrevTitle</..." Tags: Mobile edit Mobile web edit |
m Protected "Template:PatchNav/Doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) Tags: Mobile edit Mobile web edit |
(No difference)
| |
Latest revision as of 04:55, 25 February 2026
This template renders a simple Previous / Current / Next navigator for patch notes and stores Semantic MediaWiki properties on the current page.
Usage
{{PatchNav|Prev=SpiritVale Playtest 0.3.4|publishdate=2026-02-24|blurb=Short summary of the patch|Next=SpiritVale Playtest 0.4.0}}
Parameters
| Parameter | Description |
|---|---|
Prev |
Previous patch title (page title without namespace). Alias: PrevTitle.
|
publishdate |
Date string displayed in the center; also stored as Semantic property Publish date as Y-m-d.
|
blurb |
Optional short summary; stored as Semantic property Patch blurb (not displayed yet).
|
Next |
Next patch title (page title without namespace). Alias: NextTitle.
|
Semantic MediaWiki behavior
- The center column (Template:PatchNav/Current) stores:
Publish date(normalized toY-m-dvia#time)Patch blurb(if provided)
- The left/right columns (Template:PatchNav/Prev / Template:PatchNav/Next) read the target page’s
Publish dateusing#show. - Prev/Next links assume the target pages live in the
Update:namespace (for exampleUpdate:SpiritVale Playtest 0.3.4).
Styling
PatchNav uses the sitewide SV primitives from Common.css:
sv-cardfor the container
A helper class (sv-pnav__grid) is included so Mobile.css can later stack the three columns if desired.
TemplateData
Simple prev/current/next navigator. Accepts publishdate/blurb; publishdate is displayed and stored as SMW Publish date; blurb is stored for later use.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Prev | Prev PrevTitle | no description | String | optional |
| publishdate | publishdate | no description | String | optional |
| blurb | blurb | no description | String | optional |
| Next | Next NextTitle | no description | String | optional |
Internal templates (reference only)
These subtemplates are used internally by PatchNav; their TemplateData was moved here for reference.
{"PatchNav/Current":{"description":"Center column: stores Publish date (Y-m-d) and Patch blurb on the current page; displays the provided date string.","params":{"publishdate":{"type":"string"},"blurb":{"type":"string"}}}}
{"PatchNav/Next":{"description":"Next column. Assumes target is in the Update: namespace.","params":{"page":{"type":"string","description":"Page title without namespace (e.g., SpiritVale Playtest 0.4.0)"}}}}
{"PatchNav/Prev":{"description":"Prev column. Assumes target is in the Update: namespace.","params":{"page":{"type":"string","description":"Page title without namespace (e.g., SpiritVale Playtest 0.3.4)"}}}}