User:PanchamBro/Sandbox/Pink

This article deals with the Cargo extension used on Nookipedia and its API. It teaches you how to properly create and query a cargo table.

What is Cargo?
Cargo is a MediaWiki extension that allows the storage and query of data within templates using cargo tables. Although similar in functionality to Semantic MediaWiki, Cargo is more easier to use in comparison. Cargo tables can be found at Special:CargoTables. Cargo also provides a drilldown page and a cargo query page.

The major parsers to look out for when finding a page that uses the Cargo extension are,  ,  ,  , and.

Creating a cargo table
To begin, you must start a  parser function. The parser must be enclosed with.

You must specify the cargo table's name, followed by field names associated with a type. Both of them cannot have spaces or dashes. For instance:

Field types
When adding a field name, it's important to specify the type of field that the field can store. The following are common field types used on Nookipedia:
 * : Holds up to 300 characters of non-wikitext text.
 * : Holds non-wikitext text, intended for longer values.
 * : Holds an integer or numerical value (e.g. "11").
 * : Holds a non-integer value (e.g. "3.14").
 * : Holds a date value (e.g. "10-23-2010").
 * : Holds a boolean value, consisting of two states (value can be either "0"/"1" or "yes"/"no").
 * : Holds up to 300 characters of text parsed by MediaWiki (e.g. Bells 400).
 * : Holds text parsed by MediaWiki, intended for longer values.

You can also associate a list of a type to a field. For instance,  will provide a list of   values.