Difference between revisions of "Editing help"
DigitalSoju (Talk | contribs) (→How to make a column not sortable) |
DigitalSoju (Talk | contribs) (→How to center a table) |
||
Line 53: | Line 53: | ||
</pre> | </pre> | ||
+ | So it should look like: | ||
+ | <pre> | ||
+ | |||
+ | |||
+ | <nowiki>{|class="wikitable" style="margin-left: auto; margin-right: auto;" | ||
+ | |- | ||
+ | ! header 1 | ||
+ | ! header 2 | ||
+ | ! header 3 | ||
+ | |- | ||
+ | | row 1, cell 1 | ||
+ | | row 1, cell 2 | ||
+ | | row 1, cell 3 | ||
+ | |- | ||
+ | | row 2, cell 1 | ||
+ | | row 2, cell 2 | ||
+ | | row 2, cell 3 | ||
+ | |}</nowiki> | ||
+ | </pre> | ||
{| class="wikitable" style="margin-left: auto; margin-right: auto;" | {| class="wikitable" style="margin-left: auto; margin-right: auto;" | ||
|- | |- | ||
Line 67: | Line 86: | ||
| row 2, cell 3 | | row 2, cell 3 | ||
|} | |} | ||
− | |||
===How to make a column not sortable=== | ===How to make a column not sortable=== |
Revision as of 00:55, 21 April 2011
|
Help · Cheat Sheet · Community portal |
Contents
This page is under construction. 공사중 工事中 This page is being redone to be more helpful. |
If you would like to just play around and edit a page to practice, click here.
Advanced Table functions
How to make a sortable table
Add line class="wikitable sortable"
Example:
{| class="wikitable sortable" |- ! header 1 ! header 2 ! header 3 |- | row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |- | row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |}
header 1 | header 2 | header 3 |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |
How to center a table
Add
style="margin-left: auto; margin-right: auto;"
So it should look like:
{|class="wikitable" style="margin-left: auto; margin-right: auto;" |- ! header 1 ! header 2 ! header 3 |- | row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |- | row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |}
header 1 | header 2 | header 3 |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |
How to make a column not sortable
In this example we'll make column three not sortable
{| class="wikitable sortable" |- ! header 1 ! header 2 ! scope="col" class="unsortable" | Unsortable column |- | row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |- | row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |}
header 1 | header 2 | Unsortable column |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |
Grammar Page Template
Use the "Insert Grammar Page Template" button in the Help:Toolbar.
How to create a new Page
There are several ways to start a new page.
If you (or anyone else) creates a link to an article that doesn't exist yet, the link will be coloured red, like this.
Clicking a red link, will take you to the edit page for the new article. Simply type your text, click save and the new page will be created.
Once the page has been created, the link will change from red to blue (purple for pages you've visited) indicating that the article now exists.
Also, if you search for a page that doesn't exist (using the search box and 'go' button on the left of the page) then you will be provided with a link to create the new page. (Note that this technique doesn't work if you use the 'search' button).
Don't forget to setup redirects when you create a page. If you think another person may search for the page you've created by using a different name or spelling, please create the proper redirect(s).
How to Link to Another Article or Page
The most frequently used link is the internal link. To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red. Selflinks to the current page are not transformed in URLs but displayed in bold.
See the table below for more information:
Description | You type | You get |
Internal link |
|
Main Page |
Piped link |
|
different text |
External link |
|
http://mediawiki.org |
External link, different title |
|
MediaWiki |
External link, numbered |
|
[1] |
Anchor link |
|
#See also |
Anchor link at another page |
|
Help:Images#See also |
Category link |
|
Category:Help |
Internal link to image file |
|
media:example.jpg |
Internal link to pdf file |
|
media:example.pdf |
Interwiki link |
|
Wikipedia:MediaWiki |
mailto link |
|
email me |
redirect |
|
→ Main Page |
How to add categories
Use the Help:Toolbar and click on the "Insert Category" button at the end of the page you are editing. This will add something like:
[[Category:CATEGORY NAME|WHERE TO SORT]]
where CATEGORY NAME is the name of the category you want to add it to and (optionally) WHERE TO SORT is where the page will appear, alphabetically, within the category. Any number of category tags may be added to the page - the page will be listed in all of them.
So for example, to add this page to the 'Help' category, you would use:
[[Category:Help|Categories]]
Creating a redirect
To create a redirect, you must start a new page with the name you want to direct from. Do this by typing the desired name into the search box, or straight into the URL (methods described on Help:Starting a new page)
For the text of the new page, enter the following:
#REDIRECT [[ pagename
]]
where pagename is the name of the page you want to redirect users to.
Posting an Mp3
This site uses the Flashmp3 extention to play mp3s. This site has a 5 mb limit on mp3 uploads, so use a low bitrate.
Examples
<flashmp3> mymp3.mp3
</flashmp3>
Plays an uploaded mp3-file called mymp3.mp3.
<flashmp3> http://www.somedomain.com/mp3/mymp3.mp3
</flashmp3>
Plays the remote mp3-file from the URL http://www.somedomain.com/mp3/mymp3.mp3.
<flashmp3> mymp3.mp3,yourmp3.mp3|autostart=yes|loop=yes
</flashmp3>
Plays the two uploaded files mymp3.mp3 and yourmp3.mp3 one after the other, autostarts playing when the site is loaded and loops the files.
Posting a video
This site uses the VideoFlash extention to play videos.
Examples
Youtube
Original url: http://www.youtube.com/watch?v=4lhyH5TsuPg
Wiki code:
<videoflash>4lhyH5TsuPg</videoflash>
GoogleVideo
Original url: http://video.google.it/videoplay?docid=1811233136844420765
Wiki code:
<videoflash type="googlevideo">1811233136844420765</videoflash>
DailyMotion
Original url: http://www.dailymotion.com/video/xi23l_geris-game
Wiki code:
<videoflash type="dailymotion">7fiHlJPCjcqK73xbb</videoflash>
Sevenload
Original url: http://en.sevenload.com/videos/Eh4mjir/Bewegungen-der-Natur
Wiki code:
<videoflash type="sevenload">Eh4mjir</videoflash>
Revver
Original url: http://one.revver.com/watch/138657
Wiki code:
<videoflash type="revver">138657</videoflash>
Blip
Currently blip uses urls like: http://blip.tv/file/1490573
You cannot use the above ID with the codehttp://blip.tv/play/$someIDwhich is used in this VideoFlash extension.
To get the correct ID to use click on 'embed' in Blip and extract the id used in the flash embed code
<embed src="http://blip.tv/play/AdvpMQA" type="application/x-shockwave-flash" width="640" height="510" allowscriptaccess="always" allowfullscreen="true"></embed>
Wiki code:
<videoflash type="blip">AdvpMQA</videoflash>
English |
한국어 |
中文 (简体): n/a |
日本語: n/a |
Español: n/a |
Português: n/a |
Tagalog: n/a |