ArgTitle – Template
| Lou Montana (talk | contribs) m (add rightArgument usage sample's parameter) | Lou Montana (talk | contribs)  m (Remove soon-to-be non-existent template link) | ||
| Line 8: | Line 8: | ||
| * <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>}}) | ||
| * <tt>leftArgument</tt>: (Optional, default empty) any text that should be on the left of the title text (usually  | * <tt>leftArgument</tt>: (Optional, default empty) any text that should be on the left of the title text (usually {{Template|GVI}} or {{Template|Icon}}) | ||
| * <tt>rightArgument</tt>: (Optional, default empty) any text that should be on the right of the title text (usually  | * <tt>rightArgument</tt>: (Optional, default empty) any text that should be on the right of the title text (usually {{Template|GVI}} or {{Template|Icon}}) | ||
| {| class="wikitable" | {| class="wikitable" | ||
Revision as of 00:40, 26 January 2021
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 {{Icon}})
- rightArgument: (Optional, default empty) any text that should be on the right of the title text (usually {{GVI}} or {{Icon}})
| 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 | 
