ArgTitle – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<tt>([^ ]+)<\/tt>" to "{{hl|c= $1}}")
m (Some wiki formatting)
Line 4: Line 4:
|descr= Defines a wiki title (e.g {{hl|c= === Title ===}})
|descr= Defines a wiki title (e.g {{hl|c= === Title ===}})
|param1= level
|param1= level
|descr1= (Optional, default 2) 1..6 number (number of "{{=}}" in wiki wode for title, e.g {{ic|<nowiki>== title H2 ==</nowiki>}})
|descr1= (Optional, default 2) 1..6 number (number of "{{=}}" in wiki wode for title, e.g <syntaxhighlight lang="html+handlebars" inline>== title H2 ==</syntaxhighlight>)
|param2= title
|param2= title
|descr2= title text
|descr2= title text

Revision as of 17:54, 27 July 2022

Defines a wiki title (e.g === Title ===)

This template is used on these pages.

Usage

{{ArgTitle|level|title|left|right}}

  • level: (Optional, default 2) 1..6 number (number of "=" in wiki wode for title, e.g == title H2 ==)
  • title: title text
  • left: (Optional, default empty) any text that should be on the left of the title text (usually {{GVI}} or {{Icon}})
  • right: (Optional, default empty) any text that should be on the right of the title text (usually {{GVI}} or {{Icon}})
Examples
Code Result
{{ArgTitle}} -no title defined!-
{{ArgTitle|4}} -no title defined!-
{{ArgTitle|4|My Title}}

My Title

{{ArgTitle|4|My Title|Left}}
Left

My Title

{{ArgTitle|4|My Title||Right}}
Right

My Title

{{ArgTitle|4|My Title|Left|Right}}
Left
Right

My Title