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|}}}}}}|{{#titleparts:{{{Prev|{{{PrevTitle|}}}}}}|1|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 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;" | | ||
'''{{#titleparts:{{FULLPAGENAME}}|1|2}}'''<br /><span style="display:none;">{{#if:{{{publishdate|}}}|{{#if:{{#show: {{FULLPAGENAME}} | ?Publish date }}||{{#set: Publish date={{{publishdate}}} }} }} }}</span> | '''{{#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 28: | Line 28: | ||
{{#if:{{{Next|{{{NextTitle|}}}}}}| | {{#if:{{{Next|{{{NextTitle|}}}}}}| | ||
''Next''<br /> | ''Next''<br /> | ||
'''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{#titleparts:{{{Next|{{{NextTitle|}}}}}}|1|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 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. Hides 'Update:' in visible labels | "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 the 'Update:' prefix in visible labels and shows 'End of Activity' when there is no previous page.", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
Revision as of 02:25, 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 the 'Update:' prefix in visible labels 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 |