Archive:Template:Trip date: Difference between revisions

From VOC Wiki
Jump to navigation Jump to search
imported>ScottN
No edit summary
imported>Dehike
m Dehike moved page Template:Trip date to Archive:Template:Trip date: Mass moving of pages, see VOCWiki:Wiki cleanup 2014-15
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#expr:{{{1}}} + {{{2}}}*31 + {{{3}}}*31*12}}
{{#ifexpr: {{{1|1}}}+{{{2|1}}}*31+{{{3|2008}}}*31*12 < {{CURRENTDAY}}+{{CURRENTMONTH}}*31+{{CURRENTYEAR}}*31*12 |
 
test1
 
{{#expr:{{CURRENTDAY}}+{{CURRENTMONTH}}*31+{{CURRENTYEAR}}*31*12}}
 
test2
 
{{#expr: {{{1}}} + {{{2}}}*31 + {{{3}}}*31*12 < {{CURRENTDAY}}+{{CURRENTMONTH}}*31+{{CURRENTYEAR}}*31*12}}
 
test3
 
{{#if {{{1}}}+{{{2}}}*31+{{{3}}}*31*12 < {{CURRENTDAY}}+{{CURRENTMONTH}}*31+{{CURRENTYEAR}}*31*12 |
{{Message_box|
{{Message_box|
id =disputed|
id =disputed|
Line 18: Line 6:
message =This is the sign up and organization page for an old trip.  It already happened.  Please do not sign up for it.   
message =This is the sign up and organization page for an old trip.  It already happened.  Please do not sign up for it.   
}}
}}
}}
}}<noinclude>
==Usage==
 
Put this template at the top of your trip organization page.  If the current date is after the date of the trip, the template will display a warning message so people don't sign up for the trip.  If this trip has not yet occurred, the template displays nothing.
 
===Parameters===
 
Parameter 1: day of trip
Parameter 2: month of trip (numeric)
Parameter 3: year of trip
 
===Examples===
 
For a trip on October 21, 2007 use:


test4
<nowiki> {{Trip date|21|10|2007}} </nowiki>
{{trip_date|21|10|2007}}
----
<nowiki>{{trip_date|1|1|2050}}</nowiki>
{{trip_date|1|1|2050}}
----
</noinclude>

Latest revision as of 02:50, 1 October 2014

Old Trip
This is the sign up and organization page for an old trip. It already happened. Please do not sign up for it.

Usage

Put this template at the top of your trip organization page. If the current date is after the date of the trip, the template will display a warning message so people don't sign up for the trip. If this trip has not yet occurred, the template displays nothing.

Parameters

Parameter 1: day of trip Parameter 2: month of trip (numeric) Parameter 3: year of trip

Examples

For a trip on October 21, 2007 use:

{{Trip date|21|10|2007}}

Old Trip
This is the sign up and organization page for an old trip. It already happened. Please do not sign up for it.

{{trip_date|1|1|2050}}