Difference between revisions of "Template:DisplayTemporarily"
m (trimmed the offending additional space after nowUnix assignment) |
m (Ddd) |
||
Line 17: | Line 17: | ||
--><noinclude><!-- | --><noinclude><!-- | ||
− | --- Cargo Declare statement --- | + | --- Cargo Declare statement ---ddd |
-->{{#cargo_declare: | -->{{#cargo_declare: | ||
_table=DisplayTemporarily | _table=DisplayTemporarily |
Revision as of 21:02, 22 November 2019
This template defines the table "DisplayTemporarily". This table has not been created yet.
Description
Template used to allow a temporary message or information to be displayed on a page, and tracked (for later removal) in the relevant Cargo table.
This allows for temporary exposure of information such as, e.g.:
- Fixboxes/issue sections only relevant for a while after the release of a patch.
- Key points or similar notes about temporary measurements needed, or future events (e.g. service shutdowns) of a game.
Note that the data will also be hidden when previewing the page if the current date is outside of the specified range!
Syntax
{{DisplayTemporarily|from= December 1, 2019 (optional) |to= January 1, 2020 (optional) |data= {{ii}} Online services will be unavailable during the month of December. }}
from
start date of when to display the information. Defaults to January 1, 2019 if omitted (meaning there is no start date).to
end date of when the information should be hidden again. Defaults to January 1, 2030 if omitted (meaning there pretty much is no end date).data
is the data that will be presented between the specified dates.data=
can be omitted, in which case the "first unnamed parameter" of the call will be used instead.
Example
{{DisplayTemporarily|to=2023-10-16|data=Included with {{Store feature|Xbox Game Pass}}.}}
This will show a normal notice up until October 16, 2023 at which point the note will disappear from view the next time the article is purged.