Template:IsNew: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (Protected "Template:IsNew" [edit=sysop:move=sysop])
(try change to 3 month range)
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>
{{#time: Ymd | {{#sub:{{CURRENTTIMESTAMP}}|0|8}} - 3 months}} |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>
Line 7: Line 7:
# Show an icon ([[Image:NewScore.gif]]) in front of the edition's CPDL#
# Show an icon ([[Image:NewScore.gif]]) in front of the edition's CPDL#
# Insert the page in which it is contained in category [[:Category:New works|New works]]
# Insert the page in which it is contained in category [[:Category:New works|New works]]
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 23:21, 18 November 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