Template:Diff: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>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.
Ookami (talk | contribs)
m 35 revisions imported
 
(2 intermediate revisions by 2 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 05:01, 3 September 2020

[1]