Difference between revisions of "Help:Contents"

From IHE Wiki
Jump to navigation Jump to search
(Simplifying)
Line 4: Line 4:
  
 
[[WikiAccount| Create a user account]] so we can keep track of who is doing what.
 
[[WikiAccount| Create a user account]] so we can keep track of who is doing what.
 +
 +
 +
__TOC__
 +
  
 
==How to edit==
 
==How to edit==
Line 11: Line 15:
 
Read this tutorial:  http://meta.wikimedia.org/wiki/Help:Editing
 
Read this tutorial:  http://meta.wikimedia.org/wiki/Help:Editing
  
In about 2 pages it explains the basic concepts & formatting characters.  It also has loads of good links you can come back to later when you want to know more.  At that point, the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] is also a good entry page.
+
In about 2 pages it explains the basic concepts & formatting characters.  It also has loads of good links you can come back to later when you want to know more.   
  
 
==How to write==
 
==How to write==
Line 20: Line 24:
 
* [http://www.useit.com/alertbox/9710a.html How Users Read on the Web]
 
* [http://www.useit.com/alertbox/9710a.html How Users Read on the Web]
 
* [http://www.useit.com/alertbox/20030811.html Information Pollution]
 
* [http://www.useit.com/alertbox/20030811.html Information Pollution]
 +
 +
==Text Conventions==
 +
'''''<These are just provisional and should be discussed>'''''
 +
 +
Use '''bold text''' to emphasize topics.
 +
 +
Use ''<italic text in angle brackets>'' for '''instructions to editors''', i.e. text that should be replaced and explains what goes there, such as in a template
 +
 +
Use '''''<bold italic text in angle brackets>''''' when adding '''in-line comments''' about the contents of a page.
  
 
==How to use MediaWiki==
 
==How to use MediaWiki==
Line 33: Line 46:
 
The Recent Changes link in the navigation box takes you to the Recent Changes page.  Every edit to any wiki page is listed from newest to oldest.  Clicking on the (diff) link lets you see what the edit changed.  Clicking on the page link itself lets you see that version.  Clicking on the (hist) link lets you see the history of changes to that page.  
 
The Recent Changes link in the navigation box takes you to the Recent Changes page.  Every edit to any wiki page is listed from newest to oldest.  Clicking on the (diff) link lets you see what the edit changed.  Clicking on the page link itself lets you see that version.  Clicking on the (hist) link lets you see the history of changes to that page.  
  
==Conventions==
+
==Wiki Features==
'''Using Templates''' - We may have template for some types of pages (maybe referenced in the See Also section)To use the template, click it's link, click "Edit", and select and copy all the text in the edit windowThen go to your new page, and paste the template text into the edit window.
+
Neat stuff under special pages.  Explain Categories and Category Pages.
 +
Discussion Page: If you feel it useful/necessary, explain the purpose of the page or the rationale of it's structure.  If you are about to make a major change to a page, check the Discussion to make sure you aren't misunderstanding the pageIf you are going ahead with a major change, consider documenting your rationale.
 +
 
 +
Explain User page, watchlists, my contributions, Recent Changes, Look into My Talk,
  
'''Adding Instructions to Editors''' - Use ''<italic text in angle brackets>'' when adding instructions to editors, for example in a template
 
  
'''Adding In-line Comments''' - Use '''''<bold italic text in angle brackets>''''' when adding comments about the page contents
 
  
 +
==Tips & Tricks==
  
==Useful Tricks==
+
'''Quoting Text'''
  
 +
To quote text without applying the wiki formatting rules use:
 +
::<tt><nowiki>  <nowiki> ... </nowiki>  </nowiki></tt>
 +
 +
Within a nowiki section, only HTML-quoting of special characters (<>&) will occur--no other formatting rules will be applied.
 +
 +
'''Text Size'''
 +
 +
To change the font size from the normal size to <big>larger</big> or <small>smaller</small> use:
 +
 +
::<tt><nowiki>  <big> ...text  </big>      </nowiki></tt>
 +
::<tt><nowiki>  <small> ...text  </small>  </nowiki></tt>
 +
 +
'''Text Color'''
 +
 +
To change the color of the <font color=red>font</font> being displayed use:
 +
 +
::<tt><nowiki>  <font color=red> ...text </font>  </nowiki></tt>
 +
 +
'''Line Formatting'''
 +
 +
To force a hard Carriage-Return/Line-feed in the displayed document, use:
 +
 +
::<tt><nowiki>  <br />  </nowiki></tt>
 +
 +
To center a text line, or all text between start HTML Tag and end HTML tag, use:
 +
 +
::<tt><nowiki>  <center>...</center>  </nowiki></tt>
 +
 +
;Term:Definition (indented)
 +
use:
 +
::<tt><nowiki>  ;Term:Definition (indented)  </nowiki></tt>
 +
 +
'''Using Templates'''
 +
 +
We may have templates for some types of pages (maybe referenced in the See Also section).  To use the template, click it's link, click "Edit", and select and copy all the text in the edit window.  Then go to your new page, and paste the template text into the edit window.
  
 
'''Table of Contents'''
 
'''Table of Contents'''
  
All pages with more than two headers include a Table of Contents at the top of the page with each of the section headers included as links.  To move the TOC, insert the text <nowiki>__TOC__</nowiki> at the point in the page where you would like it to appear.  To remove the TOC, insert the text <nowiki>__NOTOC__</nowiki> at the start of the page.
+
All pages with more than two headers include a Table of Contents at the top of the page with each of the section headers included as links.   
 +
 
 +
To move the TOC, insert the text <nowiki>__TOC__</nowiki> at the point in the page where you would like it to appear.   
 +
 
 +
To remove the TOC, insert the text <nowiki>__NOTOC__</nowiki> at the start of the page.
  
 
'''Combined Pages'''
 
'''Combined Pages'''
Line 52: Line 106:
 
To combine several existing pages into a single meta page when it makes sense to do so for viewing or printing, create a new page with the following syntax:
 
To combine several existing pages into a single meta page when it makes sense to do so for viewing or printing, create a new page with the following syntax:
  
:<nowiki>=Optional Heading=</nowiki>
+
::<tt><nowiki>   ==Optional Heading=</nowiki></tt>
:<nowiki>{{:Page page1}}</nowiki>
+
::<tt><nowiki>   {{:Page page1}}       </nowiki></tt>
:<nowiki>{{:Page page2}}</nowiki>
+
::<tt><nowiki>   {{:Page page2}}       </nowiki></tt>
:''and so on''
+
::''and so on''
 
 
  
 
'''Printing Pages'''
 
'''Printing Pages'''
Line 72: Line 125:
 
* File->Page Setup-> reset the margins
 
* File->Page Setup-> reset the margins
 
* Tools->Templates and Add-ins
 
* Tools->Templates and Add-ins
* '''''<explain how to import/overwrite the appropriate paragraph styles>'''''
+
* '''''<still need to explain how to import/overwrite the appropriate paragraph styles>'''''
 
* print from Word
 
* print from Word
 
 
  
 
'''Spellchecking'''
 
'''Spellchecking'''
  
 
There are client side spell checkers that will check what you edit:
 
There are client side spell checkers that will check what you edit:
* Google Toolbar v3.0 for Explorer (http://toolbar.google.com/)
+
* Google Toolbar for Explorer (http://toolbar.google.com/)
* ieSpell v2.1.1 for Explorer (http://www.iespell.com/)
+
* ieSpell for Explorer (http://www.iespell.com/)
 
* Spellbound for Firefox (http://wiki.ehow.com/Install-a-Spell-Checker-Into-Firefox)
 
* Spellbound for Firefox (http://wiki.ehow.com/Install-a-Spell-Checker-Into-Firefox)
 
  
 
'''Uploading Files'''
 
'''Uploading Files'''
Line 89: Line 140:
 
start of the link.  E.g. <nowiki>[[:Media:NameOfYourFile.doc | link text]]</nowiki>
 
start of the link.  E.g. <nowiki>[[:Media:NameOfYourFile.doc | link text]]</nowiki>
  
 +
'''Task Lists'''
 +
 +
The [http://wiki.arandeltac.com/MediaWiki_Tasks MediaWikiTasks] plugin supports managing task lists.
 +
 +
'''Timelines'''
 +
 +
The [http://members.chello.nl/epzachte/Wikipedia/EasyTimeline/Introduction.htm EasyTimelines] plugin supports displaying annotated timelines.
  
 
'''Converting Pages to HTML Files'''
 
'''Converting Pages to HTML Files'''
Line 101: Line 159:
 
<nowiki>"mw2html.py http://172.16.16.134/wiki/ out -f"</nowiki>
 
<nowiki>"mw2html.py http://172.16.16.134/wiki/ out -f"</nowiki>
  
'''''The current problem is that it doesn't use the login cookie cached for the browser so it only gets the top page right, but otherwise looks like it is doing the right thing.'''''
+
Note: you may have a problem becausee it doesn't seem to use the login cookie cached for the browser so mw2html.py is an anonymous user so it only gets logon pages for pages that anonymous users don't have permission to view.
 
 
''I tested mw2html and it worked ok. Currently, our wiki allow anonymous users to view main page, logon page, and help page only. So mw2html.py can only get logon pages for others. Because of that, mw2html went pretty fast. I expect it will run lot longer when I allow anonymous user to view all pages.- howard''
 
 
 
 
 
  
 
'''PDF Export'''
 
'''PDF Export'''
Line 149: Line 203:
  
  
 +
==See Also==
 +
The IHE Wiki is built on MediaWiki software.  The [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide MediaWiki User's Guide] is an excellent reference.
  
'''Task Lists'''
 
 
The [http://wiki.arandeltac.com/MediaWiki_Tasks MediaWikiTasks] plugin supports managing task lists.
 
 
 
'''Timelines'''
 
 
The [http://members.chello.nl/epzachte/Wikipedia/EasyTimeline/Introduction.htm EasyTimelines] plugin supports displaying annotated timelines.
 
 
==See Also==
 
 
[http://meta.wikimedia.org/wiki/MediaWiki MediaWiki] and [http://en.wikipedia.org/wiki/Main_Page Wikipedia, the free encyclopedia] provide more information and examples of using MediaWiki.
 
[http://meta.wikimedia.org/wiki/MediaWiki MediaWiki] and [http://en.wikipedia.org/wiki/Main_Page Wikipedia, the free encyclopedia] provide more information and examples of using MediaWiki.
  
 
[http://news.zdnet.com/2036-2_22-5815948.html Wiki Introduction] provides a short video outlining the use of Wiki's for collaboration  
 
[http://news.zdnet.com/2036-2_22-5815948.html Wiki Introduction] provides a short video outlining the use of Wiki's for collaboration  
 
==Wiki Features==
 
Neat stuff under special pages.  Explain Categories and Category Pages.
 
Discussion Page: If you feel it useful/necessary, explain the purpose of the page or the rationale of it's structure.  If you are about to make a major change to a page, check the Discussion to make sure you aren't misunderstanding the page.  If you are going ahead with a major change, consider documenting your rationale.
 
 
Explain User page, watchlists, my contributions, Recent Changes, Look into My Talk,
 
 
 
 
===Changing Size===
 
To change the font size from the normal size to a size <big>larger</big> use the following:
 
 
::<tt><nowiki>  <big> ...text  </big>  </nowiki></tt>
 
 
To change the font size from the normal size to a size <small>smaller</small> use the following:
 
 
::<tt><nowiki>  <small> ...text  </small>    </nowiki></tt>
 
 
===Changing Types===
 
 
 
===Changing Colors===
 
To change the color of the <font color=red>font</font> being displayed use the following:
 
::<tt><nowiki>  <font color=red> ...text </font>  </nowiki></tt>
 
 
 
===Text Line Controls===
 
* To force a hard Carriage-Return/Line-feed in the displayed document, use the following charcter sequence
 
 
<nowiki>        <br />  </nowiki>
 
 
* To center a text line, or all test between start fo HTML Tag and end of HTML tag.
 
 
<nowiki>    <center>...</center>  </nowiki>
 
 
 
 
===Tables===
 
Wikicode can be used to create a table, as follows:
 
 
*The entire table begins with a line "{| optional table parameters " and ends with the line "|}".
 
*An optional table caption is included with a line "|+ caption " after "{|".
 
*The code for a table row consists of the line "|- optional table parameters ", and, starting on a new line, the codes for the cells in the row, separated by newline or "|"
 
*Table data are the codes for the cells; cell code is of the form "| value " or "| cell parameters | value "
 
*a row of column headings is identified by using "!" instead of "|", except for the separator between a cell parameter and a value; the difference with a normal row depends on the browser, column headings are often rendered in a bold font.
 
*the first cell of a row is identified as row heading by starting the line with "!" instead of "|", and starting subsequent data cells on a new line.
 
 
====Example====
 
<nowiki>{| </nowiki>
 
 
<nowiki>| Cell 1, row 1 </nowiki>
 
 
<nowiki>| Cell 2, row 1 </nowiki>
 
 
<nowiki>|- </nowiki>
 
 
<nowiki>| Cell 1, row 2 </nowiki>
 
 
<nowiki>| Cell 2, row 2 </nowiki>
 
 
<nowiki>|}</nowiki>
 
 
generate
 
 
{|
 
| Cell 1, row 1
 
| Cell 2, row 1
 
|-
 
| Cell 1, row 2
 
| Cell 2, row 2
 
|}
 
 
 
===Term with indented definition:===
 
 
<nowiki>;Term:Definition (indented)</nowiki>
 
 
<nowiki>;;Term (indented):Definition (indented two levels)</nowiki>
 
 
<nowiki>;;;Term (indented twice):Definition (indented to third level)</nowiki>
 
 
...which looks like:
 
 
;Term:Definition (indented)
 
;;Term (indented):Definition (indented two levels)
 
;;;Term (indented twice):Definition (indented to third level)
 
 
 
===Miscellaneous Rules===
 
*To quote text without applying the wiki formatting rules, enclose it within a <nowiki> ... </nowiki> section. Within a nowiki section, only HTML-quoting of special characters (<>&) will occur--no other formatting rules will be applied.
 
  
 
[[Category:English Documentation]]
 
[[Category:English Documentation]]

Revision as of 20:59, 27 October 2006

A wiki is basically a website you can edit.

To edit a page, click the edit tab at the top, edit the material in the input box then click the Save page button at the bottom.

Create a user account so we can keep track of who is doing what.



How to edit

Wiki pages are mostly plain text with a few basic formatting characters.

Read this tutorial: http://meta.wikimedia.org/wiki/Help:Editing

In about 2 pages it explains the basic concepts & formatting characters. It also has loads of good links you can come back to later when you want to know more.

How to write

Writing a web page is different than writing a document.

These links provide some useful insight.

Text Conventions

<These are just provisional and should be discussed>

Use bold text to emphasize topics.

Use <italic text in angle brackets> for instructions to editors, i.e. text that should be replaced and explains what goes there, such as in a template

Use <bold italic text in angle brackets> when adding in-line comments about the contents of a page.

How to use MediaWiki

The links that are always available along the left and across the top provide a lot of useful features.

Search

The search box on the left lets you do keyword searches on the site contents. You can change the scope of the search in your preferences.

Recent Changes

The Recent Changes link in the navigation box takes you to the Recent Changes page. Every edit to any wiki page is listed from newest to oldest. Clicking on the (diff) link lets you see what the edit changed. Clicking on the page link itself lets you see that version. Clicking on the (hist) link lets you see the history of changes to that page.

Wiki Features

Neat stuff under special pages. Explain Categories and Category Pages. Discussion Page: If you feel it useful/necessary, explain the purpose of the page or the rationale of it's structure. If you are about to make a major change to a page, check the Discussion to make sure you aren't misunderstanding the page. If you are going ahead with a major change, consider documenting your rationale.

Explain User page, watchlists, my contributions, Recent Changes, Look into My Talk,


Tips & Tricks

Quoting Text

To quote text without applying the wiki formatting rules use:

<nowiki> ... </nowiki>

Within a nowiki section, only HTML-quoting of special characters (<>&) will occur--no other formatting rules will be applied.

Text Size

To change the font size from the normal size to larger or smaller use:

<big> ...text </big>
<small> ...text </small>

Text Color

To change the color of the font being displayed use:

<font color=red> ...text </font>

Line Formatting

To force a hard Carriage-Return/Line-feed in the displayed document, use:

<br />

To center a text line, or all text between start HTML Tag and end HTML tag, use:

<center>...</center>
Term
Definition (indented)

use:

;Term:Definition (indented)

Using Templates

We may have templates for some types of pages (maybe referenced in the See Also section). To use the template, click it's link, click "Edit", and select and copy all the text in the edit window. Then go to your new page, and paste the template text into the edit window.

Table of Contents

All pages with more than two headers include a Table of Contents at the top of the page with each of the section headers included as links.

To move the TOC, insert the text __TOC__ at the point in the page where you would like it to appear.

To remove the TOC, insert the text __NOTOC__ at the start of the page.

Combined Pages

To combine several existing pages into a single meta page when it makes sense to do so for viewing or printing, create a new page with the following syntax:

==Optional Heading==
{{:Page page1}}
{{:Page page2}}
and so on

Printing Pages

To get a printable page with BIG HEADERS:

  • click on Printable View in the toolbox on the left
  • print from the browser.


To get a document formatted for paper:

  • click on Printable View in the toolbox on the left
  • select and copy all the text in the Printable View
  • open an empty Microsoft Word document
  • paste the text into the Word document
  • File->Page Setup-> reset the margins
  • Tools->Templates and Add-ins
  • <still need to explain how to import/overwrite the appropriate paragraph styles>
  • print from Word

Spellchecking

There are client side spell checkers that will check what you edit:

Uploading Files

To avoid the broken link icon at the link to your uploaded file, add a : at the start of the link. E.g. [[:Media:NameOfYourFile.doc | link text]]

Task Lists

The MediaWikiTasks plugin supports managing task lists.

Timelines

The EasyTimelines plugin supports displaying annotated timelines.

Converting Pages to HTML Files

mw2html is a tool for doing just this. Right click on this link and "Save Target as.." mw2html.py

It can be run with a Python binary package.

You will also need to get the htmldata module. Do a "Save Target As..." on the newest version link on that page. I don't remember off-hand how I got it to compile.

Once it's ready, try: "mw2html.py http://172.16.16.134/wiki/ out -f"

Note: you may have a problem becausee it doesn't seem to use the login cookie cached for the browser so mw2html.py is an anonymous user so it only gets logon pages for pages that anonymous users don't have permission to view.

PDF Export

Combining articles into a single PDF for printing. It needs htmldoc (open source utility) to take multiple HTML pages and turn them into a PDF file. All pdf files stored on wiki server's folder called /printouts.

The coding is very simple and works like this: (we'll call this page "Test Print")

Put articles that will appear in sequence in curly braces: {Index_of_Work_Items | Feature_Proposals_Index | Index_of_Trend_Reports}

and put articles to combine into a single set of curly braces separated by the | pipe symbol. {Index_of_Work_Items | Feature_Proposals_Index | Index_of_Trend_Reports} These articles will not have a page break in the PDF file. This is really useful for articles that are short and related, such as a function list. Then add a link to this page:

Print these articles

Now when a user browses to this page on your site and clicks the above link, the page will re-output through the special PrintArticles.php file instead of index.php. The page will be changed from looking like this:

{Index_of_Work_Items | Feature_Proposals_Index | Index_of_Trend_Reports}

Print these articles


to this:

{Index_of_Work_Items | Feature_Proposals_Index | Index_of_Trend_Reports}

Print these articles

Creating: (Index_of_Work_Items)

Creating: (Feature_Proposals_Index)

Creating: (Index_of_Trend_Reports)

Test Print

Known Problems:

  • HTMLDOC can import images when running from command line but not reliable when spawn from wiki.
  • Quotes print out as: a with an accent
  • Funky caching issues


See Also

The IHE Wiki is built on MediaWiki software. The MediaWiki User's Guide is an excellent reference.

MediaWiki and Wikipedia, the free encyclopedia provide more information and examples of using MediaWiki.

Wiki Introduction provides a short video outlining the use of Wiki's for collaboration