Template:Diff: Difference between revisions

From Vigyanwiki
Template>Mike V
m (Changed protection level of Template:Diff: allowing template editors to edit ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite)))
Template>Krinkle
(The "page" logic branch uses "fullurl" which performs url encoding and ensures the link stays together. The other branch however produces raw wikitext. Use {{trim}} to ensure the link doesn't break early into the label value.)
Line 4: Line 4:
  }}oldid={{{oldid|{{{3|}}}}}}}}
  }}oldid={{{oldid|{{{3|}}}}}}}}
  |{{SERVER}}{{SCRIPTPATH}}/index.php?title={{#if:{{{diff|{{{2|}}}}}}
  |{{SERVER}}{{SCRIPTPATH}}/index.php?title={{#if:{{{diff|{{{2|}}}}}}
   |&diff={{{diff|{{{2}}}}}}
   |&diff={{trim|{{{diff|{{{2}}}}}}}}
  }}&oldid={{{oldid|{{{3|}}}}}}
  }}&oldid={{trim|{{{oldid|{{{3|}}}}}}}}
}}{{#ifeq:{{{diffonly|}}}|yes|&diffonly=1}} {{{label|{{{4|}}}}}}]</span><noinclude>
}}{{#ifeq:{{{diffonly|}}}|yes|&diffonly=1}} {{{label|{{{4|}}}}}}]</span><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 22:29, 11 June 2015

[1]

Template documentation