Шаблон:Hl

Материал из WOG Wiki
Перейти к: навигация, поиск

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{{#if:c | |c}}{{#if: | |{{{param2}}}}}{{#if: | |{{{param3}}}}}{{#if: | |{{{param4}}}}}{{#if: | |{{{param5}}}}}}} {{#if:c|

  • c{{#if:the content to display.
    If it contains an equal sign =, which it should not (for inline code, {{ic}} should be used instead):
    • replace it with {{=}}
    • use c=
    • use the MediaWiki trick 1=|: the content to display.
      If it contains an equal sign =, which it should not (for inline code, {{ic}} should be used instead):
    • replace it with {{=}}
    • use c=
    • use the MediaWiki trick 1=}}

}}{{#if:|

  • {{{param2}}}{{#if:|: }}

}}{{#if:|

  • {{{param3}}}{{#if:|: }}

}}{{#if:|

  • {{{param4}}}{{#if:|: }}

}}{{#if:|

  • {{{param5}}}{{#if:|: }}

}}{{#if:|

  • {{{param6}}}{{#if:|: }}

}}{{#if:|

  • {{{param7}}}{{#if:|: }}

}}{{#if:|

  • {{{param8}}}{{#if:|: }}

}}{{#if:|

  • {{{param9}}}{{#if:|: }}

}}{{#if:|

  • {{{param10}}}{{#if:|: }}

}}

{{#if:{{hl}}{{hl|"AWARE"}} |

{{#if: {{hl}} }} {{#if: {{hl|"AWARE"}} }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }}
Examples
Code Result
{{hl}} -No content provided-{{#ifeq:ШАБЛОН|TEMPLATE }}
{{hl|"AWARE"}} "AWARE"

}}

{{#ifeq: ШАБЛОН:HL | TEMPLATE:DOC/TEMPLATE | | }}