Template:PatchNav: Difference between revisions
More actions
Created page with "<div style="border:2px solid #372b54; border-radius:10px; padding:0.5em; width:100%; box-sizing:border-box; background:transparent;"> {| style="width:100%; table-layout:fixed; border-collapse:collapse; margin:0;" | style="width:33.33%; text-align:left; vertical-align:middle; padding:0.25em 0;" | ''Previous''<br /> {{#if:{{{Prev|{{{PrevTitle|}}}}}}| '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{{Prev|{{{PrevTitle|}}}}}}]]'''<br /> {{#if: {{#show: Update:{{{Prev|{{{PrevTitle|}..." |
No edit summary |
||
| Line 4: | Line 4: | ||
''Previous''<br /> | ''Previous''<br /> | ||
{{#if:{{{Prev|{{{PrevTitle|}}}}}}| | {{#if:{{{Prev|{{{PrevTitle|}}}}}}| | ||
'''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{{Prev|{{{PrevTitle|}}}}}}]]'''<br /> | '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{#titleparts:{{{Prev|{{{PrevTitle|}}}}}}|2}}]]'''<br /> | ||
{{#if: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }} | {{#if: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }} | ||
| {{#if: {{#time:U|{{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date#ISO }}}} | | {{#if: {{#time:U|{{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date#ISO }}}} | ||
| Line 27: | Line 27: | ||
{{#if:{{{Next|{{{NextTitle|}}}}}}| | {{#if:{{{Next|{{{NextTitle|}}}}}}| | ||
''Next''<br /> | ''Next''<br /> | ||
'''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{{Next|{{{NextTitle|}}}}}}]]'''<br /> | '''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{#titleparts:{{{Next|{{{NextTitle|}}}}}}|2}}]]'''<br /> | ||
{{#if: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }} | {{#if: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }} | ||
| {{#if: {{#time:U|{{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date#ISO }}}} | | {{#if: {{#time:U|{{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date#ISO }}}} | ||
| Line 39: | Line 39: | ||
|} | |} | ||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via Semantic MediaWiki (Property:Publish date). Self-annotates the current page's Publish date from the 'publishdate' parameter if not already set. | "description": "Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via Semantic MediaWiki (Property:Publish date). Self-annotates the current page's Publish date from the 'publishdate' parameter if not already set. Shows 'Previous'/'Next' labels, hides the 'Update:' prefix in visible link text, and displays 'End of Activity' when there is no previous page.", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
"Prev": { | "Prev": { | ||
"label": "Previous Update Title", | "label": "Previous Update Title", | ||
"description": "Title of the previous update page (without the 'Update:' prefix).", | "description": "Title of the previous update page (without the 'Update:' prefix). If someone includes 'Update:', it will be hidden in the label.", | ||
"type": "string", | "type": "string", | ||
"example": "SpiritVale Playtest 0.1.3", | "example": "SpiritVale Playtest 0.1.3", | ||
| Line 65: | Line 64: | ||
"Next": { | "Next": { | ||
"label": "Next Update Title", | "label": "Next Update Title", | ||
"description": "Title of the next update page (without the 'Update:' prefix).", | "description": "Title of the next update page (without the 'Update:' prefix). If someone includes 'Update:', it will be hidden in the label.", | ||
"type": "string", | "type": "string", | ||
"example": "SpiritVale Playtest 0.1.4", | "example": "SpiritVale Playtest 0.1.4", | ||
| Line 76: | Line 75: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 02:14, 1 October 2025
|
Previous |
PatchNav |
Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via Semantic MediaWiki (Property:Publish date). Self-annotates the current page's Publish date from the 'publishdate' parameter if not already set. Shows 'Previous'/'Next' labels, hides the 'Update:' prefix in visible link text, and displays 'End of Activity' when there is no previous page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Previous Update Title | Prev PrevTitle | Title of the previous update page (without the 'Update:' prefix). If someone includes 'Update:', it will be hidden in the label.
| String | suggested |
| Publish Date (Current Page) | publishdate | Human-readable date for the current page (e.g., 'August 7, 2025'). Used to set SMW Property:Publish date if not already set, and to show Upcoming/Released.
| String | suggested |
| Next Update Title | Next NextTitle | Title of the next update page (without the 'Update:' prefix). If someone includes 'Update:', it will be hidden in the label.
| String | suggested |