| Diapositive ^ |< << Diapositiva 1 di 44 >> >| |
A wiki (also called WikiWiki or WikiWikiWeb) is a collection of websites, which not only can be read, but can also be edited by the users directly and simply. wikiwiki is Hawaiian and means "fast".
The first WikiWikiWeb was developed and put into operation by Ward Cunningham in 1995. The idea of editable content in the World Wide Web dates from the original ideas of the inventor of the World Wide Web, Tim Berners-Lee.
safe: MoinMoin remembers all old page versions.
MoinMoin is software to run a wiki.
It is available under the GPL and implemented in the programming language Python. Contributions can be made by also using the GPL and Python.
| Diapositive ^ |< << Diapositiva 2 di 44 >> >| |
MoinMoin has many ways to find information in the wiki:
Search field in the navigation area on the top of the page
For a title search, type in the search keywords and hit "enter" (or click on title).
For a full-text search, type in the search keywords and click on text.
Menu item FindPage
The title search can also be used to quickly navigate to pages that you only roughly know the title of.
You can find further information on the help page HelpOnSearching.
RecentChanges: The latest changes made to the wiki.
SiteNavigation: The starting point for exploring the wiki.
WikiSandBox: You can experiment here as much as you want.
FindPage: Even more ways to browse the wiki.
TitleIndex: An alphabetical list of all page names.
| Diapositive ^ |< << Diapositiva 3 di 44 >> >| |
In a wiki, lots of things can change in a short time, since anyone can edit, add, or remove pages at any time.
For this reason you can easily follow these changes on the page RecentChanges.
Listed for every change is:
If you are logged in to the wiki, you can set a temporal bookmark using this page. In that case, the wiki will remember which changes you have already seen and will only display the new ones after that.
| Diapositive ^ |< << Diapositiva 4 di 44 >> >| |
Using a wiki is often possible without creating an account (this depends on the security preferences).
However, using the wiki with an account is easier and better, because you can:
set a temporal bookmark on RecentChanges.
To create an account, use the link register in the navigation area. Then you will have to enter:
a name (it is a good idea to use FirstnameLastname).
Then click on Create profile.
The account will be created and you can log in to the wiki using your user name and password.
You are logged in if you see the user name in the navigation area.
| Diapositive ^ |< << Diapositiva 5 di 44 >> >| |
After account creation and login, you can change your user preferences and settings (click on the link Impostazioni at the top of the page).
The default values should be fine for most of the preferences, but you might want to change:
Then click on the save button at the bottom of the page.
| Diapositive ^ |< << Diapositiva 6 di 44 >> >| |
After creating an account you can see your own name in the navigation area, which is linked to a page of the same title: your personal homepage!
If you click on this link, you can see one of the unique characteristics of wikis for the first time: instead of getting a 404 not found error when a non-existent page is called, the wiki helps you create the page.
After following the instructions displayed, the wiki will display a template of your own homepage in a form.
You can change this template, give an optional comment, and then save the page by clicking save.
| Diapositive ^ |< << Diapositiva 7 di 44 >> >| |
We just met it while creating your own homepage: the text-based editor of MoinMoin. You are, of course, not limited to only using it for that, because you can also use it to change any other page in the wiki.
You can do that simply by clicking on edit or edit (text) in the navigation area and MoinMoin will bring you to the text editor for the current page.
You can't mess anything up, because the previous version of the page is always saved and can be restored if needed.
It is important to frequently use the preview function while editing a page, since using it will tell MoinMoin to create a backup of the editor's current content.
When you're done, you should enter an appropriate comment (which will then appear on RecentChanges and in the history of the page) and click save.
Should there be two people editing a page at the same time, the first person can save without problems. The second person will get a warning and should merge the first person's changes with his own. If you want to edit a page on your own, you should state that on the top of the page.
You should not go back to the editor page with the "back" button of the browser after editing, because this can lead to strange editing conflicts. Just use MoinMoin's edit button again.
If you do not want to save, but instead discard the changes, you should click cancel, so that MoinMoin knows that you are done editing the page.
Further information can be found at HelpOnEditing.
| Diapositive ^ |< << Diapositiva 8 di 44 >> >| |
The usual hot keys work in the editor:
Shift + arrow for select
Ctrl + C for copy
Ctrl + X for cut
Ctrl + V for insert
Ctrl + Z for undo
Ctrl + Y for repeat
Of course you can also select with the mouse and use your browser's editing features.
Linux / X11: A left doubleclick selects and copies a word, and a click on the middle mouse key is insert.
| Diapositive ^ |< << Diapositiva 9 di 44 >> >| |
MoinMoin does not simply use HTML (the HyperText Markup Language usually used for websites), but its own, simplified MoinMoin Wiki Markup Language, MoinMoin's convention for the input of content.
<h1>Headline</h1> <p>This is a link to my own homepage: <a href="/FirstnameLastname">FirstnameLastname</a></p> <p>A list: <ul> <li>foo</li> <li>bar</li> </ul> </p>
= Headline = This is a link to my own homepage: FirstnameLastname A list: * foo * bar
The MoinMoin wiki markup will be explained in more detail on the following pages.
| Diapositive ^ |< << Diapositiva 10 di 44 >> >| |
The simplest way to enter text into a wiki is similar to doing so in a a word processor.
You just start writing.
The only anomaly is that you have to hit "enter" twice for a paragraph:
First paragraph. Still first paragraph. Second paragraph. Third paragraph.
First paragraph. Still first paragraph.
Second paragraph.
Third paragraph.
First part. ---- Second part.
First part.
Second part.
| Diapositive ^ |< << Diapositiva 11 di 44 >> >| |
= First headline level with =-character = == Second == === Third === ==== Fourth ==== ... (up to "Sixth")
... (up to "Sixth")
If a headline isn't displayed correctly, it is usually because:
| Diapositive ^ |< << Diapositiva 12 di 44 >> >| |
My pets: * Dog * Cat * Mouse
My pets:
To do: 1. Feed dog 1. Feed cat 1. Let out mouse
To do:
MoinMoin can count on its own!
The number of leading spaces defines the hierarchical level of the list.
There are more examples of lists at HelpOnLists.
| Diapositive ^ |< << Diapositiva 13 di 44 >> >| |
Wiki markup input |
Display |
''accentuated (italics)'' |
accentuated (italics) |
'''strongly accentuated (bold)''' |
strongly accentuated (bold) |
'''''bold italics''''' |
bold italics |
__underlined__ |
underlined |
--(crossed out)-- |
crossed out |
`monospace` |
monospace |
More at HelpOnEditing.
| Diapositive ^ |< << Diapositiva 14 di 44 >> >| |
|| one || two || three || || four || five || six ||
one |
two |
three |
four |
five |
six |
||||||<tablewidth="80%">'''Headline'''|| ||Cell 1||Cell 2||Cell 3|| ||<rowspan=2> Two lines||||<bgcolor="#AAAAFF"> Two columns|| ||<rowbgcolor="#FFFFAA">Cell 2||Cell 3||
Headline |
||
Cell 1 |
Cell 2 |
Cell 3 |
Two lines |
Two columns |
|
Cell 2 |
Cell 3 |
|
|| Narrow ||<:99%> Broad ||
Narrow |
Broad |
||<|2> 2 lines || line 1 || || line 2 || ||<-2> line 3, 2 columns broad ||
2 lines |
line 1 |
line 2 |
|
line 3, 2 columns broad |
|
||<(50%> left ||<^|3> up ||<v|3> down || ||<:> mid || ||<)> right ||
left |
up |
down |
mid |
||
right |
||<#FF0000> red ||<#00FF00> green ||<#0000FF> blue ||
red |
green |
blue |
| Diapositive ^ |< << Diapositiva 15 di 44 >> >| |
One of the most important features of the wiki is the internal linking to other wiki pages, therefore it is quite simple.
If you WriteWordsTogether like FistnameLastname or CamelCase or MoinMoin, so that there are at least two changes between capital letters and lower case letters, MoinMoin will automatically link this word to the page of the same name.
This is quite simple, because wiki markup isn't necessary. But the unusual syntax isn't everyone's cup of tea, so there is one more alternative, the so-called "free link".
CamelCase !CamelCaseButNotLinked
CamelCase CamelCaseButNotLinked
If you want to link pages, which aren't in CamelCase or if you just don't like CamelCase, you can also link this way:
A [[free link]] and [[other page|another page]].
A free link and another page.
If you click on the page name in the navigation area, the wiki looks for pages which link to this page name.
This can be used for so-called wiki badges. You just write somewhere:
ToDo: Call costumer foobar regarding ...
ToDo is CamelCase, so it links to a homonymous page, which isn't very exiting.
But you can click on the page name on the page ToDo and lo and behold, you find every page that also includes a ToDo.
| Diapositive ^ |< << Diapositiva 16 di 44 >> >| |
You can, of course, also link to external content on the internet.
http://example.net/
[[http://moinmoin.in/|MoinMoin Wiki]]
ftp://example.org/pub/
{{http://static.moinmo.in/logos/moinmoin.png}}
As you can see, [[...]] sets a link to the target, {{...}} embeds the target, which is especially useful for pictures.
| Diapositive ^ |< << Diapositiva 17 di 44 >> >| |
With MoinMoin you can directly append files to a wiki page.
[[attachment:letter.txt]]
{{attachment:foto.jpg}}
As long as the files aren't uploaded:
You can click on it and upload the file from your computer's file system to the wiki using your browser. Then the design is regular and:
Further informations on HelpOnActions/AttachFile
| Diapositive ^ |< << Diapositiva 18 di 44 >> >| |
MoinMoin also supports some graphical symbols, like the so called smileys that frequently appear in e-mails and chats:
{1} {2} {3} |
|
/!\ (!) (./) {X} {i} {OK} |
|
{*} {o} |
|
:) B-) :( X-( |
|
For more see HelpOnSmileys.
| Diapositive ^ |< << Diapositiva 19 di 44 >> >| |
The following four chapters are about advanced details. If you don't care about this, you can just skip them.
MoinMoin is built in a quite modular way, so its functions are expandable by using plug-ins. Macros, parsers, actions, etc. can either be built-in, included, or installed as a plug-in.
A macro is entered as wiki markup and it processes a few parameters to generate an output, which is displayed in the content area.
A parser is entered as wiki markup and it processes a few parameters and a multiline block of text data to generate an output, which is displayed in the content area.
An action is mostly called using the menu (or a macro) and generates a complete HTML page on its own.
| Diapositive ^ |< << Diapositiva 20 di 44 >> >| |
A macro is called using "<<macroname(parameter)>>". Parameters vary from macro to macro and are sometimes not used.
<<TableOfContents>> ---- Some text with a footnote.<<FootNote(This is the footnote.)>> || <<MonthCalendar>> || <<MonthCalendar(,2000,1)>> || ---- A certain moment - world wide: <<DateTime(2006-01-26T23:03:25Z)>>
Some text with a footnote.1
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A certain moment - world wide: 2006-01-26 23:03:25
| Diapositive ^ |< << Diapositiva 21 di 44 >> >| |
{{{#!python
def hello(name):
print "Hello %s" % name
}}}
1 def hello(name):
2 print "Hello %s" % name
| Diapositive ^ |< << Diapositiva 22 di 44 >> >| |
Some examples of built-in actions:
file attachments (AttachFile action).
| Diapositive ^ |< << Diapositiva 23 di 44 >> >| |
As an alternative to the input of wiki markup using the simple text editor, MoinMoin also offers a graphical WYSIWYG (what you see is what you get) editor, which is similar to usual word processing.
Technical requirements: an up-to-date version of Mozilla/Firefox/Netscape or Internet Explorer with JavaScript activated.
You can set the preferred editor in your user preferences, but you can also switch to the other editor while editing.
Advantages of the GUI editor are that it is:
Disadvantages of the GUI editor are that it:
| Diapositive ^ |< << Diapositiva 24 di 44 >> >| |
The easiest and best way to create more pages is to:
think of a good page name.
the list of similar page names shown to ensure that there isn't any slightly different named page on the same topic.
This method makes sure that new pages are always accessible from links on already existing pages.
| Diapositive ^ |< << Diapositiva 25 di 44 >> >| |
It is important that in public wikis, where many people work together (that often don't know each other), you always act benevolently to others, as long as no one has acted in the opposite way to you.
So, if someone deletes a sentence you wrote yourself, it might be that it was simply wrong or should not have been on that page.
In the same way, you should, of course, also exhibit benevolent behaviour yourself, and not do things like falsifying other's opinions. You should not change or delete anything unless you are sure about it.
The personal homepage should normally be considered as "property" of the particular user and should not changed, apart from things like messages to the user.
| Diapositive ^ |< << Diapositiva 26 di 44 >> >| |
A wiki is usable for quite a few applications, because there few requirements to use it and the content can be anything. You can use it for everything that can be displayed by linked text pages.
| Diapositive ^ |< << Diapositiva 27 di 44 >> >| |
Many conventional websites use very branched structures with many hierarchy levels.
In wikis linking is heavily used. A simpler structure is often used to simplify matters:
Sub pages are named as MainPage/SubPage
A wiki gives much freedom to the users; there aren't input masks like in database applications, but you can, in principle, do whatever you want and do it however you want.
Of course, you should avoid that to prevent complete chaos.
That's why it's usual for new wikis to think about structures and conventions, such as the:
decision to use CamelCase or free links?.
It's usual for older wikis to simply carry on using existing structures.
Wiki-Wiki is hawaiian and means fast
Fast - fast editing, communicating and easy to learn
Open - everybody may read and edit everything
Uncomplicated - everything works in a standard browser
Easy - no HTML knowledge necessary, simply formatted text
Simple - Content over Form (content counts, not the super-pretty appearance)
Secure - every change is archived, nothing gets lost
Interlinked - Links between pages are easy to make
Flexible
Creating documentation and slide shows
For details see HelpForBeginners.
Help with problems or questions: HelpContents (Icon(help)) and HelpMiscellaneous/FrequentlyAskedQuestions
Name (appears on RecentChanges)
Link with User-ID (
in any case, put a bookmark on that)
Navigation: Quicklinks, Icons link to system actions (HelpOnNavigation)
"Recently visited pages" (see UserPreferences)
Quick search and additional actions (HelpOnActions)
Details see HelpForBeginners.
To edit a page, just click on Icon(edit) or on the link "EditText" at the end of the page. A form will appear enabling you to change text and save it again. A backup copy of the previous page's content is made each time.
You can check the appearance of the page without saving it by using the preview function - without creating an entry on RecentChanges; additionally there will be an intermediate save of the page content, if you have created a homepage (Icon(home) is visible).
After editing pages, please leave the edit form by "Save Changes" since otherwise your edits will be lost!
For details see HelpOnEditing.
"Check spelling" examines the text for unknown words.
Within the editor, the usual hotkeys work:
Undo: CTRL+Z |
Redo: CTRL+Y |
Copy: CTRL+C |
Paste: CTRL+V |
Home: CTRL+Home |
End: CTRL+End |
If you discover an interesting format somewhere, just use the "raw" icon to find out how it was done.
In UserPreferences, you can set up the editor to open when you double click a page.
You can subscribe to pages to get a mail on every change of that page. Just click on the envelope Icon(subscribe) at top right of the page.
To add special formatting to text, just enclose it within markup. There are special notations which are automatically recognized as internal or external links or as embedded pictures.
Input |
Display |
''italic'' and '''bold''' and __underlined__ |
italic and bold and underlined |
`typewriter` |
typewriter |
^super^script and ,,sub,,script |
superscript and subscript |
PageReference WikiSandBox |
|
MoinMoin:HelpContents |
HelpContents (InterWiki-Link) |
http://www.web.de/ |
|
http://www.pythonwiki.de/wiki/img/moinmoin.gif |
|
:) B) :)) ;) :D :( :-? |
|
/!\ <!> (!) (./) {OK} {X} {i} |
|
{1} {2} {3} |
|
For details see HelpOnFormatting, HelpOnLinking and HelpOnSmileys.
Headlines are placed on a line of their own and surrounded by one to five equal signs denoting the level of the headline. The headline is in between the equal signs, separated by a space. Example: BR == Second Level ==
A common error is to insert an additional blank after the ending equal signs!
Paragraphs are lines separated by empty lines or other block structures. This means those lines which directly follow each other belong to one paragraph.
Preformatted text (e.g. a copy of an email) should be placed inside three curly braces {{{ ... }}}:
First Line ... Last Line
For better visual separation, horizontal lines can be generated by using four dashes.
For details see HelpOnHeadlines and HelpOnRules.
indented text without bullet
For details see HelpOnLists.
Tables appear if you separate the content of the columns by ||. All fields of the same row must be also on the same line in the editor.
Markup:
||<rowbgcolor="#FFFFE0"> '''Column 1''' |||| '''Column 2 & 3''' || ||<)> 1 ||<:> 2 ||<(> 3 ||
Display:
Column 1 |
Column 2 & 3 |
|
1 |
2 |
3 |
For details see HelpOnTables.
A macro is called by "[[MacroName(parameters)]]".
TableOfContents - show a local table of contents
Anchor - defines a link target line
FootNote - generates a footnoteFootNote(Footnotes look like this.)
PageList - generates lists of pages with titles matching a pattern
For details see HelpOnMacros.
New pages are created by simply adding a new WikiName to an existing page and clicking on it after saving the existing page.
This brings up a page with a variety of possibilities to create the new page:
click on create page to start with an empty page or
Below the list of templates you will also find a list of existing pages with a similar name. You should always check this list because someone else might have already started a page about the same subject but named it slightly differently.
For details see HelpOnPageCreation and WikiName.
Actions operate either on a single page or on the whole Wiki.
AttachFile: Attach files to a page (HelpOnActions/AttachFile)
DeletePage: Delete a page (after a security question)
LikePages: Lists pages with similar title
LocalSiteMap: List of all pages that are referred to, up to a maximum of 4 levels
SpellCheck: Call check spelling for the current page (HelpOnSpellCheck)
For details see HelpOnActions.
Basic principle: Anybody logged in can edit anything.
Exceptions:
If you want to edit a page without being disturbed, just write a note to that effect at the top of the page and save that change first.
In general, do follow any hints given on a page, there is generally no enforced limit, but you should not blindly ignore other people's wishes.
don't create arbitrary wikinames (OracleDatabase, not OraCle)
common postfixes (same page type, e.g. ...Index)
Categories (see CategoryCategory)
/SubPages (allow shorter links, automatic correlation: HelpOnEditing/SubPages)
For the exercises we use your own Wiki-homepage which is usually based on a WikiName FirstnameLastname:
Configure your UserPreferences.
create and change your homepage (normally FirstnameLastname)
view the changes in the RecentChanges.
Include(WikiCourse/BasicIntroduction/000 What is a Wiki?) Include(WikiCourse/BasicIntroduction/050 First Steps) Include(WikiCourse/BasicIntroduction/060 How do I navigate?)
Include(WikiCourse/BasicIntroduction/090 The Editor) Include(WikiCourse/BasicIntroduction/091 Tips on the Editor) Include(WikiCourse/BasicIntroduction/100 Text markup) Include(WikiCourse/BasicIntroduction/110 Headlines and Paragraphs) Include(WikiCourse/BasicIntroduction/130 Lists) Include(WikiCourse/BasicIntroduction/150 Tables) Include(WikiCourse/BasicIntroduction/180 Macros) Include(WikiCourse/BasicIntroduction/195 Actions)
Include(WikiCourse/BasicIntroduction/200 Wikiquette) Include(WikiCourse/BasicIntroduction/210 Organisation and Structure)
This is the footnote. (1)