Template:Diff: Difference between revisions
From Vigyanwiki
Template>Ben (allow diff parm to disappear if not filled in, to let a specific revision be cited without diff if desired.) |
Template>Zetawoof (fixups: more general, less weirdly colored) |
||
Line 1: | Line 1: | ||
<span class="plainlinks">[{{fullurl:{{{page|{{{1|Main Page}}}}}}|oldid={{{oldid|{{{3|}}}}}}{{#ifeq:{{{diff|{{{2|}}}}}}|||&diff={{{diff|{{{2|cur}}}}}}}}}} | <span class="plainlinks">[{{fullurl:{{{page|{{{1|Main Page}}}}}}|oldid={{{oldid|{{{3|}}}}}}{{#ifeq:{{{diff|{{{2|}}}}}}|||&diff={{{diff|{{{2|cur}}}}}}}}}} {{{label|{{{4|Last revision of '''{{{page|{{{1|Main Page}}}}}}'''}}}}}}]</span><noinclude> | ||
==Usage== | |||
'''{{diff|1='''''page'''''|2='''''diff'''''|3='''''oldid'''''|4='''''label'''''}}''' | '''{{diff|1='''''page'''''|2='''''diff'''''|3='''''oldid'''''|4='''''label'''''}}''' | ||
Line 12: | Line 9: | ||
;As long as the values do not contain equals signs, you can skip the variable names/numbers.:'''{{diff|'''Main Page'''|'''cur'''||'''<nowiki>Last change to '''Main Page'''</nowiki>'''}}''' → {{diff|Main Page|cur||Last change to '''Main Page'''}} | ;As long as the values do not contain equals signs, you can skip the variable names/numbers.:'''{{diff|'''Main Page'''|'''cur'''||'''<nowiki>Last change to '''Main Page'''</nowiki>'''}}''' → {{diff|Main Page|cur||Last change to '''Main Page'''}} | ||
</noinclude> | </noinclude> |
Revision as of 02:39, 23 October 2007
Usage
{{diff|1=page|2=diff|3=oldid|4=label}}
- Current default
- {{|1=Main Page|2=|3=|4=Last revision of '''Main Page'''}} → Last revision of Main Page
- You can also use the named variables "page", "diff", "oldid", and "label".
- {{diff|page=Main Page|diff=cur|oldid=|label=Last change to '''Main Page'''}} → Last change to Main Page
- As long as the values do not contain equals signs, you can skip the variable names/numbers.
- {{diff|Main Page|cur||Last change to '''Main Page'''}} → Last change to Main Page