Template:IsNew: Difference between revisions
Jump to navigation
Jump to search
Documentation
m (added a default value, just in case...) |
(shorten code, using CURRENTTIMESTAMP) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexpr: {{#sub:{{{1|1900-01-01}}}|0|4}}{{#sub:{{{1|1900-01-01}}}|5|2}}{{#sub:{{{1|1900-01-01}}}|8|2}} > {{ | <includeonly>{{#ifexpr: {{#sub:{{{1|1900-01-01}}}|0|4}}{{#sub:{{{1|1900-01-01}}}|5|2}}{{#sub:{{{1|1900-01-01}}}|8|2}} > | ||
{{#sub:{{CURRENTTIMESTAMP}}|0|8}} - 10000 |yes|no}}</includeonly><noinclude> | |||
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | <div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | ||
<center><big>'''Documentation'''</big></center> | <center><big>'''Documentation'''</big></center> |
Revision as of 13:22, 11 October 2008
This template affects the way template NewWork behaves: dates passed as parameter that fall inside this template's date range (currently one year) are validated as "yes", forcing template NewWork to:
- Show an icon () in front of the edition's CPDL#
- Insert the page in which it is contained in category New works