UCT EE Wiki:Editing

From UCT EE Wiki
Jump to navigation Jump to search

Editing Requirements[edit]

Anyone is able to edit and created pages, but those pages will not go live until approved by a moderator. Only users with accounts and moderation privileges are able to approve edits.

Moderating[edit]

For users with moderation privileges, you can see awaiting moderation at Special:Moderation

Philosophy of The Wiki[edit]

The goals of this wiki are to:

  • Provide a single point of access for staff or students looking for information that could assist them in their studies, research, or teaching activities
  • Provide information on tools, software, hardware, and other resources available in the UCT EE Department
  • Provide information in a way that is both comprehensive yet summative and can be used beyond just the initial reasons for creating the entry
    • Essentially, the information on this wiki should be usable by anyone interested in using the tools

Data Management and Page Categorization[edit]

Each page should have at least one category. To see what categories are currently on the wiki, visit All Pages. If you feel creation of a new category is valid, please go ahead and create it. Course codes are not to be used as categories.

Creating a new Category[edit]

You can view categories at All Pages. Categories are added to a page by writing [[Category:Name]] at the top of the page.

If you're uncertain if a category exists or not, visit All Pages. If you do create a new category, it won't show in All Pages until you create the category page.

To create a page entry for a new category:

  1. Add the category in the editor
  2. Save your changes
  3. Scroll down to the bottom of the page
  4. Click the new category name (it will be in red if it does not yet exist)

Namespaces[edit]

MediaWiki has the option for something known as "Namespaces". Certain pages can exist within particular namespaces, allowing for separation of user privileges and ideas. Usually, all pages go within the main namespace. However, when there are multiple pages relating to a single topic, it may be useful to separate these pages in to their own Namespace. For example, the RaspberryPi namespace contains everything that relates to only the Raspberry Pi.

While any user can create a new category, only administrators can create a new namespace. If you feel a new namespace is worth creating, please email ucteewiki[at]gmail.com

Namespaces are worth considering when there is too much data for a single topic to fit on one page.

Tips 'n Tricks[edit]

Collapsible Sections[edit]

Collapsible Sections can be quite useful for hiding in-depth content and making a page more "browsable". Collapsible sections are created as follows. Note the use of the "Section" keyword in the span class and div id. It needs to be unique for each collapsible section on your page, otherwise it will collapse or open multiple sections. Setting the "mw-collapsed" class in the div will mean the section starts collapsed.

<span class="mw-customtoggle-Section" style="font-size:small; display:inline-block; "><span class="mw-customtoggletext" data-expandtext="Illuminate" data-collapsetext="Deluminate">[Show/hide]</span></span>
<div  id="mw-customcollapsible-Section" class="mw-collapsible mw-collapsed">
Here's collapsible content!
</div>

will result in the following:

[Show/hide]

Here's collapsible content!

Code Highlighting[edit]

Code highlighting is supported by the SyntaxHiglight package. To use it is quite simple. The following code

<syntaxhighlight lang="python" line='line'>   
def addition(a, b):   
	return a + b   
</syntaxhighlight>

Creates this result:

1 def addition(a, b):
2 	return a + b