Module:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
infobox |
infobox |
||
:add_row{ |
:add_row{ |
||
{tag='th', content=Infobox.param('name'), class='infobox |
{tag='th', content=Infobox.param('name'), class='infobox-header', colspan='20'}, |
||
} |
} |
||
:add_row{ |
:add_row{ |
||
{tag='td', content=Infobox.param('image'), colspan=' |
{tag='td', content=Infobox.param('image'), class='infobox-image', colspan='20'}, |
||
} |
} |
||
:pad( |
:pad(20) |
||
:add_row{ |
:add_row{ |
||
{tag='td', content=' |
{tag='td', content='Info', class='infobox-subheader', colspan='20'}, |
||
⚫ | |||
} |
} |
||
:pad(20) |
|||
:add_row{ |
:add_row{ |
||
{tag=' |
{tag='th', content='Examine', colspan="6"}, |
||
{tag='td', content=Infobox.param(' |
{tag='td', content=Infobox.param('examine'), colspan="14"}, |
||
} |
|||
:add_row{ |
|||
{tag='th', content='[[Episode]]', colspan="6"}, |
|||
⚫ | |||
} |
} |
||
... |
... |
||
Line 76: | Line 80: | ||
==Functions== |
==Functions== |
||
⚫ | |||
You don't need to do anything about these special parameters, but they may be used as parameters within the Template: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=== Referring to params === |
=== Referring to params === |
||
Each parameter can have a different value for each version. In addition, there are 3 different representations of each value. Therefore, a parameter must be accessed via one of the 3 helper functions: |
Each parameter can have a different value for each version. In addition, there are 3 different representations of each value. Therefore, a parameter must be accessed via one of the 3 helper functions: |
||
Line 94: | Line 114: | ||
| 1000 |
| 1000 |
||
| Value formatted to be saved as an SMW property |
| Value formatted to be saved as an SMW property |
||
⚫ | |||
⚫ | |||
These parameters are handled specially by the module: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|} |
|} |
||