Difference between revisions of "Template:Blog.post.gen"

From Issuepedia
Jump to navigation Jump to search
(3 separate chrono fields: date, time, timestamp; also, this handling of internal vars seems more proper)
(#user needs to be passed at creation time, else it will show the reader as the poster)
Line 1: Line 1:
 
{{#vardefine:date|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}{{#vardefine:time|{{CURRENTTIME}}}}{{#vardefine:timestamp|{{#var:date}} {{#replace:{{#var:time}}|:|.}}
 
{{#vardefine:date|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}{{#vardefine:time|{{CURRENTTIME}}}}{{#vardefine:timestamp|{{#var:date}} {{#replace:{{#var:time}}|:|.}}
}}{{blog.post.dyn|date={{#var:date}}|time={{#var:time}}|when={{#var:timestamp}}|topics-user=<<topics-user>>|topics-global=<<topics-global>>|title=<<posttitle>>|text-above=<<text-above>>|text-below=<<text-below>>}}
+
}}{{blog.post.dyn|user={{#user:}}|date={{#var:date}}|time={{#var:time}}|when={{#var:timestamp}}|topics-user=<<topics-user>>|topics-global=<<topics-global>>|title=<<posttitle>>|text-above=<<text-above>>|text-below=<<text-below>>}}

Revision as of 01:57, 25 June 2008

{{#vardefine:date|2024-11-23}}{{#vardefine:time|14:27}}{{#vardefine:timestamp|{{#var:date}} {{#var.time}} }}{{#vardefine:keylist|}}{{#vardefine:date|{{#var:date}}}}{{#vardefine:timestamp|{{{timestamp}}}}}{{#vardefine:topics-user|<<topics-user>>}}{{#vardefine:topics-global|<<topics-global>>}}{{#vardefine:title|<<posttitle>>}}

<<posttitle>>

Posted on [[:category:{{#var:date}}|{{#var:date}}]] at {{#var:time}} UTC by [[User:{{#user:}}|{{#user:}}]]

<<text-above>>

<<text-below>>

  • [[user:{{#user:}}|{{#user:}}]] Categories: {{#xploop:{{#var:topics-user}}| [[:category:{{#user:}}/$s$|$s$]]}}
  • Global Categories: {{#xploop:{{#var:topics-global}}| $s$}}