Editing Module:Infobox/doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 251: | Line 251: | ||
|- |
|- |
||
| class (optional) |
| class (optional) |
||
| a string with a class to add, or a table of classes to add. |
| a string with a class to add, or a table of classes to add. '''infobox-subheader''' is commonly used. |
||
mw.html:addClass(...) |
mw.html:addClass(...) |
||
|- |
|- |
||
Line 269: | Line 269: | ||
=== 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 |
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>) |