Difference between revisions of "Template:Change"

From wiki.vg
Jump to navigation Jump to search
(less obnoxious “removed” text)
(Use semantic <del> and <ins> tags; add samples)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<s style="background-color: #f4cccc;">{{{1}}}</s>}}{{#if:{{{2|}}}|{{#if:{{{1|}}}|&#x20;}}<span style="background-color: #d9ead3;">{{{2}}}</span>}}</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 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.
 +
 
 +
== Usage ==
 +
 
 +
=== Change ===
 +
 
 +
<code><nowiki>{{Change|From|To}}</nowiki></code>
 +
 
 +
{{Change|From|To}}
 +
 
 +
=== Creation ===
 +
 
 +
<code><nowiki>{{Change||New value}}</nowiki></code>
 +
 
 +
{{Change||New value}}
 +
 
 +
=== Deletion ===
 +
 
 +
<code><nowiki>{{Change|Old value}}</nowiki></code>
 +
 
 +
{{Change|Old value}}
 +
 
 +
</noinclude>

Revision as of 17:25, 16 December 2016

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}}

From To

Creation

{{Change||New value}}

New value

Deletion

{{Change|Old value}}

Old value