Difference between revisions of "Template:SiteNotification"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
|example1 = <nowiki>{{SiteNotification|Hardcore Season 8|The [[Hardcore Season 8|8th Season of the Hardcore League]] is currently active, and will continue until 9:00 AM Eastern (-4 GMT) on Wednesday, July 19th!}}</nowiki> | |example1 = <nowiki>{{SiteNotification|Hardcore Season 8|The [[Hardcore Season 8|8th Season of the Hardcore League]] is currently active, and will continue until 9:00 AM Eastern (-4 GMT) on Wednesday, July 19th!}}</nowiki> | ||
|example1output = {{SiteNotification|Hardcore Season 8|The [[Hardcore Season 8|8th Season of the Hardcore League]] is currently active, and will continue until 9:00 AM Eastern (-4 GMT) on Wednesday, July 19th!}} | |example1output = {{SiteNotification|Hardcore Season 8|The [[Hardcore Season 8|8th Season of the Hardcore League]] is currently active, and will continue until 9:00 AM Eastern (-4 GMT) on Wednesday, July 19th!}} | ||
|example2 = <nowiki>{{SiteNotification|Year of the Dragon - February|This months free giveaway is the [[Dragon Lord]] Archetype. You have until March 26th, 2024 to collect from [[Xatheral]] in the [[Hall of Heroes (Eberron)|Hall of Heroes]]||3/26/2024 23:59:59}}</nowiki> | |||
|example2output = {{SiteNotification|Year of the Dragon - February|This months free giveaway is the [[Dragon Lord]] Archetype. You have until March 26th, 2024 to collect from [[Xatheral]] in the [[Hall of Heroes (Eberron)|Hall of Heroes]]||3/26/2024 23:59:59}} | |||
|parameter1name=Title | |parameter1name=Title | ||
|parameter1description=The title of the event | |parameter1description=The title of the event | ||
|parameter2name=Description | |parameter2name=Description | ||
|parameter2description=The description to tell the users about what is | |parameter2description=The description to tell the users about what is happening | ||
|parameter3name=Start Date Time | |||
|parameter3description=The time that this starts | |||
|parameter4name=Expiration Date Time | |||
|parameter4description=The time that this will get removed. | |||
}} | }} | ||
</noinclude><onlyinclude><table style="background-color: black; border: solid 1px white;color:white;" class="fullwidth"><tr><td class="center big">{{{1}}}</td></tr><tr><td style="padding:5px">{{{2}}}</td></tr></table></onlyinclude> | </noinclude><onlyinclude>{{#dplvar:set|noticeinclude|true}}{{#if: {{{3|}}}|{{#ifexpr: {{#time: U | now}} < {{#time: U | {{{3}}}}}|{{#dplvar:set|noticeinclude|false}}}}}}{{#if: {{{4|}}}|{{#ifexpr: {{#time: U | now}} > {{#time: U | {{{4}}}}}|{{#dplvar:set|noticeinclude|false}}}}}}{{#ifeq: {{#dplvar:noticeinclude}}|false||<table style="background-color: black; border: solid 1px white;color:white;" class="fullwidth"><tr><td class="center big">{{{1}}}</td></tr><tr><td style="padding:5px">{{{2}}}</td></tr></table>}}{{#dplvar:set|noticeinclude|}}</onlyinclude> |
Latest revision as of 01:51, 28 February 2024
SiteNotification[edit]
This template is used in the SiteNotice page to include special events (i.e. Hardcore, free quest codes, etc)
Example Usage | |||
{{SiteNotification|Hardcore Season 8|The [[Hardcore Season 8|8th Season of the Hardcore League]] is currently active, and will continue until 9:00 AM Eastern (-4 GMT) on Wednesday, July 19th!}} |
| ||
{{SiteNotification|Year of the Dragon - February|This months free giveaway is the [[Dragon Lord]] Archetype. You have until March 26th, 2024 to collect from [[Xatheral]] in the [[Hall of Heroes (Eberron)|Hall of Heroes]]||3/26/2024 23:59:59}} |
Usage[edit]
{{SiteNotification|(Title)|(Description)|(Start Date Time)|(Expiration Date Time)}}
Parameter Documentation | |
Title | The title of the event |
Description | The description to tell the users about what is happening |
Start Date Time | The time that this starts |
Expiration Date Time | The time that this will get removed. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}} |
{{{2}}} |