Difference between revisions of "Help:Tutorial"
(Created heading for date formating) |
(→Dates: Added section how to format dates) |
||
Line 23: | Line 23: | ||
== Dates == | == Dates == | ||
+ | How to write a date: | ||
+ | <code><nowiki>{{#dateformat:YYYY-MM-DD}}</nowiki></code> | ||
+ | |||
+ | This ensures your date is in [https://en.wikipedia.org/wiki/ISO_8601 ISO 8601 standard] and that it will be formated into the format you have selected in your preferences. | ||
+ | |||
+ | Example: | ||
+ | Instead of writing <code>25 December 2014</code> write <code><nowiki>{{#dateformat:2014-12-25}}</nowiki></code> |
Revision as of 17:05, 10 March 2014
This article is a stub. You can help the Hgames Wiki by expanding it. |
Welcome to the general wiki tutorial. Here you'll find links to articles explaining general MediaWiki formatting and tutorials specific to this wiki.
MediaWiki formatting
MediaWiki uses special syntax, called wiki markup, to format text. For example, the heading above was created by typing
== MediaWiki formatting ==
representing a heading level 2. There are several articles on https://www.mediawiki.org/ about wiki markup:
Keep in mind that it is more important to gather information. So if you think you are not skilled enough in wiki markup to add to or create a page, just put your information in there anyway. Chances are someone else with enough wiki-fu will notice and format the text for you. And even if not, the information is still there, even if it is hard to read.
Templates
Templates are basically wiki markup building blocks ready to be included in a page. They are used so pages about similar things have the same look and feel, and also to make it easier to create those pages.
To include a template in a page, type its name enclosed in double curly brackets.
For example, if you think a page is a mess and should be cleaned up, there's a template for that! Edit the page and add {{cleanup}} on top of the page. You can see the cleanup template here. Adding this template to a page will also add to the Pages marked for cleanup Category.
Dates
How to write a date:
{{#dateformat:YYYY-MM-DD}}
This ensures your date is in ISO 8601 standard and that it will be formated into the format you have selected in your preferences.
Example:
Instead of writing 25 December 2014
write {{#dateformat:2014-12-25}}