Difference between revisions of "Help:Contents"

From Stunts Wiki
(→‎Tables: extra pipes for the first column)
 
(48 intermediate revisions by 20 users not shown)
Line 1: Line 1:
 
Editing pages is pretty easy. Just log in, and press edit.  
 
Editing pages is pretty easy. Just log in, and press edit.  
  
When you'd like to create a new entry, enter the name (should be clean and short) in the textbox on the main page, and then write your article according your taste.  
+
When you'd like to create a new entry, enter the name (should be clean and short) in the text box on the main page, and then write your article according to your taste.  
You should not forget one thing! Put it into a category. To do so, simply add any of the following code to the bottom of your article:
+
You should not forget one thing! Put your new article into a category. To do so, simply add any of the following to the bottom of the page:  
  
[[Category:Game]]
+
<nowiki>[[Category:Game]]</nowiki>
  
[[Category:Driving]]
+
<nowiki>[[Category:Driving]]</nowiki>
  
[[Category:Competition]]
+
<nowiki>[[Category:Competition]]</nowiki>
  
[[Category:Community]]
+
<nowiki>[[Category:Community]]</nowiki>
  
[[Category:Various]]
+
<nowiki>[[Category:Various]]</nowiki>
 +
 
 +
The double square brackets mark the text as an internal link; you can click the third button on the edit bar for a handy template. The examples are for the main categories; you can also use any of the available subcategories - the full list is at [[Special:Categories]].
 +
 
 +
== Linking ==
 +
 
 +
If you want to link from you article to other articles, just type:
 +
 
 +
<pre>[[Link|Link text]]</pre>
 +
 
 +
You can quickly display these double brackets with the third button on the editbar. For example: <nowiki>[[ZCT|ZCT10]]</nowiki> will display on screen as ZCT10 but will link to ZCT.
 +
 
 +
As long as the article name has only the first letter of the first word capitalized, links may be left in lower case - thus <nowiki>[[power gear]]</nowiki> will correctly link to the [[Power gear]] article. Another useful trick is with plurals: <nowiki>[[loop]]s</nowiki> is a handy abbreviation for <nowiki>[[loop|loops]]</nowiki>.
 +
 
 +
Links to pages outside of the Wiki are done in a slightly different way:
 +
 
 +
<pre>[http://example.hu Go to an example page]</pre>
 +
 
 +
== Redirects ==
 +
 
 +
In case you want that an abbreviation or synonym of a certain term inserted in the "Go" field or in any link point automatically to the appropriate page, just create a new page for said synonym and put the following in it...
 +
 
 +
<pre>#REDIRECT [[link to page]]</pre>
 +
 
 +
...and your redirect is ready.
 +
 
 +
== Tables ==
 +
 
 +
The quickest way to set up a table is through the following syntax:
 +
 
 +
<pre>
 +
{| class="wikitable"
 +
|-
 +
!| Headings!! Of !! The            !! Various !! Columns
 +
|-
 +
|| Columns || Of || The            || First  || Row
 +
|-
 +
|| Columns || Of || The            || Second  || Row
 +
|}
 +
</pre>
 +
 
 +
The ''class="wikitable"'' instruction will set the appearance parameters to reasonable default values. Using ''wikitable sortable'' instead creates a dynamically-sortable table. Special formatting codes for individual cells can be added before the cell content, like this: <pre>|| <formatting codes> | <cell content> ||</pre>
 +
 
 +
To apply formatting to whole rows, place the formatting codes just after the ''|-'' preceding each row; to use formatting on the whole table append them to the line with ''class="wikitable"''.
 +
 
 +
Large floating tables (and sometimes images too) can cause problems by overlapping with section headers. To solve that issue, add the template <pre>{{-}}</pre> after the table to cancel floating.
 +
 
 +
== Footnotes ==
 +
 
 +
Footnotes can, as of now, be added through the means of an improvised scheme implemented with templates. In the text body, type <pre>{{ToFoot|footnote number}}</pre>
 +
to define the link; then add <pre>{{Footn|footnote number}}</pre>
 +
just before the footnote so you have an identifier and a back-link.

Latest revision as of 01:10, 21 January 2021

Editing pages is pretty easy. Just log in, and press edit.

When you'd like to create a new entry, enter the name (should be clean and short) in the text box on the main page, and then write your article according to your taste. You should not forget one thing! Put your new article into a category. To do so, simply add any of the following to the bottom of the page:

[[Category:Game]]

[[Category:Driving]]

[[Category:Competition]]

[[Category:Community]]

[[Category:Various]]

The double square brackets mark the text as an internal link; you can click the third button on the edit bar for a handy template. The examples are for the main categories; you can also use any of the available subcategories - the full list is at Special:Categories.

Linking

If you want to link from you article to other articles, just type:

[[Link|Link text]]

You can quickly display these double brackets with the third button on the editbar. For example: [[ZCT|ZCT10]] will display on screen as ZCT10 but will link to ZCT.

As long as the article name has only the first letter of the first word capitalized, links may be left in lower case - thus [[power gear]] will correctly link to the Power gear article. Another useful trick is with plurals: [[loop]]s is a handy abbreviation for [[loop|loops]].

Links to pages outside of the Wiki are done in a slightly different way:

[http://example.hu Go to an example page]

Redirects

In case you want that an abbreviation or synonym of a certain term inserted in the "Go" field or in any link point automatically to the appropriate page, just create a new page for said synonym and put the following in it...

#REDIRECT [[link to page]]

...and your redirect is ready.

Tables

The quickest way to set up a table is through the following syntax:

 {| class="wikitable"
 |-
 !| Headings!! Of !! The            !! Various !! Columns 
 |-
 || Columns || Of || The            || First   || Row 
 |-
 || Columns || Of || The            || Second  || Row 
 |}

The class="wikitable" instruction will set the appearance parameters to reasonable default values. Using wikitable sortable instead creates a dynamically-sortable table. Special formatting codes for individual cells can be added before the cell content, like this:

|| <formatting codes> | <cell content> ||

To apply formatting to whole rows, place the formatting codes just after the |- preceding each row; to use formatting on the whole table append them to the line with class="wikitable".

Large floating tables (and sometimes images too) can cause problems by overlapping with section headers. To solve that issue, add the template

{{-}}

after the table to cancel floating.

Footnotes

Footnotes can, as of now, be added through the means of an improvised scheme implemented with templates. In the text body, type

{{ToFoot|footnote number}}

to define the link; then add

{{Footn|footnote number}}

just before the footnote so you have an identifier and a back-link.