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.) |
Template>Krinkle No edit summary |
||
Line 1: | Line 1: | ||
<span class="plainlinks">[{{#if:{{{page|{{{1|}}}}}} | <span class="plainlinks">[{{#if:{{{page|{{{1|}}}}}} | ||
|{{fullurl:{{{page|{{{1}}}}}}|{{#if:{{{diff|{{{2|}}}}}} | |{{fullurl:{{{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}}}}}}}} |