Template:Diff: Difference between revisions

From Vigyanwiki
Template>AlanBarrett
(Revert to revision 194032435 dated 2008-02-25 22:31:07 by Zetawoof using popups)
Template>AlanBarrett
(documentation moved to Doc subpage (again). Enclose the code in includeonly tags.)
Line 1: Line 1:
<span class="plainlinks">[{{fullurl:{{{page|{{{1|Main Page}}}}}}|oldid={{{oldid|{{{3|}}}}}}{{#ifeq:{{{diff|{{{2|}}}}}}|||&diff={{{diff|{{{2|cur}}}}}}}}}} {{{label|{{{title|{{{4|Last revision of '''{{{page|{{{1|Main Page}}}}}}}}}'''}}}}}}]</span><noinclude>
<includeonly><span class="plainlinks">[{{fullurl:{{{page|{{{1|Main Page}}}}}}|oldid={{{oldid|{{{3|}}}}}}{{#ifeq:{{{diff|{{{2|}}}}}}|||&diff={{{diff|{{{2|cur}}}}}}}}}} {{{label|{{{title|{{{4|Last revision of '''{{{page|{{{1|Main Page}}}}}}}}}'''}}}}}}]</span>
 
</includeonly><noinclude>
==Usage==
{{template doc}}
'''&#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=&#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'''}}
 
;As long as the values do not contain equals signs, you can skip the variable names/numbers.:'''&#123;&#123;diff&#124;'''Main Page'''&#124;'''cur'''&#124;&#124;'''<nowiki>Last change to '''Main Page'''</nowiki>'''&#125;&#125;''' &rarr; {{diff|Main Page|cur||Last change to '''Main Page'''}}
 
[[Category:Internal link templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 20:48, 27 April 2008

Template documentation