Home
Random
Log in
Settings
About Brighter Shores Wiki
Disclaimers
Search
Editing
Module:ProfessionList/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{documentation}} {{Helper module|name=ProfessionList |fname1=currency_cell(amount) |ftype1=<code>amount</code>: number, or nil |fuse1=Returns the HTML to create a table currency cell using <code>module:currency._cell</code>.<br> 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=<code>size</code>: integer |fuse2=Returns the HTML to create a <code>size</code>x1 cell with the text "unknown".<br> Use within :node() |fname3=unknown_value_edit_cell(page,size) |ftype3=<code>page</code>: string, name of page<br> <code>size</code>: integer |fuse3=Returns the HTML to create a <code>size</code>x1 cell with a link to edit the specified page.<br> Use within :node() |fname4=generate_recipe_table(queryString) |ftype4=<code>queryString</code>: string, SMW query<br> <code>screenFunction</code>: function, <code>table > boolean</code> |fuse4=Generates a table of recipes and activities from a Semantic MediaWiki query string and a screening function.<br> <code>queryString</code> is an SMW query, but it only needs to be the selection of pages. Parameters to be returned are chosen by the function.<br> <code>screenFunction</code> is a function which takes one recipe from the search and returns true if that recipe is to be kept, or false if it is to be discarded. Parameters available to the screening function are those present in the Recipe JSON or Activity JSON, as well as the name and image of the page that held the JSON.<br> Pages with multiple recipes or activities will make one entry into the results table for each JSON.<br> The results table entries are the decoded recipe/activity JSONs, parsed through <code>Module:RecipeTreeSearch|main</code> to get the full recipe materials, xp, kp, duration, and costs. Added to these are the name and image of the page that held the JSON.<br> The results table is sorted by recipe/activity level, independent of profession. |fname5=one_column_image_text(sort,materials) |ftype5=<code>sort</code>: string, to sort the multicolumn cell by<br> <code>materials</code>: table, each entry is a name/quantity pair for an item to display |fuse5=Produces 1 cells with multiple lines of text in a standard format to display a list of materials for a recipe.<br> Includes the quantity of each material.<br> Requires that the image of each item is exactly the same as the item name itself.<br> For example: the reagents and bottle to produce a potion. |fname6=two_column_image_text(sort,image,text,link) |ftype6=<code>sort</code>: string, to sort the multicolumn cell by<br> <code>image</code>: string, image name to use, including '''File:''' and '''.png'''<br> <code>text</code>: string, text to display<br> <code>link</code>: string, page to link the image and text to |fuse6=Produces 2 cells in a standard format to display an image and some text, which link to the same page.<br> For example: the image and name of a skill node, but linking to the item they make. |fname7=three_column_image_text(sort,quantity,image,text,link) |ftype7=<code>sort</code>: string, to sort the multicolumn cell by<br> <code>quantity</code>: number, will be displayed with "×" after it<br> <code>image</code>: string, image name to use, including '''File:''' and '''.png'''<br> <code>text</code>: string, text to display<br> <code>link</code>: string, page to link the image and text to |fuse7=Produces 3 cells in a standard format to display a quantity, an image, and some text, which link to the same page.<br> For example: the quantity, image, and name of a recipe product. }}
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Templates used on this page:
Template:Documentation
(
edit
)
Template:Extension DPL
(
edit
)
Template:Helper module
(
edit
)
Module:Array
(
edit
)
Module:Currency
(
edit
)
Module:DPLlua
(
edit
)
Module:DependencyList
(
edit
)
Module:Documentation
(
edit
)
Module:FisherList
(
edit
)
Module:FisherPassiveList
(
edit
)
Module:ForagerList
(
edit
)
Module:ForagerPassiveList
(
edit
)
Module:GathererList
(
edit
)
Module:GathererPassiveList
(
edit
)
Module:Helper module
(
edit
)
Module:MinerList
(
edit
)
Module:MinerPassiveList
(
edit
)
Module:Mw.html extension
(
edit
)
Module:Paramtest
(
edit
)
Module:ProfessionList
(
edit
)
Module:RecipeTreeSearch
(
edit
)
Module:Tooltip
(
edit
)
Module:WoodcutterList
(
edit
)
Module:WoodcutterPassiveList
(
edit
)
Module:Yesno
(
view source
) (semi-protected)
This page is a member of a hidden category:
Category:Pages using DynamicPageList3 parser function