Module:Infobox/doc: Difference between revisions
Common classes are listed (infobox-header, infobox-subheader, infobox-image)
(Add a short explanation of version1, version2, default_version) |
(Common classes are listed (infobox-header, infobox-subheader, infobox-image)) |
||
Line 245:
|-
| class (optional)
| a string with a class to add, or a table of classes to add. '''infobox-header''', '''infobox-subheader'''
mw.html:addClass(...)
|-
Line 263:
=== Infobox:pad(colspan, class) ===
Adds a blank row of padding spanning the given number of columns. Will always add the class '''infobox-padding''', but can optionally add another class:
<syntaxhighlight lang="lua">
infobox:pad("10", class=<class>)
|