Template:PatchNav: Difference between revisions
Template page
More actions
No edit summary Tag: wikieditor |
No edit summary Tag: wikieditor |
||
| 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
__NOFACTBOX__
|
Previous |
{{#show: Update: | ?Publish date#ISO }}}} | {{#show: Update: | ?Publish date#ISO }}}} >= {{#time:U}} | ?Publish date }} | ?Publish date }}
}} |
Release date: Unknown }} | Release date: Unknown }} | End of Activity }} |
PatchNav |
{{{publishdate}}}}} >= {{#time:U}} | Upcoming: {{{publishdate}}} | Released: {{{publishdate}}}
}} |
Release date: Unknown }} | Release date: Unknown }} |
{{#if:|
Next |
{{#show: Update: | ?Publish date#ISO }}}} | {{#show: Update: | ?Publish date#ISO }}}} >= {{#time:U}} | ?Publish date }} | ?Publish date }}
}} |
Release date: Unknown }} | Release date: Unknown }} |
|}
__NOFACTBOX__ <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. Shows 'Previous'/'Next' labels and 'End of Activity' when there is no previous page.",
"format": "block",
"params": {
"Prev": {
"label": "Previous Update Title",
"description": "Visible text and link target (without the 'Update:' prefix preferred).",
"type": "string",
"example": "SpiritVale Playtest 0.1.3",
"required": false,
"suggested": true,
"aliases": ["PrevTitle"]
},
"publishdate": {
"label": "Publish Date (Current Page)",
"description": "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.",
"type": "string",
"example": "August 7, 2025",
"required": false,
"suggested": true
},
"Next": {
"label": "Next Update Title",
"description": "Visible text and link target (without the 'Update:' prefix preferred).",
"type": "string",
"example": "SpiritVale Playtest 0.1.4",
"required": false,
"suggested": true,
"aliases": ["NextTitle"]
}
},
"paramOrder": ["Prev", "publishdate", "Next"]
} </templatedata>