Template:PatchNav: Difference between revisions
More actions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
''Previous''<br /> | ''Previous''<br /> | ||
{{#if:{{{Prev|{{{PrevTitle|}}}}}}| | {{#if:{{{Prev|{{{PrevTitle|}}}}}}| | ||
'''[[Update:{{{Prev|{{{PrevTitle|}}}}}}| | '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{{Prev|{{{PrevTitle|}}}}}}]]'''<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 16: | Line 16: | ||
| '''End of Activity''' }} | | '''End of Activity''' }} | ||
| style="width:33.33%; text-align:center; vertical-align:middle; padding:0.25em 0;" | | | style="width:33.33%; text-align:center; vertical-align:middle; padding:0.25em 0;" | | ||
'''{{ | '''{{PAGENAME}}'''<br /><span style="display:none;">{{#if:{{{publishdate|}}}|{{#if:{{#show: {{FULLPAGENAME}} | ?Publish date }}||{{#set: Publish date={{{publishdate}}} }} }} }}</span> | ||
{{#if:{{{publishdate|}}}| | {{#if:{{{publishdate|}}}| | ||
{{#if: {{#time:U|{{{publishdate}}}}} | {{#if: {{#time:U|{{{publishdate}}}}} | ||
| Line 28: | Line 28: | ||
{{#if:{{{Next|{{{NextTitle|}}}}}}| | {{#if:{{{Next|{{{NextTitle|}}}}}}| | ||
''Next''<br /> | ''Next''<br /> | ||
'''[[Update:{{{Next|{{{NextTitle|}}}}}}| | '''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{{Next|{{{NextTitle|}}}}}}]]'''<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 44: | Line 44: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via SMW (Property:Publish date). Self-annotates the current page's date when 'publishdate' is provided. | "description": "Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via SMW (Property:Publish date). Self-annotates the current page's date when 'publishdate' is provided. Shows 'Previous'/'Next' labels and '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": " | "description": "Visible text and link target (without the 'Update:' prefix preferred).", | ||
"type": "string", | "type": "string", | ||
"example": "SpiritVale Playtest 0.1.3", | "example": "SpiritVale Playtest 0.1.3", | ||
| Line 66: | Line 66: | ||
"Next": { | "Next": { | ||
"label": "Next Update Title", | "label": "Next Update Title", | ||
"description": " | "description": "Visible text and link target (without the 'Update:' prefix preferred).", | ||
"type": "string", | "type": "string", | ||
"example": "SpiritVale Playtest 0.1.4", | "example": "SpiritVale Playtest 0.1.4", | ||
Revision as of 02:26, 1 October 2025
|
Previous |
PatchNav |
Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via SMW (Property:Publish date). Self-annotates the current page's date when 'publishdate' is provided. Shows 'Previous'/'Next' labels and 'End of Activity' when there is no previous page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Previous Update Title | Prev PrevTitle | Visible text and link target (without the 'Update:' prefix preferred).
| 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 | Visible text and link target (without the 'Update:' prefix preferred).
| String | suggested |