User:Lariat2301/SandBox2: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:


With subclusion:
With subclusion:
<pre>
<pre>                    <!--    Copy this line:            -->
{{subst:CURRENTDAY}}-{{subst:CURRENTMONTHNAME}}-{{subst:CURRENTTIME}}
{{subst:CURRENTDAY}}-{{subst:CURRENTMONTHNAME}}-{{subst:CURRENTTIME}}
</pre>produces...
</pre>produces...       <!--    And paste it to this line:  -->
11-June-12:11
11-June-12:13


But in the latter case, the actual source of this page has been changed permanently.
But in the latter case, the actual source of this page has been changed permanently.


Try it: edit this page and replace the date-and-time information shown under subclusion with the protected version just above it. Then save the page and reopen it.
<pre>Try it: edit this page and replace the date-and-time information shown under subclusion with the protected version just above it. Then save the page and reopen it.</pre>


The question is: can this be used to automate wiki-readable timestamps?
The question is: can this be used to automate wiki-readable timestamps?


Imagine that a subclusion'd version of the month and date were in a template in such a way that they automatically time-stamped a DangerReport when a user updated it. Comparisons between the 'current' month and date and those so timestamped could be used to automate aging of DangerReports... or at least I think so.
Imagine that a subclusion'd version of the month and date were in a template in such a way that they automatically time-stamped a DangerReport when a user updated it. Comparisons between the 'current' month and date and those so timestamped could be used to automate aging of DangerReports... or at least I think so.

Revision as of 12:13, 11 June 2009

With normal transclusion:

{{CURRENTDAY}}-{{CURRENTMONTHNAME}}-{{CURRENTYEAR}} {{CURRENTTIME}}

produces...

23-December-2024 01:26

With subclusion:

                    <!--    Copy this line:             -->
{{subst:CURRENTDAY}}-{{subst:CURRENTMONTHNAME}}-{{subst:CURRENTTIME}}

produces...

11-June-12:13

But in the latter case, the actual source of this page has been changed permanently.

Try it: edit this page and replace the date-and-time information shown under subclusion with the protected version just above it. Then save the page and reopen it.

The question is: can this be used to automate wiki-readable timestamps?

Imagine that a subclusion'd version of the month and date were in a template in such a way that they automatically time-stamped a DangerReport when a user updated it. Comparisons between the 'current' month and date and those so timestamped could be used to automate aging of DangerReports... or at least I think so.