Template:PatchNav: Difference between revisions
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOFACTBOX__ | |||
<div style="border:2px solid #372b54; border-radius:10px; padding:0.5em; width:100%; box-sizing:border-box; background:transparent;"> | <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:100%; table-layout:fixed; border-collapse:collapse; margin:0;" | ||
| Line 4: | Line 5: | ||
''Previous''<br /> | ''Previous''<br /> | ||
{{#if:{{{Prev|{{{PrevTitle|}}}}}}| | {{#if:{{{Prev|{{{PrevTitle|}}}}}}| | ||
'''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{#titleparts:{{{Prev|{{{PrevTitle|}}}}}}|2}}]]'''<br /> | '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{#titleparts:{{{Prev|{{{PrevTitle|}}}}}}|1|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 15: | 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;" | | ||
'''{{ | '''{{#titleparts:{{FULLPAGENAME}}|1|2}}'''<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 27: | Line 28: | ||
{{#if:{{{Next|{{{NextTitle|}}}}}}| | {{#if:{{{Next|{{{NextTitle|}}}}}}| | ||
''Next''<br /> | ''Next''<br /> | ||
'''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{#titleparts:{{{Next|{{{NextTitle|}}}}}}|2}}]]'''<br /> | '''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{#titleparts:{{{Next|{{{NextTitle|}}}}}}|1|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 40: | Line 41: | ||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
__NOFACTBOX__ | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via | "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. Hides 'Update:' in visible labels, uses a rounded transparent box, and shows '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). If | "description": "Title of the previous update page (without the 'Update:' prefix). If 'Update:' is included, it will be hidden in the label.", | ||
"type": "string", | "type": "string", | ||
"example": "SpiritVale Playtest 0.1.3", | "example": "SpiritVale Playtest 0.1.3", | ||
| Line 64: | Line 66: | ||
"Next": { | "Next": { | ||
"label": "Next Update Title", | "label": "Next Update Title", | ||
"description": "Title of the next update page (without the 'Update:' prefix). If | "description": "Title of the next update page (without the 'Update:' prefix). If 'Update:' is included, it will be hidden in the label.", | ||
"type": "string", | "type": "string", | ||
"example": "SpiritVale Playtest 0.1.4", | "example": "SpiritVale Playtest 0.1.4", | ||
| Line 75: | Line 77: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 02:23, 1 October 2025
|
Previous |
' |
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. Hides 'Update:' in visible labels, uses a rounded transparent box, and shows '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 'Update:' is included, 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 'Update:' is included, it will be hidden in the label.
| String | suggested |