Template:REVISIONMONTHNAME/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(started)
 
imported>Daniel Mietchen
(documentation)
Line 1: Line 1:
<!-- Description of the template. If you don't want a description, remove this section. -->
This [[CZ:Templates|template]] displays the month of the latest revision of a given page as a word. It does so by converting the number delivered by <code><nowiki>{{REVISIONMONTH}}</nowiki></code> into the name of the corresponding month.
<!-- Default text: -->
This is a template I am currently testing.<br />
Documentation or speedydelete to follow in due course (and if I haven't done this within a week from now, please remind me &mdash; thanks!).<br />
[[User:Daniel Mietchen|Daniel Mietchen]] 21:34, 30 November 2009 (UTC)


=== Usage ===
=== Usage ===
Place instructions here.
The month of the last revision of a page can be displayed by placing
Any example code should go in tags like this <code><nowiki>...</nowiki></code>, putting the code where the dots are.
 
=== Example ===
Put an example of the code inside the following tags, where the dots are :
<pre>
<pre>
...
{{REVISIONMONTHNAME}}
</pre>
</pre>
 
on it. For the current page (which was last edited on {{REVISIONMONTHNAME}} {{REVISIONDAY2}}, {{REVISIONYEAR}}), this gives
Now put the same example code here, without the <pre></pre> tags. This time it will be interpreted to give the normal result of including this code on a CZ page.
{{REVISIONMONTHNAME}}.

Revision as of 15:47, 30 November 2009

This template displays the month of the latest revision of a given page as a word. It does so by converting the number delivered by {{REVISIONMONTH}} into the name of the corresponding month.

Usage

The month of the last revision of a page can be displayed by placing

{{REVISIONMONTHNAME}}

on it. For the current page (which was last edited on November 30, 2009), this gives November.