|
|
| Line 3: |
Line 3: |
| {| style="width:100%; table-layout:fixed; border-collapse:collapse; margin:0;" | | {| 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;" | | | | style="width:33.33%; text-align:left; vertical-align:middle; padding:0.25em 0;" | |
| ''Previous''<br />
| | {{PatchNav/Prev |
| {{#if:{{{Prev|{{{PrevTitle|}}}}}}|
| | | page = {{{Prev|{{{PrevTitle|}}}}}} |
| '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{{Prev|{{{PrevTitle|}}}}}}]]'''<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;" | | | | 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>
| | {{PatchNav/Current |
| {{#if:{{{publishdate|}}}|
| | | publishdate = {{{publishdate|}}} |
| {{#if: {{#time:U|{{{publishdate}}}}}
| | | blurb = {{{blurb|}}} |
| | {{#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;" | | | | style="width:33.33%; text-align:right; vertical-align:middle; padding:0.25em 0;" | |
| {{#if:{{{Next|{{{NextTitle|}}}}}}| | | {{PatchNav/Next |
| ''Next''<br />
| | | page = {{{Next|{{{NextTitle|}}}}}} |
| '''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{{Next|{{{NextTitle|}}}}}}]]'''<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> | | </div> |
| Line 44: |
Line 21: |
| <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. Shows 'Previous'/'Next' labels and 'End of Activity' when there is no previous page.", | | "description": "Simple prev/current/next navigator. Accepts publishdate/blurb but displays only the date; blurb is stored for later use.", |
| "format": "block",
| |
| "params": { | | "params": { |
| "Prev": { | | "Prev": { "type": "string", "aliases": ["PrevTitle"] }, |
| "label": "Previous Update Title",
| | "publishdate": { "type": "string" }, |
| "description": "Visible text and link target (without the 'Update:' prefix preferred).",
| | "blurb": { "type": "string" }, |
| "type": "string",
| | "Next": { "type": "string", "aliases": ["NextTitle"] } |
| "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"] | | "paramOrder": ["Prev", "publishdate", "blurb", "Next"] |
| } | | } |
| </templatedata> | | </templatedata> |
| | [[Category:Templates]] |
| </noinclude> | | </noinclude> |