Difference between revisions of "Template:InfoBox"
m (fixed styles: allow small screens) |
(added Expire field (needs testing)) |
||
Line 13: | Line 13: | ||
|Color= | |Color= | ||
|Background= | |Background= | ||
+ | |Expire= | ||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | [[Category:Workaround templates|{{PAGENAME}}]]</noinclude><includeonly> | + | |
− | <div style="border: | + | Where <code>Expire</code> is an optional epoch timestamp when the info box will be hidden |
+ | |||
+ | [[Category:Workaround templates|{{PAGENAME}}]]</noinclude><includeonly>{{#ifexpr: {{{Expire|9999999999}}} - {{#time: xNU }} > 0 |<div style="border: | ||
{{#switch: | {{#switch: | ||
{{lc: | {{lc: | ||
Line 30: | Line 33: | ||
<div style="">{{{Text|}}}</div> | <div style="">{{{Text|}}}</div> | ||
</div> | </div> | ||
− | </includeonly> | + | }}</includeonly> |
Latest revision as of 10:25, 15 November 2018
This is the "Infobox" template. It should be called in the following format:
{{InfoBox |Type={[normal]|alert|featured} |Image= |Title= |Text= |Float={left|right|[none]|inherit} |Clear={left|right|both|[none]|inherit} |Width= |Color= |Background= |Expire= }}
Edit the page to see the template text.
Where Expire
is an optional epoch timestamp when the info box will be hidden