Template:Stormforged Cornerstones/doc

From Against the Storm Official Wiki
< Template:Stormforged Cornerstones
Revision as of 22:03, 2 May 2024 by Aeredor (talk | contribs) (Added template list to the bottom)

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.

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 exclude 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.

Parameter Description
id A list of IDs of Stormforged Cornerstones, separated by commas. Since IDs are unique, each matched ID adds exactly one Cornerstone to the table. Will not throw an error if an ID is invalid.
name Searches names for this string, and adds Cornerstones with any part of their names matching that string to the table.
description Searches descriptions for this string, and adds Cornerstones with any part of their descriptions matching that string to the table.
upgrades_from_id The regular Cornerstone with this id may be upgraded into a Stormforged Cornerstone, which will be selected to display in the table. If there is a match, adds one Stormforged Cornerstone (not the regular version) with that id to the table, since ids are unique.
exclude A list of IDs, separated by commas, that will be excluded from the display. Will not throw an error if an ID is invalid.

Output Overrides

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

Parameter Description
caption If you want to override the default caption for the table, you can specify it here.
skip_prices Use skip_prices=skip if you want a table with fewer columns that only lists the icons, names, and their descriptions--without their prices at the Forsaken Altar.
show_regular Use show_regular=show if you want to add a last column to the table that shows the regular version that each Cornerstone is upgraded from, if any.
display For use when including these Cornerstones inside other tables or within paragraphs, the display parameter condenses the output to just the links to the pages on each Cornerstone:
  • Use display=list to convert the table layout into a basic list. Only the standard links will show, and with small icons.
  • Use display=inline to convert the table into an inline list of links, without icons.
list_type When displaying as a list instead of a table, you can specify list_type=number to show the list as a numbered list instead of the default, list_type=bullet.

Errors

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.)

{{Stormforged Cornerstones
|id=There is no ID like this
}}

Yields: No matching Stormforged Cornerstones found.

Table Examples

Selecting Cornerstones by their IDs

{{Stormforged Cornerstones
|id=[Altar] Fedora Hat
}}

Yields:

1 Stormforged Cornerstones with ID '[Altar] Fedora Hat'
Name Description Price Price when upgrading
meta resources villagers meta resources villagers
Old Fedora Hat (Stormforged) Old Fedora Hat (Stormforged) "An old inscription on the bottom of the hat says: "Fortune and glory". Increases the chance of doubling event loot by 75% (this doesn't apply to perks and blueprints)." 48 2 48 0



{{Stormforged Cornerstones
|id=[Altar] Fedora Hat, [Altar] Alarm Bells
}}

Yields:

2 Stormforged Cornerstones with selected IDs
Name Description Price Price when upgrading
meta resources villagers meta resources villagers
Alarm Bells (Stormforged) Alarm Bells (Stormforged) The Brass Order's newest invention. All workers have a +33% higher chance of producing double yields for every 100% points of expected Corruption per minute in the Ancient Hearth. 48 2 48 0
Old Fedora Hat (Stormforged) Old Fedora Hat (Stormforged) "An old inscription on the bottom of the hat says: "Fortune and glory". Increases the chance of doubling event loot by 75% (this doesn't apply to perks and blueprints)." 48 2 48 0


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.

{{Stormforged Cornerstones
|upgrades_from_id=Fedora Hat
}}

Yields:

1 Stormforged Cornerstones upgraded from 'Fedora Hat'
Name Description Price Price when upgrading
meta resources villagers meta resources villagers
Old Fedora Hat (Stormforged) Old Fedora Hat (Stormforged) "An old inscription on the bottom of the hat says: "Fortune and glory". Increases the chance of doubling event loot by 75% (this doesn't apply to perks and blueprints)." 48 2 48 0


Searching names and descriptions

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

{{Stormforged Cornerstones
|name=trade
|description=trade
}}

Yields:

5 Stormforged Cornerstones named 'trade' and mentioning 'trade'
Name Description Price Price when upgrading
meta resources villagers meta resources villagers
Export Contract (Stormforged) Export Contract (Stormforged) Increases the production yield of packs of goods by +100%. Gain 2 additional active trade route slots. 40 2 40 0
Stormwalker Training (Stormforged) Stormwalker Training (Stormforged) Your villagers learn how to travel the wilderness from the very best - the Royal Stormwalkers. Trade route caravans travel faster by 40%. Traders will arrive 33% quicker. 40 2 40 0
Tightened Belt (Stormforged) Tightened Belt (Stormforged) Travel cost on trade routes is reduced by 3. Doesn't apply to routes already in progress. This effect scales along with the quantity of goods exported. 40 2 40 0
Trade Logs (Stormforged) Trade Logs (Stormforged) Detailed notes on different traders and their wares. Gain 2 additional active trade route slots. Traders will arrive +33% quicker and have +1 more cornerstones on sale. 40 2 40 0
Trade Negotiations (Stormforged) Trade Negotiations (Stormforged) "Trade routes are worth 3 more <sprite name="[valuable] amber"> Amber. Doesn't apply to routes already in progress. This effect scales along with the quantity of goods exported." 40 2 40 0


Skipping Price Columns

Compare the following table with the one above.

{{Stormforged Cornerstones
|name=trade
|description=trade
|skip_prices=skip
}}

Yields:

5 Stormforged Cornerstones named 'trade' and mentioning 'trade'
Name Description
Export Contract (Stormforged) Export Contract (Stormforged) Increases the production yield of packs of goods by +100%. Gain 2 additional active trade route slots.
Stormwalker Training (Stormforged) Stormwalker Training (Stormforged) Your villagers learn how to travel the wilderness from the very best - the Royal Stormwalkers. Trade route caravans travel faster by 40%. Traders will arrive 33% quicker.
Tightened Belt (Stormforged) Tightened Belt (Stormforged) Travel cost on trade routes is reduced by 3. Doesn't apply to routes already in progress. This effect scales along with the quantity of goods exported.
Trade Logs (Stormforged) Trade Logs (Stormforged) Detailed notes on different traders and their wares. Gain 2 additional active trade route slots. Traders will arrive +33% quicker and have +1 more cornerstones on sale.
Trade Negotiations (Stormforged) Trade Negotiations (Stormforged) "Trade routes are worth 3 more <sprite name="[valuable] amber"> Amber. Doesn't apply to routes already in progress. This effect scales along with the quantity of goods exported."


Showing regular versions

Compare the following table with the one above.

{{Stormforged Cornerstones
|upgrades_from_id=Fedora Hat
|show_regular=show
}}

Yields:

1 Stormforged Cornerstones upgraded from 'Fedora Hat'
Name Description Price Price when upgrading Upgrades from
meta resources villagers meta resources villagers
Old Fedora Hat (Stormforged) Old Fedora Hat (Stormforged) "An old inscription on the bottom of the hat says: "Fortune and glory". Increases the chance of doubling event loot by 75% (this doesn't apply to perks and blueprints)." 48 2 48 0 Old Fedora Hat Old Fedora Hat

Custom caption

{{Stormforged Cornerstones
|caption=Every Stormforged Cornerstone in the game
}}

Yields:

Every Stormforged Cornerstone in the game
Name Description Upgrades from
Advanced Fuel (Stormforged) Advanced Fuel (Stormforged) All fuel recipes are +50% faster and produce +33% more goods. Advanced Fuel Advanced Fuel
Alarm Bells (Stormforged) Alarm Bells (Stormforged) The Brass Order's newest invention. All workers have a +33% higher chance of producing double yields for every 100% points of expected Corruption per minute in the Ancient Hearth. Alarm Bells Alarm Bells
Ancient Pact (Stormforged) Ancient Pact (Stormforged) You can see the content of undiscovered glades. Ancient Pact Ancient Pact
Back to Nature (Stormforged) Back to Nature (Stormforged) "An old, forbidden ritual. Gain +150% more yield in all buildings that use fertile soil." Back to Nature Back to Nature
Blood Price Contract (Stormforged) Blood Price Contract (Stormforged) "A shady, but lucrative deal. Gain 20 <sprite name="[valuable] amber"> Amber and 1 <sprite name="[valuable] ancient tablet"> Ancient Tablet every time a villager dies or leaves." Blood Price Contract Blood Price Contract
Bone Tools (Stormforged) Bone Tools (Stormforged) "Gain 6 <sprite name="[tools] simple tools"> Tools every time a villager leaves or dies." Bone Tools Bone Tools
Cannibalism (Stormforged) Cannibalism (Stormforged) "Gain 40 <sprite name="[food raw] meat"> Meat and 20 <sprite name="[food processed] jerky"> Jerky every time a villager dies or leaves." Cannibalism Cannibalism
Crowded Caravan (Stormforged) Crowded Caravan (Stormforged) Each newcomer group has 3 additional villagers. New villagers bring 50% more goods with them. Crowded Caravan Crowded Caravan
Crowded Houses (Stormforged) Crowded Houses (Stormforged) "All houses have room for 1 more villager, and the time between breaks for workers is increased by +25%." Crowded Houses Crowded Houses
Export Contract (Stormforged) Export Contract (Stormforged) Increases the production yield of packs of goods by +100%. Gain 2 additional active trade route slots. No perk found with that id: PacksForResolveRep.
Export Specialization (Stormforged) Export Specialization (Stormforged) Gain +2 to production yields for all packs of goods. All packs of goods are produced 50% faster. Export Specialization Export Specialization
Firekeeper's Prayer (Stormforged) Firekeeper's Prayer (Stormforged) Glade event work speed increased by 30%. Resources you sacrifice in the Ancient Hearth burn for 30% longer. Firekeeper's Prayer Firekeeper's Prayer
Firelink Ritual (Stormforged) Firelink Ritual (Stormforged) There is nothing the forest hates more than fire. Every villager with their need for religion fulfilled decreases the forest’s Hostility by 10. Firelink Ritual Firelink Ritual
Flame Amulets (Stormforged) Flame Amulets (Stormforged) An artifact infused with the power of the Holy Flame. Hostility from woodcutters is decreased by 8. Woodcutters have a +20% chance of producing twice the normal yield. Flame Amulets Flame Amulets
Forbidden Seal Shard (Stormforged) Forbidden Seal Shard (Stormforged) "It was not you who removed this fragment, weakening the ancient seal - but you would still be executed on the spot if someone was to find it in your possession. Every Glade Event solved by making a decision marked as Corruption increases the chance of workers producing double yields by +5%. (the bonus is added retroactively)"
Force of Nature (Stormforged) Force of Nature (Stormforged) The forest and the everlasting rain are connected somehow. Gain +5 to storm water production for every 2 Woodcutters in your settlement. Increases the tank capacity for every type of rainwater by +100 (one time only). Force of Nature Force of Nature
Forge Trip Hammer (Stormforged) Forge Trip Hammer (Stormforged) "Powerful and precise machinery. <sprite name="[mat processed] parts"> Parts (<sprite name=grade3>) can be produced in the Smithy and +100% to amount of goods produced in the Smithy." Forge Trip Hammer Forge Trip Hammer
Forsaken Seal (Stormforged) Forsaken Seal (Stormforged) An artifact of the Forsaken Gods. Gain one cornerstone reroll charge at the beginning of each storm.
Generous Gifts (Stormforged) Generous Gifts (Stormforged) Wealthy settlements attract wealthy settlers. Newcomers bring 75% more goods with them for every Hearth level gained. Generous Gifts Generous Gifts
Generous Rations (Stormforged) Generous Rations (Stormforged) "Global Resolve is increased by 5, and villagers have a +10% chance of not consuming food during a break." Generous Rations Generous Rations
Hidden Reward (Stormforged) Hidden Reward (Stormforged) "Gain 1 <sprite name="[valuable] ancient tablet"> Ancient Tablet for every 1 completed Glade Event. (the bonus is added retroactively)" Hidden Reward Hidden Reward
Hidden from the Queen (Stormforged) Hidden from the Queen (Stormforged) The crown doesn't need to know everything. Impatience doesn't grow when villagers leave or die. Hidden from the Queen Hidden from the Queen
Hunter-Gatherers (Stormforged) Hunter-Gatherers (Stormforged) All camp production is increased by 100%. Bonus does not affect the Woodcutters' Camp. Hunter-Gatherers Hunter-Gatherers
Improvised Tools (Stormforged) Improvised Tools (Stormforged) "Woodcutters are tasked with creating makeshift tools. Discovering a glade during the Storm grants 15 <sprite name="[tools] simple tools"> Tools." Improvised Tools Improvised Tools
Lost in the Wilds (Stormforged) Lost in the Wilds (Stormforged) Gain one villager every time you discover a new glade. Villagers add less Hostility (-1). Lost in the Wilds Lost in the Wilds
Metallurgic Proficiency (Stormforged) Metallurgic Proficiency (Stormforged) "Increases the production speed of Copper Bars, Crystalized Dew, and all recipes that use metal ingots by 66%.+1 to <sprite name="[metal] copper bar"> copper bar and <sprite name="[metal] crystalized dew"> crystalized dew production." Metallurgic Proficiency Metallurgic Proficiency
Mushroom Seedlings (Stormforged) Mushroom Seedlings (Stormforged) "All farms can plant <sprite name="[food raw] mushrooms"> mushrooms (<sprite name=grade3>) on farm fields during drizzle season." Mushroom Seedlings Mushroom Seedlings
No Quality Control (Stormforged) No Quality Control (Stormforged) "Gain +2 to wood production. After each storm, all stored wood is removed, and you get 150 <sprite name="[food raw] insects"> Insects in return." No Quality Control No Quality Control
Old Fedora Hat (Stormforged) Old Fedora Hat (Stormforged) "An old inscription on the bottom of the hat says: "Fortune and glory". Increases the chance of doubling event loot by 75% (this doesn't apply to perks and blueprints)." Old Fedora Hat Old Fedora Hat
Prayer Book (Stormforged) Prayer Book (Stormforged) Scouts work 20% faster on Glade Events for every firekeeper assigned to a Hearth. Prayer Book Prayer Book
Rebellious Spirit (Stormforged) Rebellious Spirit (Stormforged) The people are feeling oddly rebellious. Gain +1 Global Resolve for every 1 Impatience Point. Rebellious Spirit Rebellious Spirit
Secret Techniques of the Firekeeper (Stormforged) Secret Techniques of the Firekeeper (Stormforged) An old manuscript detailing long-forgotten burning rites. Fuel consumption in Hearths is decreased by 33%. Resources you sacrifice in the Ancient Hearth burn for 25% longer. Secret Techniques of the Firekeeper Secret Techniques of the Firekeeper
Secure Trail (Stormforged) Secure Trail (Stormforged) Royal Stormwalkers secured the trail to your settlement. Newcomers will arrive +33% quicker and bring 25% more goods with them. Secure Trail Secure Trail
Stormwalker Training (Stormforged) Stormwalker Training (Stormforged) Your villagers learn how to travel the wilderness from the very best - the Royal Stormwalkers. Trade route caravans travel faster by 40%. Traders will arrive 33% quicker. Stormwalker Training Stormwalker Training
Summoned Smuggler (Stormforged) Summoned Smuggler (Stormforged) "Somehow, the priestess knows the smuggler... and can summon him for a price. You can choose two blueprints from all unlocked blueprints."
Survivor Bonding (Stormforged) Survivor Bonding (Stormforged) "The people in your settlement have survived many hardships, bringing them closer together (+25% villager speed, 3 Global Resolve)." Survivor Bonding Survivor Bonding
Tightened Belt (Stormforged) Tightened Belt (Stormforged) Travel cost on trade routes is reduced by 3. Doesn't apply to routes already in progress. This effect scales along with the quantity of goods exported. Tightened Belt Tightened Belt
Trade Logs (Stormforged) Trade Logs (Stormforged) Detailed notes on different traders and their wares. Gain 2 additional active trade route slots. Traders will arrive +33% quicker and have +1 more cornerstones on sale. Trade Logs Trade Logs
Trade Negotiations (Stormforged) Trade Negotiations (Stormforged) "Trade routes are worth 3 more <sprite name="[valuable] amber"> Amber. Doesn't apply to routes already in progress. This effect scales along with the quantity of goods exported." Trade Negotiations Trade Negotiations
Woodpecker Technique (Stormforged) Woodpecker Technique (Stormforged) "Gain 5 <sprite name="[food raw] insects"> Insects every time woodcutters cut down a tree during the Storm." Woodpecker Technique Woodpecker Technique

List Examples

Bulleted

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

{{Stormforged Cornerstones
|name=trade
|description=trade
|display=list
}}

Yields:

Numbered

{{Stormforged Cornerstones
|name=trade
|description=trade
|display=list
|list_type=number
}}

Yields:

  1. Export Contract (Stormforged)
  2. Stormwalker Training (Stormforged)
  3. Tightened Belt (Stormforged)
  4. Trade Logs (Stormforged)
  5. Trade Negotiations (Stormforged)

Inline Examples

{{Stormforged Cornerstones|name=trade|description=trade|display=inline}}

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 Export Contract (Stormforged), Stormwalker Training (Stormforged), Tightened Belt (Stormforged), Trade Logs (Stormforged), Trade Negotiations (Stormforged) Stormforged Cornerstones. If you can spare the cost, they can save your settlement!

{{Stormforged Cornerstones|upgrades_from_id=Alarm Bells|display=inline}}

Yields the ability to write a reminder that you can upgrade Alarm Bells to Alarm Bells (Stormforged), 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:

Related templates
Template Purpose
Template:StormforgedCornerstonesTable Primary, default table header template
Template:StormforgedCornerstonesTable/row Default table row template
Template:StormforgedCornerstonesTable/SkipPrices Table header template, but without the prices columns
Template:StormforgedCornerstonesTable/row/SkipPrices Table row template, but without the prices columns
Template:StormforgedCornerstonesList/item List version row template (there is no list header template)