Template:ItemFilterListRow: Difference between revisions
>OmegaK2 mNo edit summary |
>OmegaK2 mNo edit summary |
(No difference)
|
Latest revision as of 08:40, 26 July 2015
Overview
This template creates a single row for use in conjunction with Template:ItemFilterList.
This is also a technical overview - for a detailed description of what those columns are intended for see List_of_item_filters#Overview.
It's important to note that if the template is used incorrectly a script error will be raised; if you read the error it should tell you what went wrong exactly with your usage.
Formatting Arguments
Argument | Valid values | Description |
---|---|---|
type | default, specalized | specalized allows for an extra row. |
Data Arguments
General Arguments
Argument | Required | Types |
---|---|---|
name | ✓
|
All |
release_link | ✓
|
All |
author | ✓
|
All |
release | ✓
|
All |
Description | ✗
|
specalized |
Range Arguments
Each of these arguments only accepts one of the following values; the cell will be formatted accordingly:
yes | major | partial | minor | no |
The numeric equivalent is also allowed, the numeric value will be replaced in the actual display though:
4 | 3 | 2 | 1 | 0 |
Argument | Required |
---|---|
colour | ✓
|
border | ✓
|
font_size | ✓
|
item_hiding | ✓
|
leveling | ✓
|
endgame | ✓
|
vendor_recipes | ✓
|
crafting | ✓
|
In addition to those arguments a note can b:e added for partial arguments. This is intended to explain why support for a specific column is only partial; the description will appear in the footnotes below the table.
The syntax is:
<argument>_note
So for example:
|vendor_recipes_note=does not support chisel recipe
Other Arguments
This last section includes optional arguments. If left out, they default to unknown
Each of these arguments only accepts one of the following values; the cell will be formatted accordingly:
yes | partial | no | unknown |
Argument | Required |
---|---|
customization | ✗
|
filtration_general | ✗
|
filtration_themes | ✗
|
Examples
Base entry, minimal, empty
{{ItemFilterListRow |name = |release_link = |author = |release = |colour = |border = |font_size = |item_hiding = |leveling = |endgame = |vendor_recipes = |crafting = }}
Base entry, optional, empty
{{ItemFilterListRow |name = |release_link = |author = |release = |colour = |border = |font_size = |item_hiding = |leveling = |endgame = |vendor_recipes = |crafting = |customization = |filtration_general = |filtration_themes = }}
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.