Template:Change: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Pokechu22
(Use semantic <del> and <ins> tags; add samples)
imported>Pokechu22
m (Use {{Added}} and {{Removed}})
 
(5 intermediate revisions by the same user not shown)
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

Change

{{Change|From|To}}

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

Creation

{{Change||New value}}

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

Deletion

{{Change|Old value}}

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