Template:Diff: Difference between revisions
From All Skies Encyclopaedia
imported>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.) |
imported>Edokter (Add title= to easy copy/paste of diff links) |
||
(One intermediate revision by one other user 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}}}}}}}} |