ArgTitle – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add right argument and default values)
m (add rightArgument usage sample's parameter)
Line 5: Line 5:


== Usage ==
== Usage ==
<code><nowiki>{{ArgTitle|title|titleLevel|leftArgument}}</nowiki></code>
<code><nowiki>{{ArgTitle|title|titleLevel|leftArgument|rightArgument}}</nowiki></code>
* <tt>title</tt>: title text
* <tt>title</tt>: title text
* <tt>titleLevel</tt>: (Optional, default 2) 1..6 number (number of "=" in wiki code for title, e.g {{Inline code|<nowiki>== title H2 ==</nowiki>}})
* <tt>titleLevel</tt>: (Optional, default 2) 1..6 number (number of "=" in wiki code for title, e.g {{Inline code|<nowiki>== title H2 ==</nowiki>}})

Revision as of 19:25, 17 May 2020

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

Usage

{{ArgTitle|title|titleLevel|leftArgument|rightArgument}}

  • title: title text
  • titleLevel: (Optional, default 2) 1..6 number (number of "=" in wiki code for title, e.g == title H2 ==)
  • leftArgument: (Optional, default empty) any text that should be on the left of the title text (usually GVI or EffArg)
  • rightArgument: (Optional, default empty) any text that should be on the right of the title text (usually GVI or EffArg)
Examples
Code Result
{{ArgTitle}}
{{ArgTitle|My Title}}

My Title

{{ArgTitle|My Title|4}}

My Title

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

My Title

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

My Title

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

My Title