Template:Infobox/doc

From Dota 2 Wiki
Jump to: navigation, search
Lua logo.svg
▶️ Swapsies!
This template uses Lua.
Its code can be found under Module:Infobox.

Used to construct basic infoboxes. Templates should invoke the module directly for increased performance.

Copy & Paste[edit]

{{Infobox
<!-- Optional -->
| title-textcolor = 
| title-bgcolor = 
| heading-textcolor = 
| heading-bgcolor = 

<!-- Infobox contents -->
| title = 
| image = 
| heading1 = 
| trait1 = 
| value1 = 
| trait2 = 
| value2 = 
}}
  • The |image= parameter should not include "File:".
    • The image size can be modified through the |image-size= parameter
  • |style= can be used instead of |title-textcolor= and |title-bgcolor= to allow for further customisations.
  • Similarly |heading-style= can be used instead of |heading-textcolor= and |heading-bgcolor=.
  • To have a value (|value#=) span the entire width of the infobox, enter |trait#=fullwidth (Where # is the current number).
    • Custom styles can be used through the |stylevalue#= parameter.
  • Value and trait will automatically be hidden from the inbox, if no value is entered.
  • Headings will only show up if a corresponding trait exists.

Example[edit]

Main infobox
Heading 1
Trait 1:Value 1
Trait 2:Value 2
Heading 3
Trait 3:Value 3