Editing MediaWiki/Editing/Advanced
From Bibliotheca Anonoma
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Some advanced features are supported on this wiki. | Some advanced features are supported on this wiki. | ||
== | == Creating Infoboxes == | ||
Infoboxes are created using [[mediawikiwiki:Extension:Capiunto|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. | Infoboxes on the Bibliotheca Anonoma Wiki are created using [[mediawikiwiki:Extension:Capiunto|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. | ||
[[mediawikiwiki:Extension:Capiunto/Infobox/Basic_usage|Basic Usage Guide for Capiunto]] | [[mediawikiwiki:Extension:Capiunto/Infobox/Basic_usage|Basic Usage Guide for Capiunto]] | ||
Line 74: | Line 58: | ||
</nowiki>}} | </nowiki>}} | ||
== 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 [[mediawikiwiki:Extension:Cargo/Other documentation|Cargo Cheatsheet can be found here.]] | |||
=== Basic Components of a Cargo Subject === | |||
A single Cargo subject is made up of a three basic elements: | |||
# '''Template''' - Defines the table schema. | |||
# '''Table''' - Indexes the data for queries. | |||
# '''Form''' - Helps users create a new page with fields for metadata. | |||
# '''Page''' - Use the form to create a new page. | |||
=== 1. 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. | |||
=== | === 2. Create a Cargo Table === | ||
# Open the Cargo Template you need to create a template for. | # Open the Cargo Template you need to create a template for. | ||
Line 98: | Line 83: | ||
# Click '''Create Cargo Table'''. | # Click '''Create Cargo Table'''. | ||
The cargo table must be recreated each time the schema is modified in the template | The cargo table must be recreated each time the schema is modified in the template. | ||
=== | === 3. Create a Cargo Form === | ||
# Go to [[Special: | # Go to [[Special:Forms]]. | ||
# Choose the template to create the form for. | # Choose the template to create the form for. | ||
# Name the Form with the same base name as the Template. (e.g. for <code>Template:Book</code>, type in <code>Book</code>.) | # Name the Form with the same base name as the Template. (e.g. for <code>Template:Book</code>, type in <code>Book</code>.) | ||
=== 4. Create a Cargo Page === | |||
= | |||
# Go to the page [[Form:Cargo Title]], replacing "Table Title" with the actual title of the cargo subject. | # Go to the page [[Form:Cargo Title]], replacing "Table Title" with the actual title of the cargo subject. | ||
# Enter the title of the page you want to create. | # Enter the title of the page you want to create. | ||
# Fill out the form. In the "Free Text" box, you can create a normal wikipage. | # Fill out the form. In the "Free Text" box, you can create a normal wikipage. | ||
== Creating Templates == | == Creating Templates == | ||
Line 125: | Line 102: | ||
When creating a template meant for users to utilize, you should place a <code><nowiki>{{Template}}</nowiki></code> header into it. | When creating a template meant for users to utilize, you should place a <code><nowiki>{{Template}}</nowiki></code> 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: | This template should be added at the very beginning of all template pages between 'noinclude' tags: |