ArchaeoWiki:Editing How-To

From ArchaeoWiki

Jump to: navigation, search

This guide is a quick reference for page editors outlining many of the technical aspects of wiki-specific text formatting. Many of ArchaeoWiki's templates use these techniques, but if something is unclear or further information is desired, please see the other external online resources listed at the bottom of this page.

MediaWiki creates an excellent guide to article formatting that can run you through most of the wikitext formatting markups used on this site, should you want to create your own article, template, or make edits to an existing one.


For editing existing templates, here are a few of the basic types of markups that you'll find and how the templates employ this language.

Wikitext and HTML

The following tools are used in the templates, and are explained here:

<br>
Forces a paragraph/line break
<div> </div>
Defines a specific section of the document which can be specially formatted.
{{Template:Infobox | | | | }}
Inserts a pregenerated infobox template. The | | sections are filled out with article-specific information.
{| 
|-
| Row1 || V1 || V2
| Row2 || V1 || V2
|}
Creates a data table. Lines "| Row1" (ex) create the rows and double lines "||" create columns within the rows.

As of April 8, 2013, ArcheoWiki uses the WikiEditor extension, which makes table creation much easier. Choose the table option from the Advanced Drop Down in the editor menu.

Along with these tools, remember MediaWiki supports most HTML, which can be added to any article as needed.

Links

Links to other ArchaeoWiki pages and external sites are strongly encouraged!

Internal

Link Type Description Looks like
[[Onondaga Chert]]
Internal ArchaeoWiki links Onondaga Chert
[[Onondaga Chert|Onondaga]] 
Changes the link text within an article Onondaga
[[Category:Projectile Point]]
Category definition Adds the page to a given Category, in this case, 'Projectile Point'.
Categories appear at the bottom of the page automatically after being added.

External

Link Type Description Looks like
http://www.archaeowiki.com/mw/index.php/Main_Page
Links to a web site http://www.archaeowiki.com/mw/index.php/Main_Page
[http://www.archaeowiki.com/mw/index.php/Main_Page Archaeowiki] 
Link with a different text name Archaeowiki
[http://www.archaeowiki.com/mw/index.php/Main_Page]
Numbered link, each article starts at 1 [1]

Headers

In the templates, you will find various headers that look like this:

== Header One ==

=== Header Two ===

==== Header Three ====

The template headers are chosen to best reflect the data at hand, however they can be edited in each article based on need. Article format standardization is, of course, strongly encouraged.
NOTE: As of April 8, 2013, ArchaeoWiki now uses the WikiEditor extension, which allows for selection of Header types through the menu.

Lists

Our templates use wikitext markups to create lists, which involve various degrees of nested asterisks, like so:

Markup like this: Will look like this:
*List item one
*List item two
**Sub-item two!
  • List item one
  • List item two
    • Sub-item two!
#Perhaps you would like
#a numbered list
##that looks like this?
  1. Perhaps you would like
  2. a numbered list
    1. that looks like this?

Quote Box

See this article for full instructions on how to format quote boxes.

Example Wiki-Code Resulting Quote Box
{{Quote Box|title=This is an example|source=Thisguy 2012|quote=I have very important things to say. You should listen to me all the time.|align=left|width=80%|align=center|salign=right}}
This is an example

I have very important things to say. You should listen to me all the time.

Thisguy 2012



Article Templates

Using a pre-existing template is highly recommended so as to keep articles of similar topics uniform. We recommend copying the structure of an existing article of the appropriate type and replacing the content as needed.

Data Tags

Archaeowiki is able to better organize and retrieve information stored on its pages when data tags are used. Use of data tags is therefore greatly encouraged. Information is tagged by assigning a given value to a tag in the page text, like so:

The code:
The Archeo Site is a [[Period Is::Medieval Period]] site dating to between AD [[Date Start Is::1200]] and [[Date End Is::1330]].

Yields:
The Archeo Site is a Medieval Period site dating to between AD 1200 and 1330.


Use of existing data tags is important. See the ArchaeoWiki:Common Data Tags page for a listing of the most commonly used data tags for each page type. That being said, contributors are encouraged to create tags as appropriate. New tags are created by simply using them on a page, although the default property type that is created is 'Page', meaning that the data included in the tag will result in a link to an ArchaeoWiki page. If another property type is desired, such as 'Date', 'String' or 'Number', this must be set on the property's page with the [[Has type::]] tag. See Property:Degree Is and Property:Date End Is for examples of how this is achieved.

Note that some data properties, like 'Period Is', are attached to pages and therefore result in a link to the associated page. 'Date Start Is', on the other hand, is a date property and simply provides the text on the page but saves it as a special date object.

Alternative text can be shown, if desired, by using the bar character. The code [[Date Start Is::8800 BC|around 9000 BC]] saves the date 8800 BC to the page's data property but shows the reader 'around 9000 BC' on the page instead.

Once information is tagged in this fashion, ArchaeoWiki is able to search for pages that have these properties defined. For instructions on how to make use of this functionality, see Inline Queries on this page and ArchaeoWiki:Data Retrieval.

Online Resources

The following handy links offer more information on these topics:

Personal tools