Template:LastUpdate: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (test)
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- Start of "LastUpdate" template. This is recursive. --><span style="display:none;">{{subst:LastUpdate/main</includeonly><includeonly>}}</span><!-- End of the template --></includeonly><noinclude>
<noinclude><div style="display:none;"></noinclude>
This presents when the document is updated. When a page is saved, the date and time is recorded in the page.
<includeonly>{{</includeonly><includeonly>subst:</includeonly>LastUpdate/sub}}|<div style="float: right; margin: 3px; padding: 3px; border: 1px solid #6EBE46; background: #FFE; font-size: x-small">Last update : </includeonly>{{<includeonly>subst:</includeonly>CURRENTYEAR}}-{{<includeonly>subst:</includeonly>CURRENTMONTH}}-{{<includeonly>subst:</includeonly>CURRENTDAY}} {{<includeonly>subst:</includeonly>CURRENTTIME}}<includeonly> (UTC)</div>}}
</includeonly>
<noinclude></div></noinclude>
<noinclude>
This presents when the document is updated.
== Usage ==
<!--
Simply, insert <nowiki>{{subst:LastUpdate}}</nowiki>.
-->
== Example ==


{{subst:LastUpdate|<div style="float: right; margin: 3px; padding: 3px; border: 1px solid #6EBE46; background: #FFE; font-size: x-small">Last update : 2008-01-17 13:06 (UTC)</div>}}



The wiki system have all the log and print the last-edited time in the footer. So please use this when you want to have it within the document itself.


== Usage ==
If your page has not yet have this template, please insert <nowiki>{{subst:LastUpdate}}</nowiki> simply. It will be automatically converted into some HTML elements and wiki markup, when the page is first saved. Those are actually functional stuff.


=== Example ===
<!-- Start of "LastUpdate" template. This is recursive. --><span style="display:none;">{{subst:LastUpdate/main|</span><div style="float: right; margin: 3px; padding: 3px; border: 1px solid #6EBE46; background: #FFE; font-size: x-small">Last update : 2008-01-17 16:18 (UTC)</div><span style="display:none;">}}</span><!-- End of the template -->
This is float-right like this;


== Note ==
In fact, this is only a wrapper. If you want to modify this, please check [[:Template:LastUpdate/main]] and [[:Template:LastUpdate/sub]].


[[Category:Template]]
[[Category:OLPC Korea]]
</noinclude>
</noinclude>

Latest revision as of 16:18, 17 January 2008

This presents when the document is updated. When a page is saved, the date and time is recorded in the page.

The wiki system have all the log and print the last-edited time in the footer. So please use this when you want to have it within the document itself.

Usage

If your page has not yet have this template, please insert {{subst:LastUpdate}} simply. It will be automatically converted into some HTML elements and wiki markup, when the page is first saved. Those are actually functional stuff.

Example

{{subst:LastUpdate/main|

Last update : 2008-01-17 16:18 (UTC)

}}

This is float-right like this;

Note

In fact, this is only a wrapper. If you want to modify this, please check Template:LastUpdate/main and Template:LastUpdate/sub.