Difference between revisions of "Template:Log.dpl"

From From The Ashes Wiki
Jump to: navigation, search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}{{#regex:{{{%TITLE%}}}|/: .+$/|}}{{#vardefineecho:logdate| }}***{{#vardefineecho:year|{{#explode:{{#var:logdate}}|-|2}} }}****{{#ifeq:{{#dplvar:useDates}}|true|class="colon"|style="display:none;"}}|{{{date|{{#ifeq:{{#len:{{#var:year}}}}|4|{{#explode:logdate|-|0}}/{{#explode:logdate|-|1}}/{{#var:year}}|??/??/????}} }}}||class="logtime"|{{{time|00:00 EST}}}||{{#ifeq:{{#dplvar:useDates}}|true||* }}[[{{{%PAGE%}}}|{{#regex:{{{%TITLE%}}}|/^\d.*?-\d.*?-\d.*?: /|}}]]
+
{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}{{#vardefine:title|{{#regex:{{{%TITLE%}}}|/^\d.*?-\d.*?-\d.*?: /|}}}}
 +
{{#time:U|{{{date|{{#if:{{#vardefineecho:logdate|{{#regex:{{{%TITLE%}}}|/: .+$/|}}}}|{{#vardefineecho:datefromname|{{#regex:{{#regex:{{#regex:{{#var:logdate}}|/^(\d)[-\/]/|0$1-}}|/[-\/](\d)[-\/]/|-0$1-}}|/-/|/}}}}|now}}}}} {{{time|}}}}}~{{{date|{{#if:{{#var:logdate}}|{{#var:datefromname}}|??/??/????}}}}}~{{{time|00:00 EST}}}~{{{summary|{{#var:title}}}}}~{{{%PAGE%}}}~{{#var:title}}^

Latest revision as of 00:26, 3 January 2018

Error: Invalid time.~{{{%TITLE%}}}~00:00 EST~{{{%TITLE%}}}~{{{%PAGE%}}}~{{{%TITLE%}}}^