Template:IsNew: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
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}} > {{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}} - 10000 |yes|no}}</includeonly><noinclude>
<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

Documentation

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:

  1. Show an icon (NewScore.gif) in front of the edition's CPDL#
  2. Insert the page in which it is contained in category New works