MediaWiki/Editing/Advanced

Some advanced features are supported on this wiki.

Cargo (Semantic Infoboxes)
The infoboxes on the Bibliotheca Anonoma are augmented with Cargo, a Semantic Web extension (designed to replace Semantic MediaWiki). This gives the infobox elements the power to be indexed in a semantic metadata database. That way, queries and reports can be made to sort out the data for easier searching.

A full Cargo Cheatsheet can be found here.

Basic Components of a Cargo Subject
A single Cargo subject is made up of a three basic elements:


 * 1) Infobox - Defines an infobox that holds all the metadata on the right side of an article.
 * 2) Template - Defines the table schema.
 * 3) Table - Indexes the data for queries.
 * 4) Form - Helps users create a new page with fields for metadata.
 * 5) Page - Use the form to create a new page.

1. Creating Infoboxes
Infoboxes are created using Capiunto, a Lua module is relatively easier to install and create infoboxes with than the opaque and puzzling template language. It will take a bit of reading to understand how to make one, but it's worth it.

Basic Usage Guide for Capiunto

Here's an example infobox:

You can then use this infobox with the following method call, and the example appears on the right:

Now, you need to integrate the infobox into the Cargo template.

2. Create a Cargo Template
The Cargo Template defines the table's schema: what kind of columns it has, and how it looks to the user.

Just go here to create a cargo template visually (it will use it's own infobox): Special:CreateTemplate

For good examples, check out the Traveller Wiki's Cargo Tables.

Use the infobox you made in the previous step to show the data in this cargo template.

3. Create a Cargo Table

 * 1) Open the Cargo Template you need to create a template for.
 * 2) Click More at the top right next to the search bar.
 * 3) Click Create Cargo Table.

The cargo table must be recreated each time the schema is modified in the template. See the Cargo Documentation for further details.

4. Create a Cargo Form

 * 1) Go to Special:CreateForm.
 * 2) Choose the template to create the form for.
 * 3) Name the Form with the same base name as the Template. (e.g. for , type in  .)

For good, detailed examples of Cargo Forms, check out the Absit Omen Lexicon Wiki.

5. Create a Cargo Page

 * 1) Go to the page Form:Cargo Title, replacing "Table Title" with the actual title of the cargo subject.
 * 2) Enter the title of the page you want to create.
 * 3) Fill out the form. In the "Free Text" box, you can create a normal wikipage.

Creating Templates
When creating a template meant for users to utilize, you should place a  header into it.

This template should be added at the very beginning of all template pages between 'noinclude' tags:

Documentation of the template, usage instructions, and output example should also be added between the 'noinclude' tags (as in this template).

The actual template code must be written between 'includeonly' tags:

...