Template:IsNew: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(susbstitute self updating code)
m (typo)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{#sub:{{{1}}}|0|4}}{{#sub:{{{1}}}|5|2}}{{#sub:{{{1}}}|8|2}} > {{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}} - 10000 |yes|no}}{/includeonly><noinclude>
<includeonly>{{#ifexpr: {{#sub:{{{1}}}|0|4}}{{#sub:{{{1}}}|5|2}}{{#sub:{{{1}}}|8|2}} > {{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}} - 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 20:27, 10 October 2008

Documentation

This template affects the way template NewWork behaves: dates passed as parameter that fall inside this template's date range are validated as "yes", forcing template NewWork to:

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