Template:PerkSearch: Difference between revisions

From Against the Storm Official Wiki
(almost done)
 
(deprecated)
Tag: Replaced
 
(4 intermediate revisions by the same user not shown)
Line 9: Line 9:
</includeonly><noinclude>
</includeonly><noinclude>


Generates a table showing perks. Use this wherever you need to show one or more [[Perks]] or [[Cornerstones]]. Does not include Forest Mystery effects or penalties from Glade Events.
{{c|Red|'''IMPORTANT''' This template is now deprecated. Please use [[Template:Perks]] instead.}}
 
== Overview ==
 
Create a concise, sortable table using game data to show perks. The table shows the name of the perk, its icon, with a colored border similar to the in-game border corresponding to rarity, spells out the rarity (so it can be sorted on), its in-game long description of its effect, and where to find it.
 
The name of the perk displayed links to its page on the wiki.
 
== Parameters ==
 
The template has three modes: ID mode, name mode, and search mode. When using search mode, you can specify the search term and, if needed, filter on a particular source or rarity.
 
{| class="wikitable"
! Parameter !! string !! Description
|-
| id || string || The unique identifier of a perk. If you specify the id, you get a table with exactly that one perk.
|-
| name || string || The name of one or more perks. Perks with similar effects but that differ in their magnitude share names. (For example, "Nets" can be +1 or +2 to Meat.) If you specify the name, you get a table with one or several perks with that name.
|-
| search || string || A case-insensitive simple string match. If you specify a search term, you get a table with one or many perks whose names or descriptions contain that text.
|-
| source || string || See below for options. Filters the search results to only show perks from this source. Has no effect if you specify id or name.
|-
| rarity || string || See below for options. Filters the search results to only show perks of this rarity. Has no effect if you specify id or name.
|-
| display || "list" || If <code>display=list</code> is present at the end of the template call, it overrides the default use of a wikitable to display the recipe. Instead, it will produce a list of perks' names and small icons, each on their own line, without any additional information. Useful for populating larger tables or between paragraphs where displaying the entire recipe isn't relevant.
|}
 
 
{{PerkSearch|Fedora Hat}}
 
 
{{PerkSearch|name=Nets}}
 
 
{{PerkSearch|search=Biscuits}}

Latest revision as of 03:48, 10 May 2024


IMPORTANT This template is now deprecated. Please use Template:Perks instead.