hl – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Template creation)
 
m (Some wiki formatting)
Line 2: Line 2:
|descr= This template displays '''h'''igh'''l'''ighted content - its purpose is to replace {{hl|<tt>}} usage across the wiki. It also adds the page to the [[:Category:hl template usage error|hl template usage error]] category on usage error.
|descr= This template displays '''h'''igh'''l'''ighted content - its purpose is to replace {{hl|<tt>}} usage across the wiki. It also adds the page to the [[:Category:hl template usage error|hl template usage error]] category on usage error.
|param1= c
|param1= c
|descr1= the content to display.<br>If it contains an equal sign {{hl|c= =}}, which '''it should not''' (for inline code, {{Template|ic}} should be used instead):
|descr1= the content to display.<br>If it contains an equal sign {{hl|c= =}}, which '''it should not''' (for inline code, {{hl|<nowiki><syntaxhighlight></nowiki>}}/{{hl|<nowiki><sqf></nowiki>}} should be used instead):
** replace it with {{hl|<nowiki>{{=}}</nowiki>}}
** replace it with {{hl|<nowiki>{{=}}</nowiki>}}
** use {{hl|c= c=}}
** use {{hl|c= c=}}

Revision as of 17:48, 27 July 2022

This template displays highlighted content - its purpose is to replace <tt> usage across the wiki. It also adds the page to the hl template usage error category on usage error.

This template is used on these pages.

Usage

{{hl|c}}

  • c: the content to display.
    If it contains an equal sign =, which it should not (for inline code, <syntaxhighlight>/<sqf> should be used instead):
    • replace it with {{=}}
    • use c=
    • use the MediaWiki trick 1=
Examples
Code Result
{{hl}} -No content provided-
{{hl|"AWARE"}} "AWARE"