Module:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Add a short explanation of version1, version2, default_version) |
(Common classes are listed (infobox-header, infobox-subheader, infobox-image)) |
||
Line 245: | Line 245: | ||
|- |
|- |
||
| class (optional) |
| class (optional) |
||
| a string with a class to add, or a table of classes to add. '''infobox-subheader''' |
| a string with a class to add, or a table of classes to add. '''infobox-header''', '''infobox-subheader''' and '''infobox-image''' are commonly used. |
||
mw.html:addClass(...) |
mw.html:addClass(...) |
||
|- |
|- |
||
Line 263: | Line 263: | ||
=== Infobox:pad(colspan, class) === |
=== 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: |
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"> |
<syntaxhighlight lang="lua"> |
||
infobox:pad("10", class=<class>) |
infobox:pad("10", class=<class>) |