Template:Diff: Difference between revisions

From Vigyanwiki
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.)
m (36 revisions imported from alpha:Template:Diff)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span class="plainlinks">[{{#if:{{{page|{{{1|}}}}}}
<span class="plainlinks">[{{#if:{{{title|{{{page|{{{1|}}}}}}}}}
  |{{fullurl:{{{page|{{{1}}}}}}|{{#if:{{{diff|{{{2|}}}}}}
  |{{fullurl:{{{title|{{{page|{{{1}}}}}}}}}|{{#if:{{{diff|{{{2|}}}}}}
   |diff={{{diff|{{{2}}}}}}&
   |diff={{trim|{{{diff|{{{2}}}}}}}}&
  }}oldid={{{oldid|{{{3|}}}}}}}}
  }}oldid={{trim|{{{oldid|{{{3|}}}}}}}}}}
  |{{SERVER}}{{SCRIPTPATH}}/index.php?title={{#if:{{{diff|{{{2|}}}}}}
  |{{SERVER}}{{SCRIPTPATH}}/index.php?title={{#if:{{{diff|{{{2|}}}}}}
   |&diff={{trim|{{{diff|{{{2}}}}}}}}
   |&diff={{trim|{{{diff|{{{2}}}}}}}}

Latest revision as of 09:20, 6 April 2023

[1]

Template documentation