Template:Old version: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Tim Chambers
(fix documentation)
imported>Tim Chambers
(can't figure out why sample is rendering the way it is, so adding a ''mea culpa'')
Line 1: Line 1:
<span class="plainlinks">[{{fullurl:{{{1}}}|oldid={{{2}}}}} {{{3}}}]</span>
<span class="plainlinks">[{{fullurl:article={{{1}}}|oldid={{{2}}}}} wikitext={{{3}}}]</span>
 
<noinclude>
<noinclude>
{{newtemplate
{{newtemplate
|description=Use this as shorthand for citing an old version; also makes it display as internal link.
|description=Use this as shorthand for citing an old version; also makes it display as internal link.
|execution=<pre>
|execution=<nowiki>{{old version|article name|id of old article|wiki text}}</nowiki>
{{old version|article name|id of old article|wiki text}}
|sample=The {{old version|Hewlett-Packard|100479221|first version}} of the [[Hewlett-Packard]] article was created 2009-04-24.
</pre>
 
|sample=The {{old version|Hewlett-Packard|100479238|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.
|caveats=None.
|authors=[[User:Tim Chambers|Tim Chambers]]
|authors=[[User:Tim Chambers|Tim Chambers]]
}}
}}
</noinclude>
</noinclude>

Revision as of 13:13, 25 April 2009

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




Template Description

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

Execution

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

Sample

The wikitext=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