Template:Parse Data/doc

From Sheltered 2 Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

Provides centralised pre-formatted parsing for certain types of data, mostly for infoboxes (or other bulk processing, such as tables). Can also be used in-line in an article to quickly format references to ingredient use, recycle outputs, and other such things.

{{Parse Data|type|data}}

Parameters
Param Description
type Type of output for processing the data
data A semicolon (;) delimited list for the data (usually Ingredient;quantity;quality)
Type options
Param Name Result
ingredient or ing Ingredient format #x [[Ingredient]] <quality>
recycle or rec Recycling format [[Ingredient]] ( #x <quality> )
facility or fac Facility format [[Facility Name#Upgrade Name]]
Examples
Input Output
{{Parse Data|ing|Metal;20;3}} 20x Metal ★★★
{{Parse Data|rec|Metal;20;3}} Metal ( x20 ★★★ )
{{Parse Data|fac|Oxygen Filter;Durability 2}} Oxygen Filter - Durability 2

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.