Difference between revisions of "Template:Log.dpl"

From From The Ashes Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}class="hide"|{{#time:U|{{{date|{{#if:{{#vardefineecho:logdate|{{#regex:{{{%TITLE%}}}|/: .+$/|}}}}|{{#vardefineecho:datefromname|{{#regex:{{#regex:{{#regex:{{#var:logdate}}|/^(\d)[-\/]/|0$1-}}|/[-\/](\d)[-\/]/|-0$1-}}|/-/|/}}}}|now}}}}}}}||{{#ifeq:{{#dplvar:useDates}}|true|class="colon"|class="hide"}}|{{{date|{{#if:{{#var:logdate}}|{{#var:datefromname}}|??/??/????}}}}}||class="hide"|{{{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}}|}}
 +
{{#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}}}~[[{{{%PAGE%}}}|{{#regex:{{{%TITLE%}}}|/^\d.*?-\d.*?-\d.*?: /|}}]]^

Revision as of 21:35, 2 January 2018

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