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 83: Line 83:


Just go here to create a cargo template visually (it will use it's own infobox): [[Special:CreateTemplate]]
Just go here to create a cargo template visually (it will use it's own infobox): [[Special:CreateTemplate]]
Make sure to add a category in the template's includeonly tags with the same name as the template. This will be crucial in allowing the "Edit with Form" tab to appear.


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 108: Line 106:
# 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>.)
# To get an [[mw:Extension:Page_Forms/The_"edit_with_form"_tab|Edit with Form tab]], set up a default form in your template's category page (e.g. for [[Template:Fangame]], [[:Category:Fangame]]) by adding this code to the top of it:
# To get an [[mw:Extension:Page_Forms/The_"edit_with_form"_tab|Edit with Form tab]], set up a default form in your template's category page (e.g. for [[Template:Fangame]], [[:Category:Fangame]]) by adding this code to the top of it:
#* <code><nowiki><span style="display:none">{{#default_form:YourFormName}}</span></nowiki></code>
#* <code><span style="display:none">{{#default_form:YourFormName}}</span></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 115:
# 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.
{{Note|If you ever recreate the Cargo table and you have existing pages, the older pages will not appear until those pages get edited: this launches a process in the job queue.}}


== Creating Templates ==
== Creating Templates ==
Line 125: Line 121:


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:
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)