You can view this as a regular page, or use the start presentation button below.
Start presentation
Slide 1: Welcome
This is a brief introduction to Foswiki, the wiki engine used by the Flatiron Institute Documentation Center.
The goal is to help you easily create your own pages, or edit existing ones.
If you want to play around and test things, you can go into the
Sandbox under the Wiki Help menu.
Slide 2: Terminology
- Web
- a section of the documentation. Eg: SCC, Centers
- Topic
- a page in the documentation. Eg: MPI, Slurm
- Wikiword
- in Foswiki's lingo, a wiki word is something used to name a topic internally. eg:
MyNewTopic
- Category
- related topics can be assigned categories. Categories are organized in a tree
- Tag
- topics can have tags, which will be used by the search engine when indexing
Slide 3: How to add new content?
- When you click on the + New button, you will be presented with a choice:
- Default: this corresponds to a topic without a category
- Category: create a new category
- Classified Topic: this is what you most likely want to use when adding new content
Error: (3) can't find AddNewMarked.png in System
Slide 4: Creating a new topic
- Click the + New button and select "Classified Topic"
- Edit the page!
- The tabs are used to set categories and tabs, but also to change the look and feel
- If you do not like WYSIWYG editors, you can always disable it for a topic under Settings
Error: (3) can't find TopicEditTabs.png in System
Slide 5: The basics (1): sections and subsections
In order to create titles (which will be displayed in the Table of Contents) simply use the following:
-
--- Followed by several plus + signs and a space are used to create sections, subsections etc.
- Up to 5
+, a single one is reserved for topic titles
- Example:
---++ My chapter
- To create bullets, simply use 3 spaces, a star
* then a space * My bullet
- Sub-bullets: just add 3 more spaces for each level. Aka 6, then 9, then 12
- To created ordered lists, use 3 spaces, a character
1, then a space 1 First item
- Use
1 everywhere, it will autoincrement!
Slide 6: The basics (2): links
- Links: they are created using the
[[LinkTo][label]] syntax
- LinkTo can be:
-
label is optional. It is what will be displayed on the page
- bold text is using
*bold text*
- italics is using underscores:
_italics_
- bold and italics uses two underscores:
__bold and italics__
- Colored text is obtained using
%COLOR_NAME%text%ENDCOLOR%
- There are several pre-defined info boxes (HTML
div) that have CSS styles attached to them. Examples:
This is a piece of information: <div class='foswikiInfoMessage'>
This is a warning: <div class='foswikiWarningMessage'>
Slide 8: The basics (4): code
- To show highlighted code, use
<sticky>
%CODE{"language_used"}%
The code you want to demonstrate
%ENDCODE%
</sticky>
- For single lines of code, use the equal sign
= Example: =code sample=
| What is it? |
MediaWiki |
Foswiki |
| Bold + Italic |
'''''text''''' |
__text__ |
| Bold text |
'''text''' |
*text* |
| Italic text |
''text'' |
_text_ |
| Headings 1 |
= Heading = |
---+ Heading |
| Headings 2 |
== Heading == |
---++ Heading |
| What is it? |
MediaWiki |
Foswiki |
| Link |
[[Section:Page]] |
[[Web.Topic]] |
| Link |
[[Page|Label]] |
[[Topic][Label]] |
| Anchor |
[[#anchor]] |
[[#anchor]] |
| External |
[url Label] |
[[url][Label]] |
Slide 10: Structuring a page
You should try and do the following: (eg:
Slurm)
- A short description of what the topic is about
- A cheatsheet showing the most used command
<div class='fiCheatsheetMessage'>...</div>
- The table of content:
%TOC%
- The content itself, using
---++ titles
Slide 11: Tips and Resources