MediaWiki/Editing: Difference between revisions

From Bibliotheca Anonoma
No edit summary
No edit summary
Line 1: Line 1:
The Bibliotheca Anonoma Wiki has special features and extensions that editors can make use of.
The Bibliotheca Anonoma Wiki has special features and extensions that editors can make use of.
== 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.
=== Creating a Cargo Template, Table, and Form ===
A single Cargo subject is made up of a three basic elements:
* '''Template''' - Defines the columns and infobox.
* '''Table''' - Indexes the data for queries.
* '''Form''' - Helps users create a new page with fields for metadata.


== Creating Templates ==
== Creating Templates ==
Line 24: Line 36:


{{Note|Template documentation is set up the same way as in the Arch Wiki: inside <code><nowiki><includeonly></includeonly></nowiki></code> tags. This is simpler than the Wikipedia template documentation, which puts it in a subpage.}}
{{Note|Template documentation is set up the same way as in the Arch Wiki: inside <code><nowiki><includeonly></includeonly></nowiki></code> tags. This is simpler than the Wikipedia template documentation, which puts it in a subpage.}}
== Design Models ==
The Bibliotheca Anonoma is descended from various model wikis that templates were directly copied from, or otherwise inspired the MediaWiki instance.
* Arch Wiki - The code templates and Note boxes are inherited from here.
* Chakra Wiki - The i18n templates are inherited from here. We would prefer to use the Translate extension instead, but it has no support for PostgreSQL. Maybe when we need it we will switch to MariaDB.
* Tanasinn.info - Their VIP quality templates are just plain hilarious.

Revision as of 09:45, 3 January 2017

The Bibliotheca Anonoma Wiki has special features and extensions that editors can make use of.

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.

Creating a Cargo Template, Table, and Form

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

  • Template - Defines the columns and infobox.
  • Table - Indexes the data for queries.
  • Form - Helps users create a new page with fields for metadata.

Creating Templates

When creating a template meant for users to utilize, you should place a {{Template}} header into it.

Note: Templates meant for internal template use only do not need this header.

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

<noinclude>
{{Template}}
</noinclude>

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

The template wikitext must be written between 'includeonly' tags:

<includeonly>...</includeonly>
Note: Template documentation is set up the same way as in the Arch Wiki: inside <includeonly></includeonly> tags. This is simpler than the Wikipedia template documentation, which puts it in a subpage.

Design Models

The Bibliotheca Anonoma is descended from various model wikis that templates were directly copied from, or otherwise inspired the MediaWiki instance.

  • Arch Wiki - The code templates and Note boxes are inherited from here.
  • Chakra Wiki - The i18n templates are inherited from here. We would prefer to use the Translate extension instead, but it has no support for PostgreSQL. Maybe when we need it we will switch to MariaDB.
  • Tanasinn.info - Their VIP quality templates are just plain hilarious.