Template:IsNew: Difference between revisions
Jump to navigation
Jump to search
Documentation
m (typo) |
m (added a default value, just in case...) |
||
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|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> | ||
<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> | ||
This template affects the way template [[:Template:NewWork|NewWork]] behaves: dates passed as parameter that fall inside this template's date range are validated as "yes", forcing template NewWork to: | This template affects the way template [[:Template:NewWork|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 | # 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 22:17, 10 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