Jump to content

Template:Change: Difference between revisions

From WikiVG
imported>Pokechu22
Use semantic <del> and <ins> tags; add samples
imported>Pokechu22
m Use {{Added}} and {{Removed}}
 
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<del style="background-color: #f4cccc;">{{{1}}}</del>}}{{#if:{{{2|}}}|{{#if:{{{1|}}}|&#x20;}}<ins style="background-color: #d9ead3;">{{{2}}}</ins>}}</includeonly><noinclude>This template is used to denote changes on the [[Pre-release protocol]] article. Use the first parameter for removed text, and the second parameter for added text.
<includeonly>{{#if:{{{1|}}}|<del {{Removed}}>{{{1}}}</del>}}{{#if:{{{2|}}}|{{#if:{{{1|}}}|&#x20;}}<ins {{Added}}>{{{2}}}</ins>}}</includeonly><noinclude>This template is used to denote changes on the [[Pre-release protocol]] article. Use the first parameter for removed text, and the second parameter for added text.


== Usage ==
== Usage ==

Latest revision as of 21:13, 26 June 2018

This template is used to denote changes on the Pre-release protocol article. Use the first parameter for removed text, and the second parameter for added text.

Usage[edit]

Change[edit]

{{Change|From|To}}

{{#if:From|From}}{{#if:To|{{#if:From| }}To}}

Creation[edit]

{{Change||New value}}

{{#if:|}}{{#if:New value|{{#if:| }}New value}}

Deletion[edit]

{{Change|Old value}}

{{#if:Old value|Old value}}{{#if:|{{#if:Old value| }}{{{2}}}}}