Difference between revisions of "Template:Calendar month"

From FollowTheScore
Jump to: navigation, search
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>__NOTOC__ __NOEDITSECTION__
+
<includeonly>__NOTOC__ __NOEDITSECTION__<!--
{{#if:{{{showAll|}}}||
+
-->{{#vardefine:width|{{{width|}}}}}<!--
{{(!}}
+
-->{{#vardefine:noadd|{{{noadd|}}}}}<!--
{{!}}{{CalendarSingle|year={{{year}}}|month={{{month}}}|show_year=yes|basepage={{{basepage}}}}}
+
-->{{#vardefine:nolink|{{{nolink|}}}}}<!--
{{!}}witdh=20{{!}}
+
-->{{#vardefine:purpose|{{{purpose|}}}}}<!--
{{!}}valign=bottom{{!}}
+
-->{{#vardefine:show|{{{show|}}}}}<!--
show [[Special:Call/Calendar month,showAll=true,basepage={{{basepage}}}|all events]]
+
-->{{#vardefine:namespace|{{{namespace|}}}}}
 
+
{|width={{{width|}}} style=margins:0pt
enter '''date and name''' of a '''new''' event: &nbsp;
+
|{{CalendarSingle|year={{{year}}}|month={{{month}}}|show_year=yes|basepage={{{basepage}}}|eventList={{{eventList|}}}}}
 
+
|}
<inputbox>
+
{{#dpl:debug=1
  type=create
+
  |{{#if:{{{namespace|}}}|namespace={{{namespace}}}}}
  buttonlabel=create
+
  |{{#if:{{{purpose|}}}|category={{{purpose}}}}}
  width=25
+
  |notnamespace=Template
  default=YYYY-MM-DD your event
 
  preload=Event template
 
  editintro=Event intro
 
  break=no
 
</inputbox>
 
{{!)}}
 
}}
 
{{#dpl:
 
 
   |category=Events
 
   |category=Events
   |{{#if:{{{showAll|}}}||titleregexp=/({{{year}}}{{!}}YYYY)-{{{month}}}-}}/
+
   |{{#ifeq:{{{eventList|}}}|no|category=does not exist ..}}
 +
  |{{#ifeq:{{{eventList|}}}|all||titlematch={{{year}}}-{{{month}}}-%{{!}}YYYY-{{{month}}}-%{{!}}YYYY-MM-%}}
 
   |include=#Summary,#Participants,#Location
 
   |include=#Summary,#Participants,#Location
 
   |mode=userformat
 
   |mode=userformat
   |resultsheader=There are %PAGES% events planned{{#if:{{{showAll|}}}|| this month}}.¶
+
   |resultsheader=There are %PAGES% events planned{{#ifeq:{{{eventList|}}}|current|&nbsp;this month}}.¶
   |noresultsheader=No events planned so far for this month{{#if:{{{showAll|}}}|| this month}}
+
   |noresultsheader={{#ifeq:{{{eventList|}}}|no||No events planned.¶}}
   |listseparators={¦ class="sortable" ¶!Date / Event name ¶!Event summary ¶!Participants ¶!Location ¶!Categories,¶¦-¶¦<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>
 
</includeonly><noinclude>[[Category:Calendar Templates]]</noinclude>

Latest revision as of 09:23, 20 January 2008