Difference between revisions of "Template:Calendar month"

From FollowTheScore
Jump to: navigation, search
 
(39 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__ __NOEDITSECTION__
+
<includeonly>__NOTOC__ __NOEDITSECTION__<!--
{|
+
-->{{#vardefine:width|{{{width|}}}}}<!--
|<inputbox>
+
-->{{#vardefine:noadd|{{{noadd|}}}}}<!--
  type=create
+
-->{{#vardefine:nolink|{{{nolink|}}}}}<!--
  buttonlabel=create new Event
+
-->{{#vardefine:purpose|{{{purpose|}}}}}<!--
  width=25
+
-->{{#vardefine:show|{{{show|}}}}}<!--
  default=YYYY/mm/dd my event name
+
-->{{#vardefine:namespace|{{{namespace|}}}}}
  preload=Event template
+
{|width={{{width|}}} style=margins:0pt
  break=no
+
|{{CalendarSingle|year={{{year}}}|month={{{month}}}|show_year=yes|basepage={{{basepage}}}|eventList={{{eventList|}}}}}
</inputbox>
 
 
|}
 
|}
 
+
{{#dpl:debug=1
{{CalendarSingle|year={{{year}}}|month={{{month}}}|show_year=yes|basepage={{{basepage}}}}}
+
  |{{#if:{{{namespace|}}}|namespace={{{namespace}}}}}
 
+
  |{{#if:{{{purpose|}}}|category={{{purpose}}}}}
{{#dpl:category=Events
+
  |notnamespace=Template
   |titlematch={{{year}}}/{{{month}}}/%
+
  |category=Events
   |include=#Summary,#Participants
+
  |{{#ifeq:{{{eventList|}}}|no|category=does not exist ..}}
 +
   |{{#ifeq:{{{eventList|}}}|all||titlematch={{{year}}}-{{{month}}}-%{{!}}YYYY-{{{month}}}-%{{!}}YYYY-MM-%}}
 +
   |include=#Summary,#Participants,#Location
 
   |mode=userformat
 
   |mode=userformat
   |resultsheader=There are %PAGES% events planned this month.
+
   |resultsheader=There are %PAGES% events planned{{#ifeq:{{{eventList|}}}|current|&nbsp;this month}}.
   |noresultsheader=No events planned so far for this month.
+
   |noresultsheader={{#ifeq:{{{eventList|}}}|no||No events planned.¶}}
   |listseparators={| class="wikitable" ¶!Date / Event name ¶!Categories ¶!Event summary ¶!Participants,¶|-¶|<h5>[[%PAGE%]]</h5>¶| %CATLIST%,,¶|}
+
   |listseparators={¦ class="sortable" ¶!Date / Event name ¶!Event summary ¶!Participants ¶!Location ¶!Categories,¶¦-¶¦<h5>[[%PAGE%|%TITLE%]]</h5>,¶¦ %CATLIST%,¶¦}
   |secseparators=¶|
+
   |secseparators=¶¦
 
   |ordermethod=title
 
   |ordermethod=title
 
   |addcategories=true
 
   |addcategories=true
   |order=descending
+
  |shownamespace=no
 +
   |order=ascending
 
}}
 
}}
 
+
</includeonly><noinclude>[[Category:Calendar Templates]]</noinclude>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
 
</includeonly>
 

Latest revision as of 08:23, 20 January 2008