Difference between revisions of "Template:Calendar link"

From FollowTheScore
Jump to: navigation, search
m
 
(49 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#ifeq:{{#dpl:category=Events|titlematch={{{year}}}/{{{month}}}/{{{day}}}%|mode=userformat|resultsheader=%PAGES%}}|0|{{{day}}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day={{{day}}}}}}}
+
{{#dpl:debug=0
 +
|{{#if:{{#var:namespace}}|namespace={{#var:namespace}}}}
 +
|category=Events
 +
|{{#if:{{#var:purpose}}|category={{#var:purpose}}}}
 +
|mode=userformat
 +
|titlematch={{{year}}}-{{{month}}}-{{{day}}}%{{!}}YYYY-{{{month}}}-{{{day}}}%{{!}}YYYY-MM-{{{day}}}%
 +
|ordermethod=title
 +
|replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/,
 +
|noresultsheader=valign=top{{!}}[[Special:Call/create Event,prefix={{{year}}}-{{{month}}}-{{{day}}},namespace={{#var:namespace}}|'''{{{day}}}''']]<br>\n
 +
|{{#if:{{#var:noadd}}|noresultsheader=valign=top{{!}}'''{{{day}}}'''<br>\n}}
 +
|format=valign=top{{!}}[[Special:Call/create Event&#44;prefix={{{year}}}-{{{month}}}-{{{day}}}&#44;namespace={{#var:namespace}}|'''{{{day}}}''']]<br>,<small>[[%PAGE%{{!}}%TITLE%]]</small>,<br>\n
 +
|{{#if:{{#var:noadd}}|format=valign=top{{!}}'''{{{day}}}'''<br>,<small>[[%PAGE%{{!}}%TITLE%]]</small>,<br>\n}}
 +
|{{#if:{{#var:show}}|include={{#var:show}}}}
 +
|order=descending
 +
|{{#if:{{#var:nolink}}|count=1}}
 +
|{{#if:{{#var:nolink}}|format=,[[#%PAGE%|'''{{{day}}}''']],}}
 +
|{{#if:{{#var:nolink}}|noresultsheader={{{day}}}}}
 +
}}
 +
<noinclude>[[Category:Calendar Templates]]</noinclude>

Latest revision as of 12:15, 10 December 2007

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#var:purpose}}' for parameter 'category'.

{{{day}}}