ArgTitle – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Inline code|" to "{{ic|")
m (Text replacement - "\{\{ArgTitle *\| *([^\|]+) *\| *([1-6]) *\|" to "{{ArgTitle|$2|$1|")
Line 17: Line 17:
|example3= <nowiki>{{ArgTitle|My Title|4}}</nowiki>
|example3= <nowiki>{{ArgTitle|My Title|4}}</nowiki>
|result3= {{ArgTitle|My Title|4}}
|result3= {{ArgTitle|My Title|4}}
|example4= <nowiki>{{ArgTitle|My Title|4|Left}}</nowiki>
|example4= <nowiki>{{ArgTitle|4|My Title|Left}}</nowiki>
|result4= {{ArgTitle|My Title|4|Left}}
|result4= {{ArgTitle|4|My Title|Left}}
|example5= <nowiki>{{ArgTitle|My Title|4||Right}}</nowiki>
|example5= <nowiki>{{ArgTitle|4|My Title||Right}}</nowiki>
|result5= {{ArgTitle|My Title|4||Right}}
|result5= {{ArgTitle|4|My Title||Right}}
|example6= <nowiki>{{ArgTitle|My Title|4|Left|Right}}</nowiki>
|example6= <nowiki>{{ArgTitle|4|My Title|Left|Right}}</nowiki>
|result6= {{ArgTitle|My Title|4|Left|Right}}
|result6= {{ArgTitle|4|My Title|Left|Right}}
}}</noinclude>
}}</noinclude>

Revision as of 00:44, 9 August 2021

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

This template is used on these pages.

Usage

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

  • title: title text
  • level: (Optional, default 2) 1..6 number (number of "=" in wiki wode for title, e.g == title H2 ==)
  • 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|My Title}}

My Title

{{ArgTitle|My Title|4}}

My Title

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

4

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

4

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

4