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

From HypertWiki
Jump to navigation Jump to search
(#user needs to be passed at creation time, else it will show the reader as the poster)
(reworked time variable usage)
Line 1: Line 1:
{{#vardefine:date|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}{{#vardefine:time|{{CURRENTTIME}}}}{{#vardefine:timestamp|{{#var:date}} {{#replace:{{#var:time}}|:|.}}
{{#vardefine:date|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}
}}{{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>>}}
{{#vardefine:time|{{CURRENTTIME}}}}
{{blog.post.dyn|user={{#user:}}|timestamp=<<timestamp>>||date={{#var:date}}|time={{#var:time}}|topics-user=<<topics-user>>|topics-global=<<topics-global>>|title=<<posttitle>>|text-above=<<text-above>>|text-below=<<text-below>>}}

Revision as of 17:21, 27 June 2008

{{#vardefine:date|2024-11-24}} {{#vardefine:time|22:13}}{{#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:}}]]

<section begin=text-above /><<text-above>><section end=text-above />

<section begin=text-below /><<text-below>><section end=text-below />

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