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 81: | Line 81: | ||
The Cargo Template defines the table's schema: what kind of columns it has, and how it looks to the user. | The Cargo Template defines the table's schema: what kind of columns it has, and how it looks to the user. | ||
For good examples, check out the [http://wiki.travellerrpg.com/Special:CargoTables Traveller Wiki's Cargo Tables.] | For good examples, check out the [http://wiki.travellerrpg.com/Special:CargoTables Traveller Wiki's Cargo Tables.] | ||
Line 92: | Line 88: | ||
=== 3. Create a Cargo Table === | === 3. Create a Cargo Table === | ||
{{ | {{Note|If your cargo template has errors or is missing dependencies, the '''Create Cargo Table''' option won't appear.}} | ||
# 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 94: | ||
# 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. | ||
=== 4. Create a Cargo Form === | === 4. 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>.) | ||
For good, detailed examples of Cargo Forms, check out the [http://absitomen.com/wiki/index.php?title=Form:Character&action=edit Absit Omen Lexicon Wiki]. | For good, detailed examples of Cargo Forms, check out the [http://absitomen.com/wiki/index.php?title=Form:Character&action=edit Absit Omen Lexicon Wiki]. | ||
Line 117: | Line 109: | ||
# 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 115: | ||
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: |