Module:ProfessionList/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{{documentation}} {{Helper module|name=ProfessionList |fname1= |ftype1= |fuse1= }}") |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation}} |
{{documentation}} |
||
{{Helper module|name=ProfessionList |
{{Helper module|name=ProfessionList |
||
|fname1= |
|fname1=currency_cell(amount) |
||
|ftype1= |
|ftype1=amount: number, or nil |
||
|fuse1=Returns the HTML to create a table currency cell using module:currency._cell.<br> |
|||
|fuse1= |
|||
If instead it is supplied with nil then a 10x1 cell is created with the text "unknown".<br> |
|||
Use within :node() |
|||
|fname2=unknown_value_cell(size) |
|||
|ftype2=size: integer |
|||
|fuse2=Returns the HTML to create a 'size'x1 cell with the text "unknown".<br> |
|||
Use within :node() |
|||
|fname3=unknown_value_edit_cell(page,size) |
|||
|ftype3=page: string name of page<br>size: integer |
|||
|fuse3=Returns the HTML to create a 'size'x1 cell with a link to edit the specified page.<br> |
|||
Use within :node() |
|||
|fname4=generate_recipe_table(queryString) |
|||
|ftype4=queryString: string |
|||
|fuse4=Generates a table of recipes and activities from a Semantic MediaWiki query string.<br> |
|||
queryString is just a selection of pages, from any combination of SMW properties and categories<br> |
|||
For pages with multiple recipes or activities, will make one entry into the results table for each<br> |
|||
the results table entries are the recipe/activity JSONs, with pageName and pageImage parameters added. |
|||
}} |
}} |