Template:Stormforged Cornerstones/doc

Overview
Displays data about all Stormforged Cornerstones or a subset of them based on search parameters and exclusions. There are a few ways the data can be displayed. It is not possible to include regular (non-Stormforged) Cornerstones in the results.

Parameters
All parameters are optional. If no parameters are given, a table of all Stormforged Cornerstones will be displayed, showing their icon and name linking to the Cornerstone's page, descriptions, and prices.

Selection and Exclusion
You may combine the first four parameters to return more Cornerstones. The result will be the union of your selections, without duplicates. Then use  to remove any Cornerstones that are unrelated to your purposes with their ids.

Remember that ids are not visible in the game, so you may need to look them up.

Output Overrides
These parameters allow you to customize the appearance of the results.

No results from search
If you specify parameters intending to select or search for terms, sometimes there is no result. This can be because you misspelled an id, asked for a search term that was not present in any name or description, or excluded every item that was found. In this situation, the template will instead render a plain-text message that nothing was found. (This is the error output regardless of any display overrides.)

Yields:

Selecting Cornerstones by their IDs
Yields:

Yields:

Selecting by upgrade
Note that the regular versions must be shown to see them in the table. Selecting by the upgrade does not automatically show the extra column in the table.

Yields:

Searching names and descriptions
The following example shows searching the same term in both name and description, but you could use either.

Yields:

Skipping Price Columns
Compare the following table with the one above.

Yields:

Showing Cornerstone IDs
Yields:

Hiding descriptions
Yields:

Showing regular versions
Yields:

Custom caption
Yields:

Bulleted
This example reproduces the table above, when searching by name and description, in a list format.

Yields:

Numbered
Yields:

List with IDs
Yields:

Inline Examples
Yields the following, shown in the middle of a paragraph to highlight its usefulness. When you have a settlement profiting significantly from trading, consider investing in Stormforged Cornerstones. If you can spare the cost, they can save your settlement!

Yields the ability to write a reminder that you can upgrade to, while only having to look up one ID!

View templates
This functionality is accomplished through the Wiki_data_model. This Template:Stormforged Cornerstones calls the controller module, which in turn interfaces with the data model modules. The view is handled entirely by these additional templates: