Template:REVISIONMONTHNAME/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(started)
 
imported>Daniel Mietchen
(Undo self; was correct before)
 
(4 intermediate revisions by the same user not shown)
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 the [http://www.mediawiki.org/wiki/Help:Magic_words magic word] <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 [[Template:REVISIONMONTHNAME/doc]] (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}}.

Latest revision as of 16:06, 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 the magic word {{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 Template:REVISIONMONTHNAME/doc (which was last edited on November 30, 2009), this gives November.