hl – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix (code refactor)) |
Lou Montana (talk | contribs) m (Fix) |
||
Line 3: | Line 3: | ||
| {{#pos:{{{c|{{{1}}}}}}|:}}= {{#replace:{{{c|{{{1}}}}}}|:|:}} | | {{#pos:{{{c|{{{1}}}}}}|:}}= {{#replace:{{{c|{{{1}}}}}}|:|:}} | ||
| {{#pos:{{{c|{{{1}}}}}}|#}}= {{#replace:{{{c|{{{1}}}}}}|#|#}} | | {{#pos:{{{c|{{{1}}}}}}|#}}= {{#replace:{{{c|{{{1}}}}}}|#|#}} | ||
| {{#ifexpr: {{#if:{{#pos:{{{c|{{{1}}}}}}|/}}|1|0}} and {{#if:{{#pos:{{{c|{{{1}}}}}}|[<nowiki/>[}}|0|1}}|0}}= | | {{#ifexpr: {{#if:{{#pos:{{{c|{{{1}}}}}}|/}}|1|0}} and {{#if:{{#pos:{{{c|{{{1}}}}}}|[<nowiki/>[}}|0|1}}|0}}= {{#replace:{{{c|{{{1}}}}}}|/|<wbr>/}} | ||
| {{#if:{{#pos:{{{c|{{{1}}}}}}|\}}|0}}= {{#replace:{{{c|{{{1}}}}}}|\|<wbr>\}} | | {{#if:{{#pos:{{{c|{{{1}}}}}}|\}}|0}}= {{#replace:{{{c|{{{1}}}}}}|\|<wbr>\}} | ||
| {{{c|{{{1}}}}}} | | {{{c|{{{1}}}}}} |
Revision as of 14:18, 16 October 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=
Code | Result |
---|---|
{{hl}} | -No content provided- |
{{hl|"AWARE"}} | "AWARE" |
{{hl|oneLongFilePath |
oneLongFilePath |
{{hl|oneLongFilePath |
oneLongFilePath |
{{hl|#test1}} test2 {{hl|#test3}} test4 | #test1 test2 #test3 test4 |
{{hl|:}} a {{hl|:}} b ; test {{hl|test}} ; test {{hl|:test}} ; test: {{hl|test}} |
: a : b
|
* {{hl|:}} * {{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>}} |
|