ArgTitle – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Fix parameters order)
m (Text replacement - "<tt>([^ ]+)<\/tt>" to "{{hl|c= $1}}")
Line 2: Line 2:
{{#switch: {{{1}}} |1= = |#default|2= == |3= === |4= ==== |5= ===== |6= ======}} {{{2}}} {{#switch: {{{1}}} |1= = |#default|2= == |3= === |4= ==== |5= ===== |6= ======}}
{{#switch: {{{1}}} |1= = |#default|2= == |3= === |4= ==== |5= ===== |6= ======}} {{{2}}} {{#switch: {{{1}}} |1= = |#default|2= == |3= === |4= ==== |5= ===== |6= ======}}
</div>|-no title defined!-}}</includeonly><noinclude>__NOTOC__{{Doc/Template
</div>|-no title defined!-}}</includeonly><noinclude>__NOTOC__{{Doc/Template
|descr= Defines a wiki title (e.g <tt>=== Title ===</tt>)
|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 {{ic|<nowiki>== title H2 ==</nowiki>}})

Revision as of 11:34, 16 November 2021

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