Help:Editing: Difference between revisions
Reverted edit |
|||
| (19 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
{{Help}} | |||
Wikis are easy to edit, giving the user a wide array of options without having to learn any programming | Wikis are easy to edit, giving the user a wide array of options without having to learn any programming or markup languages. | ||
== Editing Resources == | == Editing Resources == | ||
# Use the [[Hattrick:Sandbox|Hattrick wiki sandbox]] to try out your editing skills. | # Use the [[Hattrick:Sandbox|Hattrick wiki sandbox]] to try out your editing skills. | ||
# Start with [[Getting started]] to know more about editing in Hattrick wiki. | # Start with [[Getting started]] to know more about editing in Hattrick wiki. | ||
# You can see more generic details in [[Help:Contents]]. | # You can see more generic details in [[Help:Contents]]. | ||
# Detailed help for Editors can be found on the Wikimedia site: [http://meta.wikimedia.org/wiki/Help:Contents#For_editors Wikimedia for Editors]. | # Detailed help for Editors can be found on the Wikimedia site: [http://meta.wikimedia.org/wiki/Help:Contents#For_editors Wikimedia for Editors] (due to the fact that they may have add-ons installed that aren't installed on the hattrick wiki, some features described there are possibly not available here). | ||
== Short examples == | == Short examples == | ||
The best way to see how an editing option works is to click ''edit'' at the top of any page (you should actually use the [[Hattrick:Sandbox|Sandbox]] for testing purposes) to see the source of the content to see how things are done. | |||
Some basic features: | |||
* To create a list (like this one) just start every line with an asterisk: * | |||
Some basic | * To create a numbered list, start each line with a hash: # | ||
* To create a list (like this one) just start every line with an asterisk: * | |||
* To create a numbered list, start each line with a hash: # | |||
* ''Italic text'' is created by enclosing your text with two apostrophes: <nowiki>''Italic text''</nowiki>. | * ''Italic text'' is created by enclosing your text with two apostrophes: <nowiki>''Italic text''</nowiki>. | ||
* '''Bold text''' is created by enclosing your text with three apostrophes: <nowiki>'''Bold text'''</nowiki>. | * '''Bold text''' is created by enclosing your text with three apostrophes: <nowiki>'''Bold text'''</nowiki>. | ||
| Line 25: | Line 23: | ||
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column. | In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column. | ||
You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so | You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so in the [[Hattrick:Sandbox|Sandbox]]. | ||
'''Note''': ''The more up to date version of the MediaWiki User's Guide (editing overview) can be found | '''Note''': ''The more up to date version of the MediaWiki User's Guide (editing overview) can be found | ||
[http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Editing_overview here].'' | [http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Editing_overview here].'' | ||
=== Sections, paragraphs, lists and lines === | |||
See: [[Help:Editing (sections, paragraphs, lists and lines)]]. | |||
===Sections, paragraphs, lists and lines=== | |||
=== Links and URLs === | === Links and URLs === | ||
See: [[Help:Editing (links and URLs)]]. | |||
=== Images === | |||
* To upload an image, go to [[Special:Upload|Upload file]] link in the tools menu on the left side. Follow instructions to upload an image. When "Upload file" button is clicked, the image will be uploaded and redirect to the image page. Note the name of the page (will be used to added into other wiki pages). | |||
* To view recently upload file, go to [[Special:Log/upload|Upload logs]] to view all the recently uploaded files. | |||
* To reupload the image, go to the page of the image that is previously uploaded. If you forgot, find it in [[Special:Log/upload|Upload logs]]. Follow instruction to reupload the image. Any page with the image will be updated with the new image. | |||
{| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" | ||
|- | |- | ||
! What it looks like | ! What it looks like | ||
! What you type | ! What you type | ||
|- valign="top" | |- valign="top" | ||
| A picture: [[ | | | ||
;A picture: [[File:Hattrick Wiki.jpg]] | |||
or, with alternative text: | ;or, with alternative text: | ||
[[ | [[File:Hattrick Wiki.jpg]] | ||
or, floating to the right side of the page and with a caption: | ;or, floating to the right side of the page and with a caption: | ||
[[ | [[File:Hattrick Wiki.jpg|frame|The Hattrick Wiki]]<br clear=all> | ||
or, floating to the right side of the page ''without'' a caption: | ;or, floating to the right side of the page ''without'' a caption: | ||
[[ | [[File:Hattrick Wiki.jpg|right|The Hattrick Wiki]]<br clear=all> | ||
* Only images that have been uploaded to | * Only images that have been uploaded to Hattrick Wiki can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]]. | ||
* See the [[ | * See the [[Hattrick:Image policy|image policy]] for more information. | ||
* Alternative text, used when the image isn't loaded | * Alternative text, used when the image isn't loaded or in a text-only browser, is '''strongly''' encouraged. | ||
* The frame tag automatically floats the image right. | * The frame tag automatically floats the image right. | ||
| <pre><nowiki> | | <pre><nowiki> | ||
A picture: [[Image:Wiki.png]]</nowiki> | A picture: [[Image:Wiki.png]]</nowiki> | ||
</pre><br><br><br><br><br><br><br><br><br><pre> | |||
or, with alternative text: | or, with alternative text: | ||
<nowiki>[[Image:Wiki.png| | <nowiki>[[Image:Wiki.png|The Hattrick Wiki]]</nowiki> | ||
</pre><br><br><br><br><br><br><br><br><br><pre> | |||
or, floating to the right side of the page and with a caption: | or, floating to the right side of the page and with a caption: | ||
<nowiki>[[Image:Wiki.png|frame| | <nowiki>[[Image:Wiki.png|frame|The Hattrick Wiki]]</nowiki> | ||
</pre><br><br><br><br><br><br><br><br><pre> | |||
or, floating to the right side of the page ''without'' a caption: | or, floating to the right side of the page ''without'' a caption: | ||
<nowiki>[[Image:Wiki.png|right| | <nowiki>[[Image:Wiki.png|right|The Hattrick Wiki]]</nowiki></pre> | ||
|- | |- | ||
| | | | ||
| Line 79: | Line 79: | ||
</nowiki></pre> | </nowiki></pre> | ||
|- | |- | ||
|} | |} | ||
| Line 104: | Line 93: | ||
<pre><nowiki> | <pre><nowiki> | ||
''Emphasize'', '''strongly''', '''''very strongly'''''. | ''Emphasize'', '''strongly''', '''''very strongly'''''. | ||
</nowiki></pre> | </nowiki></pre> | ||
|- valign="top" | |- valign="top" | ||
| Line 182: | Line 153: | ||
ö ø ù ú <br/> | ö ø ù ú <br/> | ||
û ü ÿ | û ü ÿ | ||
| | | | ||
<br/> | <br/> | ||
| Line 244: | Line 213: | ||
C² / J m. | C² / J m. | ||
1 | 1 hectare = 1 E4 m² | ||
| | | | ||
<br/> | <br/> | ||
| Line 292: | Line 261: | ||
¬ ∧ ∨ ∃ ∀ ⇒ ⇔<br/> | ¬ ∧ ∨ ∃ ∀ ⇒ ⇔<br/> | ||
→ ↔<br/> | → ↔<br/> | ||
| | | | ||
<br/> | <br/> | ||
| Line 303: | Line 271: | ||
&not; &and; &or; &exist; &forall; &rArr; &hArr; | &not; &and; &or; &exist; &forall; &rArr; &hArr; | ||
&rarr; &harr; | &rarr; &harr; | ||
</nowiki></pre> | </nowiki></pre> | ||
|- valign="top" | |- valign="top" | ||
| Line 331: | Line 276: | ||
'''Suppressing interpretation of markup:''' | '''Suppressing interpretation of markup:''' | ||
<br/> | <br/> | ||
<nowiki>Link → (''to'') the [[ | <nowiki>Link → (''to'') the [[Main Page]]</nowiki> | ||
* Used to show literal data that would otherwise have special meaning. | * Used to show literal data that would otherwise have special meaning. | ||
* Escape all wiki markup, including that which looks like HTML tags. | * Escape all wiki markup, including that which looks like HTML tags. | ||
| Line 348: | Line 293: | ||
''not shown when viewing page'' | ''not shown when viewing page'' | ||
* Used to leave comments in a page for future editors. | * Used to leave comments in a page for future editors. | ||
* Note that most comments should go on the appropriate | * Note that most comments should go on the appropriate Talk page. | ||
| | | | ||
<br/> | <br/> | ||
| Line 355: | Line 300: | ||
</nowiki></pre> | </nowiki></pre> | ||
|} | |} | ||
==== | ==== Table of Contents (TOC) ==== | ||
At the current status of the wiki markup language, having at least four headers on a page triggers the TOC to appear in front of the first header (or after introductory sections). Putting <nowiki>__TOC__</nowiki> anywhere forces the TOC to appear at that point (instead of just before the first header). Putting <nowiki>__NOTOC__</nowiki> anywhere forces the TOC to disappear. | |||
If you want some subheadings to not appear in the Table of Contents, then make the following replacements. | If you want some subheadings to not appear in the Table of Contents, then make the following replacements. | ||
| Line 386: | Line 320: | ||
<nowiki><h4> This header has the h4 font, but is NOT in the Table of Contents </h4></nowiki> | <nowiki><h4> This header has the h4 font, but is NOT in the Table of Contents </h4></nowiki> | ||
===Variables=== | === Tables === | ||
There are two ways to build tables: | |||
* in special Wiki-markup (see [http://meta.wikimedia.org/wiki/Help:Table Tables]) | |||
* with the usual HTML elements: <table>, <tr>, <td> or <th>. | |||
The use of the latter has to be avoided if ever possible. | |||
=== Variables === | |||
''(See also [[ | ''(See also [[Hattrick:Variable]])'' | ||
{| | {| | ||
|- | |- | ||
| Line 421: | Line 361: | ||
|- | |- | ||
| <nowiki>{{localurl:</nowiki>''Wikipedia:Sandbox''<nowiki>|action=edit}}</nowiki> | | <nowiki>{{localurl:</nowiki>''Wikipedia:Sandbox''<nowiki>|action=edit}}</nowiki> | ||
| {{localurl: | | {{localurl:Special:Sandbox|action=edit}} | ||
|- | |- | ||
| <nowiki>{{SERVER}}</nowiki> || {{SERVER}} | | <nowiki>{{SERVER}}</nowiki> || {{SERVER}} | ||
| Line 457: | Line 397: | ||
| <nowiki>{{SITENAME}}</nowiki> || {{SITENAME}} | | <nowiki>{{SITENAME}}</nowiki> || {{SITENAME}} | ||
|} | |} | ||
'''NUMBEROFARTICLES''' is the number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages. | '''NUMBEROFARTICLES''' is the number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages. | ||
===Templates=== | === Templates === | ||
The [http://en.wikipedia.org/wiki/Media_Wiki MediaWiki] software used by Hattrick Wiki has limited support for template inclusion. This means standardised text chunks (such as boilerplate text) can be inserted into articles. For example, typing <nowiki>{{stub}}</nowiki> will appear as "''This article is a [http://en.wikipedia.org/wiki/Wikipedia:The_perfect_stub_article stub]. You can help Hattrick by expanding it.''" when the page is saved. See [[Hattrick:Template messages]] for a list of the most common messages. | |||
The [http://en.wikipedia.org/wiki/Media_Wiki MediaWiki] software used by | |||
===Hiding the edit links=== | === Hiding the edit links === | ||
Insert '''<nowiki>__NOEDITSECTION__</nowiki>''' into the document to suppress the edit links that appear next to every section header. This shouldn't be done if possible, since it's better for the server if only one section is edited and since people shouldn't be discouraged from contributing. | |||
[[Category:Hattrick Wiki Help|Editing]] | |||
Latest revision as of 17:56, 11 May 2025
| Help section |
|---|
| The Start |
| Further help and reading |
Wikis are easy to edit, giving the user a wide array of options without having to learn any programming or markup languages.
Editing Resources
- Use the Hattrick wiki sandbox to try out your editing skills.
- Start with Getting started to know more about editing in Hattrick wiki.
- You can see more generic details in Help:Contents.
- Detailed help for Editors can be found on the Wikimedia site: Wikimedia for Editors (due to the fact that they may have add-ons installed that aren't installed on the hattrick wiki, some features described there are possibly not available here).
Short examples
The best way to see how an editing option works is to click edit at the top of any page (you should actually use the Sandbox for testing purposes) to see the source of the content to see how things are done.
Some basic features:
- To create a list (like this one) just start every line with an asterisk: *
- To create a numbered list, start each line with a hash: #
- Italic text is created by enclosing your text with two apostrophes: ''Italic text''.
- Bold text is created by enclosing your text with three apostrophes: '''Bold text'''.
- To create a link to something inside the Wiki, just enclose the page name in 2 sets of square brackets My Hattrick: [[My Hattrick]]
- To create a link to something outside the Wiki, enclose the URL 1 set of square brackets: Hattrick
- To write titles, sections... put 2 or more equals signs at the start and the end of the line: ==Short Examples==.
The wiki markup
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.
You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so in the Sandbox.
Note: The more up to date version of the MediaWiki User's Guide (editing overview) can be found here.
Sections, paragraphs, lists and lines
See: Help:Editing (sections, paragraphs, lists and lines).
Links and URLs
See: Help:Editing (links and URLs).
Images
- To upload an image, go to Upload file link in the tools menu on the left side. Follow instructions to upload an image. When "Upload file" button is clicked, the image will be uploaded and redirect to the image page. Note the name of the page (will be used to added into other wiki pages).
- To view recently upload file, go to Upload logs to view all the recently uploaded files.
- To reupload the image, go to the page of the image that is previously uploaded. If you forgot, find it in Upload logs. Follow instruction to reupload the image. Any page with the image will be updated with the new image.
| What it looks like | What you type |
|---|---|
![]()
![]()
|
A picture: [[Image:Wiki.png]]
|
|
Clicking on an uploaded image displays a description page, which you can also link directly to: Image:Wiki.png |
[[:Image:Wiki.png]] |
Character formatting
| What it looks like | What you type |
|---|---|
|
Emphasize, strongly, very strongly.
|
''Emphasize'', '''strongly''', '''''very strongly'''''. |
|
A typewriter font for monospace text
or for computer code:
|
A typewriter font for <tt>monospace text</tt> or for computer code: <code>int main()</code> |
|
You can use small text for captions. |
You can use <small>small text</small> for captions. |
|
You can You can also mark
|
You can <s>strike out deleted material</s> and <u>underline new material</u>. You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup rather than visual markup. |
|
Diacritical marks:
À Á Â Ã Ä Å |
è é ê ë ì í À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô œ õ ö ø ù ú û ü ÿ |
|
Punctuation:
|
¿ ¡ § ¶ † ‡ • – — ‹ › « » ‘ ’ “ ” |
|
Commercial symbols:
|
™ © ® ¢ € ¥ £ ¤ |
|
Subscripts:
Superscripts:
ε0 = 8.85 × 10−12 C² / J m. 1 hectare = 1 E4 m² |
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or x¹ x² x³ ε<sub>0</sub> = 8.85 × 10<sup>−12</sup> C² / J m. 1 [[hectare]] = [[1 E4 m²]] |
|
Greek characters:
|
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω |
|
Math characters:
|
∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ → × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ℵ ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ |
|
Suppressing interpretation of markup:
|
<nowiki>Link → (''to'')
the [[Wikipedia FAQ]]</nowiki>
|
|
Commenting page source:
|
<!-- comment here --> |
Table of Contents (TOC)
At the current status of the wiki markup language, having at least four headers on a page triggers the TOC to appear in front of the first header (or after introductory sections). Putting __TOC__ anywhere forces the TOC to appear at that point (instead of just before the first header). Putting __NOTOC__ anywhere forces the TOC to disappear.
If you want some subheadings to not appear in the Table of Contents, then make the following replacements.
Replace == Header 2 == with <h2> Header 2 </h2>
Replace === Header 3 === with <h3> Header 3 </h3>
And so forth.
For example, notice that the following header has the same font as the other subheaders to this "Tables" section, but the following header does not appear in the Table of Contents for this page.
This header has the h4 font, but is NOT in the Table of Contents
This effect is obtained by the following line of code.
<h4> This header has the h4 font, but is NOT in the Table of Contents </h4>
Tables
There are two ways to build tables:
- in special Wiki-markup (see Tables)
- with the usual HTML elements: <table>, <tr>, <td> or <th>.
The use of the latter has to be avoided if ever possible.
Variables
(See also Hattrick:Variable)
| Code | Effect |
|---|---|
| {{CURRENTMONTH}} | 09 |
| {{CURRENTMONTHNAME}} | September |
| {{CURRENTMONTHNAMEGEN}} | September |
| {{CURRENTDAY}} | 17 |
| {{CURRENTDAYNAME}} | Thursday |
| {{CURRENTYEAR}} | 2026 |
| {{CURRENTTIME}} | 17:07 |
| {{NUMBEROFARTICLES}} | 25,539 |
| {{PAGENAME}} | Editing |
| {{NAMESPACE}} | Help |
| {{localurl:pagename}} | /wiki/Pagename |
| {{localurl:Wikipedia:Sandbox|action=edit}} | /index.php?title=Special:Sandbox&action=edit |
| {{SERVER}} | https://wiki.hattrick.org |
| {{ns:1}} | Talk |
| {{ns:2}} | User |
| {{ns:3}} | User talk |
| {{ns:4}} | Hattrick |
| {{ns:5}} | Hattrick talk |
| {{ns:6}} | File |
| {{ns:7}} | File talk |
| {{ns:8}} | MediaWiki |
| {{ns:9}} | MediaWiki talk |
| {{ns:10}} | Template |
| {{ns:11}} | Template talk |
| {{ns:12}} | Help |
| {{ns:13}} | Help talk |
| {{ns:14}} | Category |
| {{ns:15}} | Category talk |
| {{SITENAME}} | Hattrick |
NUMBEROFARTICLES is the number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.
Templates
The MediaWiki software used by Hattrick Wiki has limited support for template inclusion. This means standardised text chunks (such as boilerplate text) can be inserted into articles. For example, typing {{stub}} will appear as "This article is a stub. You can help Hattrick by expanding it." when the page is saved. See Hattrick:Template messages for a list of the most common messages.
Hiding the edit links
Insert __NOEDITSECTION__ into the document to suppress the edit links that appear next to every section header. This shouldn't be done if possible, since it's better for the server if only one section is edited and since people shouldn't be discouraged from contributing.
