Template:Diff: Difference between revisions

From Vigyanwiki
Template>Ben
(create template {{diff}} based on newly updated template {{diff-two)), to allow divergence)
 
Template>Ben
(allow diff parm to disappear if not filled in, to let a specific revision be cited without diff if desired.)
Line 1: Line 1:
<span class="plainlinks">[{{fullurl:{{{page|{{{1|Main Page}}}}}}|diff={{{diff|{{{2|cur}}}}}}&oldid={{{oldid|{{{3|}}}}}}}} <span style="color:#002bb8">{{{label|{{{4|Last change to '''Main Page'''}}}}}}</span>]</span><noinclude>
<span class="plainlinks">[{{fullurl:{{{page|{{{1|Main Page}}}}}}|oldid={{{oldid|{{{3|}}}}}}{{#ifeq:{{{diff|{{{2|}}}}}}|||&diff={{{diff|{{{2|cur}}}}}}}}}} <span style="color:#002bb8">{{{label|{{{4|Last revision of '''Main Page'''}}}}}}</span>]</span><noinclude>




Line 7: Line 7:
'''&#123;&#123;diff&#124;1='''''page'''''&#124;2='''''diff'''''&#124;3='''''oldid'''''&#124;4='''''label'''''&#125;&#125;'''
'''&#123;&#123;diff&#124;1='''''page'''''&#124;2='''''diff'''''&#124;3='''''oldid'''''&#124;4='''''label'''''&#125;&#125;'''


;Current default:'''&#123;&#123;&#124;1='''Main Page'''&#124;2='''cur'''&#124;3=&#124;4='''<nowiki>Last change to '''Main Page'''</nowiki>'''&#125;&#125;''' &rarr; {{diff|1=Main Page|2=cur|3=|4=Last change to '''Main Page'''}}
;Current default:'''&#123;&#123;&#124;1='''Main Page'''&#124;2=&#124;3=&#124;4='''<nowiki>Last revision of '''Main Page'''</nowiki>'''&#125;&#125;''' &rarr; {{diff|1=Main Page|2=|3=|4=Last revision of '''Main Page'''}}


;You can also use the named variables "page", "diff", "oldid", and "label".:'''&#123;&#123;diff&#124;page='''Main Page'''&#124;diff='''cur'''&#124;oldid=&#124;label='''<nowiki>Last change to '''Main Page'''</nowiki>'''&#125;&#125;''' &rarr; {{diff|page=Main Page|diff=cur|oldid=|label=Last change to '''Main Page'''}}
;You can also use the named variables "page", "diff", "oldid", and "label".:'''&#123;&#123;diff&#124;page='''Main Page'''&#124;diff='''cur'''&#124;oldid=&#124;label='''<nowiki>Last change to '''Main Page'''</nowiki>'''&#125;&#125;''' &rarr; {{diff|page=Main Page|diff=cur|oldid=|label=Last change to '''Main Page'''}}

Revision as of 08:00, 28 March 2007

Last revision of Main Page


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