User talk:Eviand/Classtest: Difference between revisions
Discussion page of User:Eviand/Classtest
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<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;" | ||
| 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;" | | ||
| Line 6: | Line 5: | ||
{{#if:{{{Prev|{{{PrevTitle|}}}}}}| | {{#if:{{{Prev|{{{PrevTitle|}}}}}}| | ||
'''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{{Prev|{{{PrevTitle|}}}}}}]]'''<br /> | '''[[Update:{{{Prev|{{{PrevTitle|}}}}}}|{{{Prev|{{{PrevTitle|}}}}}}]]'''<br /> | ||
{{#if:{{{ | {{#if: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }} | ||
{{#if: {{#time:U|{{{ | | {{#if: {{#time:U|{{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date#ISO }}}} | ||
{{#ifexpr: {{#time:U|{{{ | | {{#ifexpr: {{#time:U|{{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date#ISO }}}} >= {{#time:U}} | ||
| Release date: Unknown }} | | Upcoming: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }} | ||
| Released: {{#show: Update:{{{Prev|{{{PrevTitle|}}}}}} | ?Publish date }} | |||
}} | |||
| Release date: Unknown }} | |||
| Release date: Unknown }} | | Release date: Unknown }} | ||
| '''End of Activity''' }} | | '''End of Activity''' }} | ||
| Line 15: | Line 17: | ||
'''{{PAGENAME}}'''<br /> | '''{{PAGENAME}}'''<br /> | ||
{{#if:{{{publishdate|}}}| | {{#if:{{{publishdate|}}}| | ||
{{#if: {{#time:U|{{{publishdate}}}}} | | {{#if: {{#time:U|{{{publishdate}}}}} | ||
{{#ifexpr: {{#time:U|{{{publishdate}}}}} >= {{#time:U}} | Upcoming: {{{publishdate}}} | Released: {{{publishdate}}} }} | | {{#ifexpr: {{#time:U|{{{publishdate}}}}} >= {{#time:U}} | ||
| Upcoming: {{{publishdate}}} | |||
| Released: {{{publishdate}}} | |||
}} | |||
| Release date: Unknown }} | | Release date: Unknown }} | ||
| Release date: Unknown }} | | Release date: Unknown }} | ||
| Line 23: | Line 28: | ||
''Next''<br /> | ''Next''<br /> | ||
'''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{{Next|{{{NextTitle|}}}}}}]]'''<br /> | '''[[Update:{{{Next|{{{NextTitle|}}}}}}|{{{Next|{{{NextTitle|}}}}}}]]'''<br /> | ||
{{#if:{{{ | {{#if: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }} | ||
{{#if: {{#time:U|{{{ | | {{#if: {{#time:U|{{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date#ISO }}}} | ||
{{#ifexpr: {{#time:U|{{{ | | {{#ifexpr: {{#time:U|{{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date#ISO }}}} >= {{#time:U}} | ||
| Release date: Unknown }} | | Upcoming: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }} | ||
| Released: {{#show: Update:{{{Next|{{{NextTitle|}}}}}} | ?Publish date }} | |||
}} | |||
| Release date: Unknown }} | |||
| Release date: Unknown }} | | Release date: Unknown }} | ||
|}} | |}} | ||
|} | |} | ||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via Semantic MediaWiki (Property:Publish date). First line shows the title; second line shows status (Upcoming/Released) and date. If no previous page, shows 'End of Activity' (not a link).", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
| Line 47: | Line 53: | ||
"suggested": true, | "suggested": true, | ||
"aliases": ["PrevTitle"] | "aliases": ["PrevTitle"] | ||
}, | }, | ||
"publishdate": { | "publishdate": { | ||
"label": "Publish Date (Current Page)", | "label": "Publish Date (Current Page)", | ||
"description": " | "description": "Date for the CURRENT page. If in the future, shows 'Upcoming'; otherwise 'Released'.", | ||
"type": "string", | "type": "string", | ||
"example": "August 7, 2025", | "example": "August 7, 2025", | ||
| Line 71: | Line 70: | ||
"suggested": true, | "suggested": true, | ||
"aliases": ["NextTitle"] | "aliases": ["NextTitle"] | ||
} | } | ||
}, | }, | ||
"paramOrder": ["Prev | "paramOrder": ["Prev", "publishdate", "Next"] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 01:40, 1 October 2025
|
Previous |
Eviand/Classtest |
Previous/current/next navigator for Update: pages. Auto-pulls prev/next dates via Semantic MediaWiki (Property:Publish date). First line shows the title; second line shows status (Upcoming/Released) and date. If no previous page, shows 'End of Activity' (not a link).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Previous Update Title | Prev PrevTitle | Title of the previous update page (without the 'Update:' prefix).
| String | suggested |
| Publish Date (Current Page) | publishdate | Date for the CURRENT page. If in the future, shows 'Upcoming'; otherwise 'Released'.
| String | suggested |
| Next Update Title | Next NextTitle | Title of the next update page (without the 'Update:' prefix).
| String | suggested |