Difference between revisions of "Help:Tutorial"

From Hgames Wiki
Jump to: navigation, search
(Dates: Added section how to format dates)
(Dates: Added overview for advanced formating)
Line 27: Line 27:
  
 
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.
 
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.
 +
For better readability you can specify a format for those who are not registered or not logged in.
  
 
Example:
 
Example:
Instead of writing <code>25 December 2014</code> write <code><nowiki>{{#dateformat:2014-12-25}}</nowiki></code>
+
Instead of writing <code>25 December 2014</code> write:
 +
{|class="wikitable"
 +
! Input !! Output
 +
|-
 +
|<code><nowiki>{{#dateformat:2014-12-25}}</nowiki></code>
 +
|{{#dateformat:2014-12-25}}
 +
|-
 +
|<code><nowiki>{{#dateformat:2014-12-25|dmy}}</nowiki></code>
 +
|{{#dateformat:2014-12-25|dmy}}
 +
|-
 +
|<code><nowiki>{{#dateformat:2014-12-25|mdy}}</nowiki></code>
 +
|{{#dateformat:2014-12-25|mdy}}
 +
|-
 +
|<code><nowiki>{{#dateformat:2014-12-25|ymd}}</nowiki></code>
 +
|{{#dateformat:2014-12-25|ymd}}
 +
|-
 +
|<code><nowiki>{{#dateformat:2014-12-25|ISO 8601}}</nowiki></code>
 +
|{{#dateformat:2014-12-25|ISO 8601}}
 +
|}

Revision as of 17:20, 10 March 2014

Icon msgbox notice.png 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. For better readability you can specify a format for those who are not registered or not logged in.

Example: Instead of writing 25 December 2014 write:

Input Output
{{#dateformat:2014-12-25}} 2014-12-25
{{#dateformat:2014-12-25|dmy}} 25 December 2014
{{#dateformat:2014-12-25|mdy}} December 25, 2014
{{#dateformat:2014-12-25|ymd}} 2014 December 25
{{#dateformat:2014-12-25|ISO 8601}} 2014-12-25