Module:Infobox/doc: Difference between revisions

Getting rid of examples with "examine" that doesn't appear in this game.
(__dump)
(Getting rid of examples with "examine" that doesn't appear in this game.)
 
(One intermediate revision by one other user not shown)
Line 22:
local config = {
infobox_name = 'Scenery',
class = {Infobox.smw_param('episode')}, -- Add css class with episode name to colorize Infobox
}
</syntaxhighlight>
Line 32 ⟶ 33:
parse.name,
parse.image,
{name = 'examinedescription', func = parse.has_content, smw_property = 'ExamineDescription'}, -- Custom param
parse.episode,
...
Line 60 ⟶ 61:
:pad("20")
:add_row{
{tag='th', content='ExamineDescription', colspan="6"},
{tag='td', content=Infobox.param('examinedescription'), colspan="14"},
}
:add_row{
Line 122 ⟶ 123:
</syntaxhighlight>
==== config ====
There are only 23 parameters for config
<syntaxhighlight lang="lua">
local config = {
infobox_name = 'Scenery', -- mandatory unique identifier for css
class = {'CustomClass', Infobox.smw_param('episode')} -- optional, defaults to {}. Adds css classes to infobox table: {'infobox-CustomClass', 'infobox-[default version parameter's value]'}
max_buttons = 6, -- optional, defaults to 6, max number of switch buttons before using a dropdown list instead
}
809

edits