Template:Old version: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Tim Chambers
(No, the bug is in the template. Debugging.)
imported>Tim Chambers
(copying how Template:Bowlingscoresheet does it)
Line 1: Line 1:
<span class="plainlinks">[{{fullurl:{{{1}}}|oldid={{{2}}}}} {{{3}}}]</span>
<span class="plainlinks">[{{fullurl:{{{1}}}|oldid={{{2}}}}} {{{3}}}]</span>
<noinclude>
{{newtemplate
|description=Use this as shorthand for citing an old version; also makes it display as internal link.
|execution=use
<pre>
{{old version|article name|id of old article|wiki text}}
</pre>
|sample=
The {{old version|Hewlett-Packard|100479221|first version}} of the [[Hewlett-Packard]] article was created 2009-04-24.
''Sorry, seems to be a bug in documentation that's causing this sample to break the line and show the text on the rest of the line in <nowiki><pre></nowiki>. But be assured the template has been tested and works fine.''
|caveats= None.
|authors= [[User:Tim Chambers|Tim Chambers]]
}}
</noinclude>

Revision as of 13:20, 25 April 2009

[{{fullurl:{{{1}}}|oldid={{{2}}}}} {{{3}}}]



Template Description

Use this as shorthand for citing an old version; also makes it display as internal link.

Execution

use

{{old version|article name|id of old article|wiki text}}

Sample

The first version

of the Hewlett-Packard article was created 2009-04-24.

Sorry, seems to be a bug in documentation that's causing this sample to break the line and show the text on the rest of the line in <pre>. But be assured the template has been tested and works fine.

Caveats

None.

Authors

Tim Chambers