Difference between revisions of "Template:Calendar month"
From FollowTheScore
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>__NOTOC__ __NOEDITSECTION__ | + | <includeonly>__NOTOC__ __NOEDITSECTION__<!-- |
− | {{# | + | -->{{#vardefine:width|{{{width|}}}}}<!-- |
− | {{ | + | -->{{#vardefine:noadd|{{{noadd|}}}}}<!-- |
− | {{!}}{{CalendarSingle|year={{{year}}}|month={{{month}}}|show_year=yes|basepage={{{basepage}}}}} | + | -->{{#vardefine:nolink|{{{nolink|}}}}}<!-- |
− | {{ | + | -->{{#vardefine:purpose|{{{purpose|}}}}}<!-- |
− | {{ | + | -->{{#vardefine:show|{{{show|}}}}}<!-- |
− | + | -->{{#vardefine:namespace|{{{namespace|}}}}} | |
− | + | {|width={{{width|}}} style=margins:0pt | |
− | + | |{{CalendarSingle|year={{{year}}}|month={{{month}}}|show_year=yes|basepage={{{basepage}}}|eventList={{{eventList|}}}}} | |
− | + | |} | |
− | + | {{#dpl:debug=1 | |
− | + | |{{#if:{{{namespace|}}}|namespace={{{namespace}}}}} | |
− | + | |{{#if:{{{purpose|}}}|category={{{purpose}}}}} | |
− | + | |notnamespace=Template | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | }} | ||
− | |||
|category=Events | |category=Events | ||
− | |{{# | + | |{{#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{{# | + | |resultsheader=There are %PAGES% events planned{{#ifeq:{{{eventList|}}}|current| this month}}.¶ |
− | |noresultsheader= | + | |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= | + | |shownamespace=no |
+ | |order=ascending | ||
}} | }} | ||
</includeonly><noinclude>[[Category:Calendar Templates]]</noinclude> | </includeonly><noinclude>[[Category:Calendar Templates]]</noinclude> |