Difference between revisions of "Getting Started With MediaWiki"
Jump to navigation
Jump to search
Dsteinmark (talk | contribs) |
Dsteinmark (talk | contribs) |
||
| (27 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Formatting Formatting Help] (Note that this link is available on every editing page by clicking '''Editing help'''.) | * [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Formatting Formatting Help] (Note that this link is available on every editing page by clicking '''Editing help'''.) | ||
* [https://www.mediawiki.org/wiki/Help:Tables Formatting Tables] | * [https://www.mediawiki.org/wiki/Help:Tables Formatting Tables] | ||
| + | * [https://www.mediawiki.org/wiki/Help:Images Images] (not enabled in this manner, [https://mort11.com/mentor.wiki/index.php/Getting_Started_With_MediaWiki#Images_and_Files see below]) | ||
| − | + | === Sections === | |
| + | * Major and minor sections are demarked with by using a title with 2 or more equal signs on each side. Both will show up automatically in a Table of Contents at the top of the page is there are enough of them. | ||
| + | * For Major sections, use 2: <code><nowiki>== Level 2 headings are indicated like this == </nowiki></code> | ||
| + | * For Minor sections, use 3 or more: <code><nowiki>=== Level 3 headings are indicated like this === </nowiki></code> | ||
| − | * | + | === Links === |
| − | * | + | * Links can be ''external'' or ''internal'' |
| − | * | + | * Create an ''external link'' like this, for example: <code><nowiki>[https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Formatting Formatting Help]</nowiki></code>. |
| − | * | + | :: This shows up like this: [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Formatting Formatting Help] |
| + | * Create an ''internal link'' like this, for example: <code><nowiki> [[Test Page]]</nowiki></code> | ||
| + | :: which shows up like this: [[Test Page]]. | ||
| + | ::* For this type of link just use the page name. | ||
| + | ::* If the page has not yet been created, clicking the link gives the ability to create a page with the name specified. | ||
| + | ::* (Try not to accidentally create pages from typos, they can be hard to delete.) | ||
| + | * Or for an internal link with a different text than the name of the page, use a format like this: <code><nowiki> [[Test Page | More descriptive text to the Test Page]] </nowiki></code>, | ||
| + | :: which shows up like this: [[Test Page | More descriptive text to the Test Page]] | ||
| − | == | + | === MediaWiki Formatting Tips === |
| − | * [https://www.mediawiki.org/wiki/ | + | |
| − | * | + | * '''Extra indentation''' - start the line with a colon <code> : </code>. Use more colons for more indentation (tab stops). They also reset the list counts. |
| − | + | * '''Bulleted lists''' - just start with an asterisk <code> * </code>. More bullets gives deeper indentation. Or combine with the colon indentation character like this <code > ::* </code> | |
| − | + | * '''Numbered lists''' - just start with a hashtag <code> # </code>. For fancier lists, use the <code><nowiki><ol start> </nowiki></code> tag, and <code><nowiki><li></nowiki> </code> designator with matching end tags. [https://www.mediawiki.org/wiki/Help:Lists#Multi-column_numbered_list (Look it up.)] | |
| − | + | * '''Bold items''' (if the fancy editor is unavailable), surround the text with 3 single quote marks, <code><nowiki> '''like this''' </nowiki></code>, which shows up like this: '''like this''' | |
| + | * '''Italic items''' (if the fancy editor is unavailable), surround the text with 2 single quote marks, <code><nowiki> ''like this'' </nowiki></code>, which shows up like this: ''like this'' | ||
| + | * '''Inline Code Blocks''' - to set off preformatted text within a block on a line, <code>like this</code>, use the code delimiter: <nowiki><code> </code></nowiki>, | ||
| + | * '''Inline preformatted text''' - For <tt>text without the box,</tt> just use <nowiki><tt> </tt></nowiki>. | ||
| + | * '''Larger Code Blocks''', indent the content with at least 1 space. This looks like this: | ||
| + | for (i = 0; i < 1, i++) { | ||
| + | if Even(i) { | ||
| + | Print(i); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | * '''Don't Format''' - to put URLs into code blocks without being acted upon use <code><nowiki><nowiki> </nowiki> text </nowiki></code> tags around your text, this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway). The ''nowiki'' tags can be used to escape other MediaWiki tags, as well, like was done here. | ||
| + | * You can also use <code><nowiki><pre> text </pre></nowiki></code> to set off preformatted text <pre>like on this line,</pre>though nesting of ''pre'' tags seems a bit buggered. | ||
| + | :* Note the <nowiki><pre></pre></nowiki> tags put items on a separate line. | ||
| + | * Put hidden comments (only visible when editing) in your markup by putting them in like this: <pre><!-- This is a comment --\></pre> | ||
| + | |||
| + | === Using ''Category'' to tag Pages === | ||
| + | |||
| + | Adding <code><nowiki>[[Category:MyCategoryName]]</nowiki></code> to the bottom of all pages in a category will provide a link to an Index, of all pages in that category. For example, see the [https://mort11.com/mentor.wiki/index.php/Category:Programming Programming Category]. | ||
| + | |||
| + | [https://m.mediawiki.org/wiki/Help:Categories#Tracking_categories More details about Categories] | ||
| + | |||
| + | === Images and Files === | ||
| + | |||
| + | # In order to incorporate images or files, you have to have them hosted externally, or uploaded to the server by one of the admins. | ||
| + | :::Brian Binovsky<br> | ||
| + | :::Dan Steinmark<br> | ||
| + | :::Jerry Olup | ||
| + | <ol start="2"> | ||
| + | <li>It's easiest if you remove special characters and spaces from the file name prior to upload.</li> | ||
| + | <li>Have them place the file in a subdirectory of /downloads/mentor.wiki directory, (/downloads at the root level, not within the main mentor.wiki directory) using eXtplorer, accessible from the Admin page.</li> | ||
| + | <li>Create a link to the file by inserting the following into your page <pre><nowiki>[https://mort11.com/downloads/mentor.wiki/Subdirectory/FileName.ext Viewable link text to the File]</nowiki></pre></li> | ||
| + | <li>Replace spaces in the name with <code>%20</code>; better yet exclude spaces (see 2).</li> | ||
| + | </ol> | ||
| + | |||
| + | Organization of the code on the server: | ||
| + | *<code>/www/</code> : off root of filessytem- the main mort11.com site is here | ||
| + | *<code>/www/mentor.wiki</code> : the main mentor wiki root. | ||
| + | *<code>/www/downloads/mentor.wiki</code> : the main mentor wiki uploaded file repository. | ||
| + | |||
| + | === Test Page === | ||
| + | |||
| + | You can use this '''[[Test Page]]''' to try things out. | ||
| + | |||
| + | == Managing this MediaWiki Site == | ||
| + | * See [[User:Admin]] for How To Administer a MediaWiki and to administer this site. | ||
Latest revision as of 20:44, 6 January 2020
Using MediaWiki
Consult the User's Guide for information on using the wiki software.
- Formatting Help (Note that this link is available on every editing page by clicking Editing help.)
- Formatting Tables
- Images (not enabled in this manner, see below)
Sections
- Major and minor sections are demarked with by using a title with 2 or more equal signs on each side. Both will show up automatically in a Table of Contents at the top of the page is there are enough of them.
- For Major sections, use 2:
== Level 2 headings are indicated like this == - For Minor sections, use 3 or more:
=== Level 3 headings are indicated like this ===
Links
- Links can be external or internal
- Create an external link like this, for example:
[https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Formatting Formatting Help].
- This shows up like this: Formatting Help
- Create an internal link like this, for example:
[[Test Page]]
- which shows up like this: Test Page.
- For this type of link just use the page name.
- If the page has not yet been created, clicking the link gives the ability to create a page with the name specified.
- (Try not to accidentally create pages from typos, they can be hard to delete.)
- which shows up like this: Test Page.
- Or for an internal link with a different text than the name of the page, use a format like this:
[[Test Page | More descriptive text to the Test Page]],
- which shows up like this: More descriptive text to the Test Page
MediaWiki Formatting Tips
- Extra indentation - start the line with a colon
:. Use more colons for more indentation (tab stops). They also reset the list counts. - Bulleted lists - just start with an asterisk
*. More bullets gives deeper indentation. Or combine with the colon indentation character like this::* - Numbered lists - just start with a hashtag
#. For fancier lists, use the<ol start>tag, and<li>designator with matching end tags. (Look it up.) - Bold items (if the fancy editor is unavailable), surround the text with 3 single quote marks,
'''like this''', which shows up like this: like this - Italic items (if the fancy editor is unavailable), surround the text with 2 single quote marks,
''like this'', which shows up like this: like this - Inline Code Blocks - to set off preformatted text within a block on a line,
like this, use the code delimiter: <code> </code>, - Inline preformatted text - For text without the box, just use <tt> </tt>.
- Larger Code Blocks, indent the content with at least 1 space. This looks like this:
for (i = 0; i < 1, i++) {
if Even(i) {
Print(i);
}
}
- Don't Format - to put URLs into code blocks without being acted upon use
<nowiki> text </nowiki>tags around your text, this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway). The nowiki tags can be used to escape other MediaWiki tags, as well, like was done here. - You can also use
<pre> text </pre>to set off preformatted textlike on this line,
though nesting of pre tags seems a bit buggered.
- Note the <pre></pre> tags put items on a separate line.
- Put hidden comments (only visible when editing) in your markup by putting them in like this:
<!-- This is a comment --\>
Using Category to tag Pages
Adding [[Category:MyCategoryName]] to the bottom of all pages in a category will provide a link to an Index, of all pages in that category. For example, see the Programming Category.
Images and Files
- In order to incorporate images or files, you have to have them hosted externally, or uploaded to the server by one of the admins.
- Brian Binovsky
- Dan Steinmark
- Jerry Olup
- Brian Binovsky
- It's easiest if you remove special characters and spaces from the file name prior to upload.
- Have them place the file in a subdirectory of /downloads/mentor.wiki directory, (/downloads at the root level, not within the main mentor.wiki directory) using eXtplorer, accessible from the Admin page.
- Create a link to the file by inserting the following into your page
[https://mort11.com/downloads/mentor.wiki/Subdirectory/FileName.ext Viewable link text to the File]
- Replace spaces in the name with
%20; better yet exclude spaces (see 2).
Organization of the code on the server:
/www/: off root of filessytem- the main mort11.com site is here/www/mentor.wiki: the main mentor wiki root./www/downloads/mentor.wiki: the main mentor wiki uploaded file repository.
Test Page
You can use this Test Page to try things out.
Managing this MediaWiki Site
- See User:Admin for How To Administer a MediaWiki and to administer this site.