Template:Del

From Dodge Wiki
Revision as of 22:48, 3 February 2009 by Budlight (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}

[edit] Template-info.svg Template documentation

Usage

The templates {{ins}} and {{del}} correct the display of content marked up as inserted or deleted, when that display is improperly line-broken inside block quotations due to a bug documented below.

Syntax

{{ins|text marked as inserted}}

{{del|text marked as deleted}}

These template must be used as inline elements (i.e. inside a paragraph or other block), not as block elements (i.e. not enclosing multiple paragraphs or other blocks). To mark up multiple blocks, use multiple instances.

Rationale

The {{ins}} template and its counterpart {{del}} exist to work around a known bug in the MediaWiki software's handling of the <ins>...</ins> and <del>...</del> [X]HTML elements under certain conditions.

The result of the bug is that the first (and only first) occurrence of either <ins>...</ins> or <del>...</del> inside a <blockquote>...</blockquote> segment (or inside a template, like {{quotation}}, that uses <blockquote>) will be rendered with an inappropriate newline preceding it. It is recommended that all use of <ins> and <del> be replaced with {{ins}} and {{del}} inside block quotations not just the first occurrence (since material in articles can change at any time, and there is no guarantee that the first-occurring case will always remain the first-occurring case).

The workaround is not required for cases of indentation with the ":" wikimarkup style, only for actual block quotations.

The purpose of these elements is to show inserted or deleted text in a passage, such as quotation of a draft document. They may also be used in Wikipedia processes like RFA and AFD by editors to change their comments on issues up for discussion (although some editors prefer <s>...</s> strike-through for deletions, and <s> does not share <del>'s block quotation bug).

Example

This example, with both deleted and inserted material marked up:

Lorem ipsum odionsequip feu enim tionulla commodo elit autat, elit posuere adiamiscinim, inciduipit feugiat dunt aute. {{del|Odionsequip feu enim tionulla commodo elit autat, elit posuere adiamiscinim, inciduipit feugiat dunt aute.}} {{ins|Pretium vendre atinit essequis turpis felis adionsequat alisit uteisi, loris faciduisit duismolobore.}} Pretium vendre atinit essequis turpis felis adionsequat alisit uteisi, loris faciduisit duismolobore.

renders as:

Lorem ipsum odionsequip feu enim tionulla commodo elit autat, elit posuere adiamiscinim, inciduipit feugiat dunt aute. Odionsequip feu enim tionulla commodo elit autat, elit posuere adiamiscinim, inciduipit feugiat dunt aute. Pretium vendre atinit essequis turpis felis adionsequat alisit uteisi, loris faciduisit duismolobore. Pretium vendre atinit essequis turpis felis adionsequat alisit uteisi, loris faciduisit duismolobore.

while when using bare <del> and <ins> markup rather than this template, it mis-renders as:

Lorem ipsum odionsequip feu enim tionulla commodo elit autat, elit posuere adiamiscinim, inciduipit feugiat dunt aute. Odionsequip feu enim tionulla commodo elit autat, elit posuere adiamiscinim, inciduipit feugiat dunt aute. Pretium vendre atinit essequis turpis felis adionsequat alisit uteisi, loris faciduisit duismolobore. Pretium vendre atinit essequis turpis felis adionsequat alisit uteisi, loris faciduisit duismolobore.

(note the undesired line break before the deleted, struck-through material, but that it only happens at the first occurence, with no line break before the inserted, underlined material).

ja:Template:Ins