hl – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix example)
m (Add italic and bold examples)
 
Line 51: Line 51:
<nowiki>* {{hl|:}}</nowiki><br>
<nowiki>* {{hl|:}}</nowiki><br>
<nowiki>* {{hl|: test}}</nowiki><br>
<nowiki>* {{hl|: test}}</nowiki><br>
<nowiki>* ''{{hl|test}}''</nowiki><br>
<nowiki>* '''{{hl|test}}'''</nowiki><br>
<nowiki>* {{hl|[[Template:Link]]}}</nowiki><br>
<nowiki>* {{hl|[[Template:Link]]}}</nowiki><br>
<nowiki>* {{hl|[[Template:Link/Internal]]}}</nowiki><br>
<nowiki>* {{hl|[[Template:Link/Internal]]}}</nowiki><br>
Line 62: Line 64:
* {{hl|:}}
* {{hl|:}}
* {{hl|: test}}
* {{hl|: test}}
* ''{{hl|test}}''
* '''{{hl|test}}'''
* {{hl|[[Template:Link]]}}
* {{hl|[[Template:Link]]}}
* {{hl|[[Template:Link/Internal]]}}
* {{hl|[[Template:Link/Internal]]}}

Latest revision as of 13:19, 18 December 2024

This template displays highlighted content - it replaces <tt> which was used 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"
{{hl|oneLongFilePath/ThatCannotLineBreak/OnMobileOrOtherNonWideScreen/BecauseThereAreNoSpaces/AndGivenFirefoxAndChromeBrowsersHaveADifferentBehaviour/LetsCoverAllTheCases}} oneLongFilePath/ThatCannotLineBreak/OnMobileOrOtherNonWideScreen/BecauseThereAreNoSpaces/AndGivenFirefoxAndChromeBrowsersHaveADifferentBehaviour/LetsCoverAllTheCases
{{hl|oneLongFilePath\ThatCannotLineBreak\OnMobileOrOtherNonWideScreen\BecauseThereAreNoSpaces\AndGivenFirefoxAndChromeBrowsersHaveADifferentBehaviour\LetsCoverAllTheCases}} oneLongFilePath\ThatCannotLineBreak\OnMobileOrOtherNonWideScreen\BecauseThereAreNoSpaces\AndGivenFirefoxAndChromeBrowsersHaveADifferentBehaviour\LetsCoverAllTheCases

{{hl|#test1}} test2 {{hl|#test3}} test4
{{hl|*test1}} test2 {{hl|*test3}} test4
{{hl|:test1}} test2 {{hl|:test3}} test4
{{hl| test1}} test2 {{hl| test3}} test4

#test1 test2 #test3 test4
*test1 test2 *test3 test4
:test1 test2 :test3 test4
test1 test2 test3 test4

{{hl|:}}
a {{hl|:}} b
; test {{hl|test}}
; test {{hl|:test}}
; test: {{hl|test}}
:
a : b
test test
test :test
test
test

* {{hl|:}}
* {{hl|: test}}
* ''{{hl|test}}''
* '''{{hl|test}}'''
* {{hl|[[Template:Link]]}}
* {{hl|[[Template:Link/Internal]]}}
* {{hl|[[Description.ext#CfgSounds]]}}
* {{hl|{{Link|Description.ext#CfgSounds}}}}
* {{hl|{{GVI|arma3|1.00}}}}
* {{hl|<nowiki>{{GVI|arma3|1.00}}</nowiki>}}
* {{hl|c= <nowiki>{{GVI|arma3|1.00}}</nowiki>}}
* {{hl|2&nbsp;km<sup>2</sup>}}