|
Tags: Mobile edit Mobile web edit |
| (9 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <div style="border:2px solid #372b54; border-radius:10px; padding:0.5em; width:100%; box-sizing:border-box; background:transparent;"> | | __NOFACTBOX__ |
| {| style="width:100%; table-layout:fixed; border-collapse:collapse; margin:0;"
| | <div class="sv-card sv-pnav" style="float:none;width:100%;max-width:700px;margin:1em auto;padding:.65em .75em;box-sizing:border-box;"><div class="sv-pnav__grid" style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:.5em;align-items:center;"><div class="sv-pnav__col sv-pnav__prev" style="text-align:left;">{{PatchNav/Prev|page={{{Prev|{{{PrevTitle|}}}}}}}}</div><div class="sv-pnav__col sv-pnav__current" style="text-align:center;">{{PatchNav/Current|publishdate={{{publishdate|}}}|blurb={{{blurb|}}}}}</div><div class="sv-pnav__col sv-pnav__next" style="text-align:right;">{{PatchNav/Next|page={{{Next|{{{NextTitle|}}}}}}}}</div></div></div> |
| | style="width:33.33%; text-align:left; vertical-align:middle; padding:0.25em 0;" |
| |
| ''Previous''<br />
| |
| {{#if:{{{Prev|{{{PrevTitle|}}}}}}|
| |
| '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{#titleparts:{{{Prev|{{{PrevTitle|}}}}}}|2}}]]'''<br />
| |
| {{#if: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }}
| |
| | {{#if: {{#time:U|{{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date#ISO }}}}
| |
| | {{#ifexpr: {{#time:U|{{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date#ISO }}}} >= {{#time:U}}
| |
| | Upcoming: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }}
| |
| | Released: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }}
| |
| }}
| |
| | Release date: Unknown }}
| |
| | Release date: Unknown }}
| |
| | '''End of Activity''' }}
| |
| | 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: {{#time:U|{{{publishdate}}}}}
| |
| | {{#ifexpr: {{#time:U|{{{publishdate}}}}} >= {{#time:U}}
| |
| | Upcoming: {{{publishdate}}}
| |
| | Released: {{{publishdate}}}
| |
| }}
| |
| | Release date: Unknown }}
| |
| | Release date: Unknown }}
| |
| | style="width:33.33%; text-align:right; vertical-align:middle; padding:0.25em 0;" |
| |
| {{#if:{{{Next|{{{NextTitle|}}}}}}|
| |
| ''Next''<br />
| |
| '''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{#titleparts:{{{Next|{{{NextTitle|}}}}}}|2}}]]'''<br />
| |
| {{#if: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }}
| |
| | {{#if: {{#time:U|{{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date#ISO }}}}
| |
| | {{#ifexpr: {{#time:U|{{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date#ISO }}}} >= {{#time:U}}
| |
| | Upcoming: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }}
| |
| | Released: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }}
| |
| }}
| |
| | Release date: Unknown }}
| |
| | Release date: Unknown }}
| |
| |}}
| |
| |}
| |
| </div> | |
| <noinclude> | | <noinclude> |
| <templatedata>
| | {{/Doc}} |
| { | | [[Category:Templates]] |
| "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",
| |
| "params": {
| |
| "Prev": {
| |
| "label": "Previous Update Title",
| |
| "description": "Title of the previous update page (without the 'Update:' prefix). If someone includes 'Update:', it will be hidden in the label.",
| |
| "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": "Title of the next update page (without the 'Update:' prefix). If someone includes 'Update:', it will be hidden in the label.",
| |
| "type": "string",
| |
| "example": "SpiritVale Playtest 0.1.4",
| |
| "required": false,
| |
| "suggested": true,
| |
| "aliases": ["NextTitle"]
| |
| }
| |
| },
| |
| "paramOrder": ["Prev", "publishdate", "Next"]
| |
| }
| |
| </templatedata>
| |
| __NOFACTBOX__
| |
| </noinclude> | | </noinclude> |