Wikihelp: Difference between revisions
Creepymoto (talk | contribs) No edit summary |
Creepymoto (talk | contribs) No edit summary |
||
Line 43: | Line 43: | ||
__TOC__ | __TOC__ | ||
</nowiki> | </nowiki> | ||
== Formmating == | |||
{| class="wikitable" | |||
! <!--T:3--> | |||
Description | |||
! width=40% | <!--T:4--> | |||
You type | |||
! width=40% | <!--T:5--> | |||
You get | |||
|- | |||
! colspan="3" style="background: #ABE" | <!--T:6--> | |||
Character (inline) formatting – ''applies anywhere'' | |||
|- | |||
| <!--T:7--> | |||
Italic text | |||
| <pre> | |||
''<!--T:8--> | |||
italic'' | |||
</pre> | |||
| | |||
''<!--T:9--> | |||
italic'' | |||
|- | |||
| <!--T:10--> | |||
Bold text | |||
| <pre> | |||
'''<!--T:11--> | |||
bold''' | |||
</pre> | |||
| | |||
'''<!--T:12--> | |||
bold''' | |||
|- | |||
| <!--T:13--> | |||
Bold and italic | |||
| <pre> | |||
'''''<!--T:14--> | |||
bold & italic''''' | |||
</pre> | |||
| | |||
'''''<!--T:15--> | |||
bold & italic''''' | |||
|- | |||
| <!--T:16--> | |||
Strike text | |||
| <pre> | |||
<strike> <!--T:17--> | |||
strike text </strike> | |||
</pre> | |||
|<strike> <!--T:18--> | |||
strike text </strike> | |||
|- | |||
| <!--T:19--> | |||
Escape wiki markup | |||
| <pre> | |||
<nowiki><!--T:20--> | |||
no ''markup''</nowiki> | |||
</pre> | |||
| | |||
<!--T:155--> | |||
<nowiki>no ''markup''</nowiki> | |||
|- | |||
| <!--T:21--> | |||
Escape wiki markup once | |||
| <pre> | |||
[[API]]<nowiki/><!--T:22--> | |||
extension | |||
</pre> | |||
| | |||
[[API]]<nowiki/><!--T:23--> | |||
extension | |||
|- | |||
! colspan="3" style="background: #ABE" | <!--T:24--> | |||
Section formatting – ''only at the beginning of the line'' | |||
|- | |||
| <!--T:25--> | |||
Headings of different levels | |||
| <pre> | |||
== Level 2 == <!--T:26--> | |||
=== Level 3 === <!--T:27--> | |||
==== Level 4 ==== <!--T:28--> | |||
===== Level 5 ===== <!--T:29--> | |||
====== Level 6 ====== <!--T:30--> | |||
</pre> | |||
---- | |||
{{note| | |||
* [[Special:MyLanguage/Help_talk:Formatting#Level_1|<!--T:31--> | |||
Skip Level 1]], <!--T:32--> | |||
it is page name level. | |||
* <!--T:33--> | |||
An article with 4 or more headings automatically creates a [[wikipedia:Wikipedia:Section#Table of contents (TOC)|<!--T:34--> | |||
table of contents]]. | |||
}} | |||
| | |||
<!--T:35--> | |||
<!-- using HTML markup to avoid creating new sections --> | |||
<h2>Level 2</h2> | |||
<!--T:36--> | |||
<h3>Level 3</h3> | |||
<!--T:37--> | |||
<h4>Level 4</h4> | |||
<!--T:38--> | |||
<h5>Level 5</h5> | |||
<!--T:39--> | |||
<h6>Level 6</h6> | |||
|- | |||
| <!--T:40--> | |||
Horizontal rule | |||
| <pre> | |||
<!--T:41--> | |||
Text before | |||
---- | |||
<!--T:42--> | |||
Text after | |||
</pre> | |||
| | |||
<!--T:43--> | |||
Text before | |||
---- | |||
<!--T:44--> | |||
Text after | |||
|- | |||
| <!--T:45--> | |||
Bullet list | |||
| | |||
<pre> | |||
<!--T:46--> | |||
* Start each line | |||
* with an [[Wikipedia:asterisk|asterisk]] (*). | |||
** More asterisks give deeper | |||
*** and deeper levels. | |||
* Line breaks <br />don't break levels. | |||
*** But jumping levels creates empty space. | |||
Any other start ends the list. | |||
</pre> | |||
| | |||
<!--T:47--> | |||
* Start each line | |||
* with an [[Wikipedia:asterisk|asterisk]] (*). | |||
** More asterisks give deeper | |||
*** and deeper levels. | |||
* Line breaks <br />don't break levels. | |||
*** But jumping levels creates empty space. | |||
Any other start ends the list. | |||
|- | |||
| <!--T:48--> | |||
Numbered list | |||
| | |||
<pre> | |||
<!--T:49--> | |||
# Start each line | |||
# with a [[Wikipedia:Number_sign|number sign]] (#). | |||
## More number signs give deeper | |||
### and deeper | |||
### levels. | |||
# Line breaks <br />don't break levels. | |||
### But jumping levels creates empty space. | |||
# Blank lines | |||
<!--T:50--> | |||
# end the list and start another. | |||
Any other start also | |||
ends the list. | |||
</pre> | |||
| | |||
<!--T:51--> | |||
# Start each line | |||
# with a [[Wikipedia:Number_sign|number sign]] (#). | |||
## More number signs give deeper | |||
### and deeper | |||
### levels. | |||
# Line breaks <br />don't break levels. | |||
### But jumping levels creates empty space. | |||
# Blank lines | |||
<!--T:52--> | |||
# end the list and start another. | |||
Any other start also | |||
ends the list. | |||
|- | |||
| <!--T:53--> | |||
Definition list | |||
| <pre> | |||
<!--T:54--> | |||
;item 1 | |||
: definition 1 | |||
;item 2 | |||
: definition 2-1 | |||
: definition 2-2 | |||
</pre> | |||
| | |||
<!--T:55--> | |||
;item 1 | |||
: definition 1 | |||
;item 2 | |||
: definition 2-1 | |||
: definition 2-2 | |||
|- | |||
| <!--T:56--> | |||
Indent text | |||
| <pre> | |||
<!--T:57--> | |||
: Single indent | |||
:: Double indent | |||
::::: Multiple indent | |||
</pre> | |||
---- | |||
{{Note|<!--T:58--> | |||
This workaround may harm accessibility.}} | |||
| | |||
<!--T:59--> | |||
: Single indent | |||
:: Double indent | |||
::::: Multiple indent | |||
|- | |||
| <!--T:60--> | |||
Mixture of different types of list | |||
| | |||
<pre> | |||
<!--T:61--> | |||
# one | |||
# two | |||
#* two point one | |||
#* two point two | |||
# three | |||
#; three item one | |||
#: three def one | |||
# four | |||
#: four def one | |||
#: this looks like a continuation | |||
#: and is often used | |||
#: instead <br />of <nowiki><br /></nowiki> | |||
# five | |||
## five sub 1 | |||
### five sub 1 sub 1 | |||
## five sub 2 | |||
</pre> | |||
---- | |||
{{note|<!--T:62--> | |||
The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.}} | |||
| | |||
<!--T:63--> | |||
# one | |||
# two | |||
#* two point one | |||
#* two point two | |||
# three | |||
#; three item one | |||
#: three def one | |||
# four | |||
#: four def one | |||
#: this looks like a continuation | |||
#: and is often used | |||
#: instead <br />of <nowiki><br /></nowiki> | |||
# five | |||
## five sub 1 | |||
### five sub 1 sub 1 | |||
## five sub 2{{anchor|pre}} | |||
|- | |||
| <!--T:64--> | |||
Preformatted text | |||
| <pre> | |||
<!--T:65--> | |||
Start each line with a space. | |||
Text is '''preformatted''' and | |||
''markups'' '''''can''''' be done. | |||
</pre> | |||
---- | |||
{{note|<!--T:66--> | |||
This way of preformatting only applies to section formatting. Character formatting markups are still effective.}} | |||
| | |||
<!--T:67--> | |||
Start each line with a space. | |||
Text is '''preformatted''' and | |||
''markups'' '''''can''''' be done. | |||
|- | |||
| <!--T:68--> | |||
Preformatted text blocks | |||
| <pre> <!--T:69--> | |||
<nowiki><nowiki>Start with a space in the first column, | |||
(before the <nowiki>). | |||
<!--T:70--> | |||
Then your block format will be | |||
maintained. | |||
This is good for copying in code blocks: | |||
<!--T:71--> | |||
def function(): | |||
"""documentation string""" | |||
<!--T:72--> | |||
if True: | |||
print True | |||
else: | |||
print False</nowiki></nowiki> | |||
</pre> | |||
| | |||
<!--T:73--> | |||
<nowiki>Start with a space in the first column, | |||
(before the <nowiki>). | |||
<!--T:74--> | |||
Then your block format will be | |||
maintained. | |||
<!--T:75--> | |||
This is good for copying in code blocks: | |||
<!--T:76--> | |||
def function(): | |||
"""documentation string""" | |||
<!--T:77--> | |||
if True: | |||
print True | |||
else: | |||
print False</nowiki> | |||
|} | |||
== Paragraphs == <!--T:78--> | |||
<!--T:79--> | |||
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>. | |||
== HTML tags == <!--T:80--> | |||
<!--T:81--> | |||
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code><code></code>, <code><div></code>, <code><nowiki><span></nowiki></code> and <code><nowiki><font></nowiki></code>. These apply anywhere you insert them. | |||
{| class="wikitable" | |||
! <!--T:82--> | |||
Description | |||
! width=40% | <!--T:83--> | |||
You type | |||
! width=40% | <!--T:84--> | |||
You get | |||
|- | |||
| <!--T:85--> | |||
Inserted <br />(Displays as underline in most browsers) | |||
| <pre> | |||
<ins><!--T:86--> | |||
Inserted</ins> | |||
<!--T:87--> | |||
or | |||
<u><!--T:88--> | |||
Underline</u> | |||
</pre> | |||
| | |||
<ins><!--T:89--> | |||
Inserted</ins> | |||
<!--T:90--> | |||
or | |||
<u><!--T:91--> | |||
Underline</u> | |||
|- | |||
| <!--T:92--> | |||
Deleted <br />(Displays as strikethrough in most browsers) | |||
| <pre> | |||
<s><!--T:93--> | |||
Struck out</s> | |||
<!--T:94--> | |||
or | |||
<del><!--T:95--> | |||
Deleted</del> | |||
</pre> | |||
| | |||
<s><!--T:96--> | |||
Struck out</s> | |||
<!--T:97--> | |||
or | |||
<del><!--T:98--> | |||
Deleted</del> | |||
|- | |||
| <!--T:99--> | |||
Fixed width text | |||
| <pre> | |||
<code><!--T:100--> | |||
Source code</code> | |||
<!--T:101--> | |||
or | |||
<tt>Fixed width text</tt> | |||
</pre> | |||
| | |||
<code><!--T:154--> | |||
Source code</code> | |||
<!--T:102--> | |||
or | |||
<tt><!--T:103--> | |||
Fixed width text</tt> | |||
|- | |||
| <!--T:104--> | |||
Blockquotes | |||
| <pre> | |||
<!--T:105--> | |||
Text before | |||
<blockquote><!--T:106--> | |||
Blockquote</blockquote> | |||
<!--T:107--> | |||
Text after | |||
</pre> | |||
| | |||
<!--T:108--> | |||
Text before | |||
<blockquote><!--T:109--> | |||
Blockquote</blockquote> | |||
<!--T:110--> | |||
Text after | |||
|- | |||
| <!--T:111--> | |||
Comment | |||
| <pre> | |||
<!--T:112--> | |||
<!-- This is a comment --> | |||
Comments are visible only | |||
in the edit zone. | |||
</pre> | |||
| | |||
<!--T:113--> | |||
<!-- This is a comment --> | |||
Comments are visible only | |||
in the edit zone. | |||
|- | |||
| <!--T:114--> | |||
Completely preformatted text | |||
| <pre> | |||
<pre> | |||
<!--T:115--> | |||
Text is '''preformatted''' and | |||
''markups'' '''''cannot''''' be done</pre> | |||
</pre> | |||
---- | |||
{{note|<!--T:116--> | |||
For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.}} | |||
| | |||
<pre> | |||
<!--T:117--> | |||
Text is '''preformatted''' and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
|- | |||
| <!--T:118--> | |||
'''Customized''' preformatted text | |||
| <pre> | |||
<pre style="color: red"> | |||
<!--T:119--> | |||
Text is '''preformatted''' | |||
with a style and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
</pre> | |||
---- | |||
{{note|<!--T:120--> | |||
A CSS style can be named within the <code>style</code> property.}} | |||
| | |||
<pre style="color: red"> | |||
<!--T:121--> | |||
Text is '''preformatted''' | |||
with a style and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
|} | |||
<!--T:122--> | |||
continued: | |||
{| class="wikitable" | |||
! <!--T:123--> | |||
Description | |||
! width=40% | <!--T:124--> | |||
You type | |||
! width=40% | <!--T:125--> | |||
You get | |||
|- | |||
| <!--T:126--> | |||
'''Customized''' preformatted text with text wrap according to available width | |||
| <pre> | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
<!--T:127--> | |||
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> | |||
</pre> | |||
</pre> | |||
| | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
<!--T:128--> | |||
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> | |||
</pre> | |||
|- | |||
| <!--T:129--> | |||
Preformatted text with text wrap according to available width</translate> | |||
| <pre> | |||
<code> | |||
<!--T:130--> | |||
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> | |||
</code> | |||
</pre> | |||
| <code> | |||
<!--T:131--> | |||
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> | |||
</code> | |||
|} |
Revision as of 23:52, 17 June 2014
Wikihelp brings you a page where you will find the simple slash advanced instructions to how to add a infobox to the right side of the page and more.
Infobox
In order to add an infobox to the page you have to add one of the following codes into your page.
Infobox of a Person: ( You can see an example here on the right side )
{{Infobox person |image = [[File:name.gif]] |fullname = |residence = |born = |gender = |status = |rank = }}
Infobox of a Community: ( You can see an example here on the right side )
{{Infobox community |image = [[File:|300px]] |founded = |founders = |members = |website = |status = }}
Table of Content
What is Table of Content ? It is the thing up before infobox header stating what is the content inside this article.
To add Table of Content to your article use this in the article edit. Suggested after introduction before first paragraph. Like on this page.
__TOC__
Formmating
Description |
You type |
You get |
---|---|---|
Character (inline) formatting – applies anywhere | ||
Italic text |
''<!--T:8--> italic'' |
italic |
Bold text |
'''<!--T:11--> bold''' |
bold |
Bold and italic |
'''''<!--T:14--> bold & italic''''' |
bold & italic |
Strike text |
<strike> <!--T:17--> strike text </strike> |
|
Escape wiki markup |
<nowiki><!--T:20--> no ''markup''</nowiki> |
no ''markup'' |
Escape wiki markup once |
[[API]]<nowiki/><!--T:22--> extension |
API extension |
Section formatting – only at the beginning of the line | ||
Headings of different levels |
== Level 2 == <!--T:26--> === Level 3 === <!--T:27--> ==== Level 4 ==== <!--T:28--> ===== Level 5 ===== <!--T:29--> ====== Level 6 ====== <!--T:30--> Usage{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} <!--T:6--> Loose test {{tip}} <!--T:7--> Loose test |
Level 2Level 3Level 4Level 5Level 6 |
Horizontal rule |
<!--T:41--> Text before ---- <!--T:42--> Text after |
Text before Text after |
Bullet list |
<!--T:46--> * Start each line * with an [[Wikipedia:asterisk|asterisk]] (*). ** More asterisks give deeper *** and deeper levels. * Line breaks <br />don't break levels. *** But jumping levels creates empty space. Any other start ends the list. |
Any other start ends the list. |
Numbered list |
<!--T:49--> # Start each line # with a [[Wikipedia:Number_sign|number sign]] (#). ## More number signs give deeper ### and deeper ### levels. # Line breaks <br />don't break levels. ### But jumping levels creates empty space. # Blank lines <!--T:50--> # end the list and start another. Any other start also ends the list. |
Any other start also ends the list. |
Definition list |
<!--T:54--> ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 |
|
Indent text |
<!--T:57--> : Single indent :: Double indent ::::: Multiple indent Usage{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} <!--T:6--> Loose test {{tip}} <!--T:7--> Loose test |
|
Mixture of different types of list |
<!--T:61--> # one # two #* two point one #* two point two # three #; three item one #: three def one # four #: four def one #: this looks like a continuation #: and is often used #: instead <br />of <nowiki><br /></nowiki> # five ## five sub 1 ### five sub 1 sub 1 ## five sub 2 Usage{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} <!--T:6--> Loose test {{tip}} <!--T:7--> Loose test |
|
Preformatted text |
<!--T:65--> Start each line with a space. Text is '''preformatted''' and ''markups'' '''''can''''' be done. Usage{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} <!--T:6--> Loose test {{tip}} <!--T:7--> Loose test |
Start each line with a space. Text is preformatted and markups can be done. |
Preformatted text blocks |
<!--T:69--> <nowiki>Start with a space in the first column, (before the <nowiki>). <!--T:70--> Then your block format will be maintained. This is good for copying in code blocks: <!--T:71--> def function(): """documentation string""" <!--T:72--> if True: print True else: print False</nowiki> |
Start with a space in the first column, (before the <nowiki>). <!--T:74--> Then your block format will be maintained. <!--T:75--> This is good for copying in code blocks: <!--T:76--> def function(): """documentation string""" <!--T:77--> if True: print True else: print False |
Paragraphs
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <br />
.
HTML tags
Some HTML tags are allowed in MediaWiki, for example <code>
, <div>
, <span>
and <font>
. These apply anywhere you insert them.
Description |
You type |
You get |
---|---|---|
Inserted |
<ins><!--T:86--> Inserted</ins> <!--T:87--> or <u><!--T:88--> Underline</u> |
Inserted or Underline |
Deleted |
<s><!--T:93--> Struck out</s> <!--T:94--> or <del><!--T:95--> Deleted</del> |
or
|
Fixed width text |
<code><!--T:100--> Source code</code> <!--T:101--> or <tt>Fixed width text</tt> |
or Fixed width text |
Blockquotes |
<!--T:105--> Text before <blockquote><!--T:106--> Blockquote</blockquote> <!--T:107--> Text after |
Text before
Text after |
Comment |
<!--T:112--> <!-- This is a comment --> Comments are visible only in the edit zone. |
Comments are visible only in the edit zone. |
Completely preformatted text |
<pre> <!--T:115--> Text is '''preformatted''' and ''markups'' '''''cannot''''' be done</pre> Usage{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} <!--T:6--> Loose test {{tip}} <!--T:7--> Loose test |
<!--T:117--> Text is '''preformatted''' and ''markups'' '''''cannot''''' be done |
Customized preformatted text |
<pre style="color: red"> <!--T:119--> Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done </pre> Usage{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} <!--T:6--> Loose test {{tip}} <!--T:7--> Loose test |
<!--T:121--> Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done |
continued:
Description |
You type |
You get |
---|---|---|
Customized preformatted text with text wrap according to available width |
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"> <!--T:127--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> </pre> |
<!--T:128--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> |
Preformatted text with text wrap according to available width</translate> |
<code> <!--T:130--> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.</translate> </code> |
|