Difference between revisions of "Template:Annotation/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Added the word "abbreviations" to make it easier to find this template via search)
 
Line 2: Line 2:
  
 
=== Description ===
 
=== Description ===
The template <code>Annotation</code> is used to avoid excessive use of HTML tags when adding short annotations to specific texts. This works by expanding the text with the following code:  
+
The template <code>Annotation</code> is used to avoid excessive use of HTML tags when adding short annotations to specific texts, such as expanding abbreviations. This template works by expanding the text with the following code:  
  
 
<code><nowiki><span title="Annotated text" style="border-bottom: 1px dotted; cursor: help; white-space: nowrap">Text</span></nowiki></code>
 
<code><nowiki><span title="Annotated text" style="border-bottom: 1px dotted; cursor: help; white-space: nowrap">Text</span></nowiki></code>

Latest revision as of 09:58, 29 November 2022

Description

The template Annotation is used to avoid excessive use of HTML tags when adding short annotations to specific texts, such as expanding abbreviations. This template works by expanding the text with the following code:

<span title="Annotated text" style="border-bottom: 1px dotted; cursor: help; white-space: nowrap">Text</span>

Code

{{Annotation|Text|Annotated text}}

Example

Code:

{{Annotation|20 + 20|The side is reinforced with screens}}

Generated:

20 + 20