Difference between revisions of "Getting Started With MediaWiki"

From FRC11 - Mentor Wiki
Jump to navigation Jump to search
(added server code organization.)
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
* [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])
 
* [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 ===
 
=== MediaWiki Formatting Tips ===
  
−
* To make code blocks, indent the content with at least 1 space.
+
* '''Extra indentation''' - start the line with a colon <code> : </code>.  Use more colons for more indentation (tab stops).  They also reset the list counts.
−
* To put URLs into code blocks without being acted upon use <nowiki><nowiki> </nowiki></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.
+
* '''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>
−
* You can also use <nowiki><pre></pre></nowiki> to set off preformatted text <pre>like on this line,</pre>though nesting of ''pre'' tags seems a bit buggered.  
+
* '''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.)]
−
* The <nowiki><pre></pre></nowiki> tags put items on a separate line.  To just set off preformatted text inline <code>like this</code>, use <nowiki><code> </code></nowiki>, or for <tt>text without the box,</tt> just use <nowiki><tt> </tt></nowiki>.
+
* '''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'''
−
* To make numbered lists, surround the list with <nowiki><ol start> </ol start></nowiki> tags, then start each line with a hashtag.
+
* '''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''
−
* Colons at the start of a line cause indents, more colons, more tab stops.  They also reset the list counts.
+
* '''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>
 
* Put hidden comments (only visible when editing) in your markup by putting them in like this: <pre><!-- This is a comment --\></pre>
  
Line 29: Line 57:
 
<ol start="2">
 
<ol start="2">
 
<li>It's easiest if you remove special characters and spaces from the file name prior to upload.</li>
 
<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 the /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>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/FileName.ext Viewable link text to the File]</nowiki></pre></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>
 
<li>Replace spaces in the name with <code>%20</code>; better yet exclude spaces (see 2).</li>
 
</ol>
 
</ol>
Line 37: Line 65:
 
*<code>/www/</code>                      : off root of filessytem- the main mort11.com site is here
 
*<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/mentor.wiki</code>            : the main mentor wiki root.
−
*<code>/www/downloads/mentor.wiki</code>  : the main mentor wiki uploaded file repository.  
+
*<code>/www/downloads/mentor.wiki</code>  : the main mentor wiki uploaded file repository.
−
 
 
−
 
 
−
 
 
−
 
 
  
 
=== Test Page ===
 
=== Test Page ===

Latest revision as of 20:44, 6 January 2020

Using MediaWiki

Consult the User's Guide for information on using the wiki software.

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.)
  • 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 text
    like 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.

More details about Categories

Images and Files

  1. 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
  1. It's easiest if you remove special characters and spaces from the file name prior to upload.
  2. 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.
  3. 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]
  4. 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.