wikitips

[|Dickson College Home] | Library | Wiki Tips

=Dickson College Library: Wiki Tips= Tables | Text | Links - New page | Paragraph Hang Indents | Sound | Backup | Anchors | Footer | Centering and Blockquotes | Boxes

The following links go to Wiki Tips 2: Maths - EdNA Insert | Search Box on Home Page | Litguides Drop Down Boxes | Dictionary | iframe | biblioe | Maps | Print Friendly Page

e.g.: http://dckclib.wikispaces.com/file/view/arts1a.jpg
 * Images**: URL address if needed for for example when embedding a concept map: http://dckclib.wikispaces.com/file/view///file name//

Blockquotes: ``include page="HTML_blockquote_open"`` (quote text goes here) ``include page="HTML_blockquote_close"``
 * Includes**

Centering text ``include page="HTML_div_center_open"`` and for closing: ``include page="HTML_div_close"``

Paragraphs: ``include page="HTML_p_hangindent"`` - 1st line on margin, rest in 3em. ``include page="HTML_p_hangindent3"`` - All lines in 3em. ``include page="HTML_p_hangindent6"`` - 1st line in 3em, rest 6em. ``include page="HTML_p_hangindentno"`` - All lines on margin - use this to set margin back.

Boxes for titles: ``include page="HTML_boxopen"`` and for closing: ``include page="HTML_div_close"``

Pagefooter: ``include page="include_pagefooter"`` - page footer - at end of page

 include page="HTML_boxopen"**Tables**include page="HTML_div_close" In Manage Space / Look and Feel / Change or make a new theme / Current theme - edit. The following text has been added to the theme to stop table lines from showing: .wiki table td { border: 0px; }
 * No Lines Showing:**

To put lines in tables back, use Insert Widget and Other HTML: ```` ``document.write('.wiki table td { border: 1px solid black; } ')`` `` ``

Can change the colour, width, etc. Can only put one type of table on a page - the last one will overwrite the previous ones. The following is used on the Search Tools Page (blue edges, padding space in cells: ```` ``document.write('.wiki table td { border: 1px solid #2d3380; padding: 1em; } ')`` `` ``

This code hides the lines in any table on the page. Use in a wiki which hasn't had the theme changed. ```` ``document.write('.wiki table td { border: 0px; } ')`` `` `` Can insert a column and add a blank image the width of a space you want to add to spread columns apart (when lines don't show). media type="custom" key="423603"


 * Table ||  || `` || table cell || table cell || table cell ||`` ||
 * ~ Table Heading Cell ||  || `` ||~ heading1 ||~ heading2 ||~ heading3 ||`` ||
 * > Table Cell Alignment ||  || `` ||= centered ||> right ||> right||`` ||
 * Table Column Spans (merging columns together) ||  || `` |||| spans 2 columns || col3 ||`` ||
 * Instead of ||  || `` || col1 || col2 || col3 ||`` ||

 include page="HTML_boxopen"**Text**include page="HTML_div_close"
 * Preventing wikitext:** use the character under the ~: ``escaping``

> This line is indented using ``>(space)`` >> This line is indented using ``>>(space)`` Note: Can also use the include statements for the paragraph hanging indents.
 * Indenting text:** >(space) or >>(space) in front of a line. E.g.:


 * Headings:** ``=`` or ``==`` or ``===``. **Bold:** ``**``. **Italics:** ``//``. **Underline:** ``_``. **Line**: ````
 * Link examples**: ``pagename``, ``label``, ``http://some.url``, ``[|label]``, ``[[image:name.jpg]]``, ``[[file:name.txt]]``, ````
 * Source Code**: ``code ... code``


 * Mathematics**: ``math ... math``

For the Navigation Menu the text colour is changed in the "Look and Feel". In Manage Space / Look and Feel / Change or make a new theme / Current theme - edit, I added "color: #224494 " to change the text color in the body of the page, to become
 * Changing text colour:**

body { background-color: <$WikiBackgroundColor$>; font-family: arial,helvetica,sans-serif; font-size: 83%; margin: 0; padding: 0; color: #224494; }

Use Insert Widget, other html: ```` ``document.write(' ')`` `` `` add the text you want centered, then ```` ``document.write(' ')`` `` `` or (better) use ``include page="HTML_div_center_open"`` and for closing: ``include page="HTML_div_close"``
 * Centering text:**

 include page="HTML_boxopen"**Links - New Page**include page="HTML_div_close" To get a link to open a new page and the link doesn't show the green arrow - need to add the text in Insert Widget (change the URL and link name): ``Reference Orders``

 include page="HTML_boxopen"**Paragraphs - Hang Indents**include page="HTML_div_close" The 3 sets of scripts below have been made into individual pages with titles as above. Paste the include contents of the double brackets to the start of the paragraph you want to indent. Examples follow.

HTML_p_hangindent (name of file the include looks at) ```` ``document.write('')`` `` `` ``include page="HTML_p_hangindent"`` include page="HTML_p_hangindent"This is the start of a hanging indent paragraph - 1st line on margin, rest indented 3em. This is the start of a hanging indent paragraph - 1st line on margin, rest indented 3em. This is the start of a hanging indent paragraph - 1st line on margin, rest indented 3em.

include page="HTML_p_hangindentno"HTML_p_hangindent3 ```` ``document.write('')`` `` `` ``include page="HTML_p_hangindent3"`` include page="HTML_p_hangindent3"Whole of a paragraph which is indented 3em. Whole of a paragraph which is indented 3em. Whole of a paragraph which is indented 3em. Whole of a paragraph which is indented 3em. Whole of a paragraph which is indented 3em.

include page="HTML_p_hangindentno"HTML_p_hangindent6 ```` ``document.write('')`` `` `` ``include page="HTML_p_hangindent6"`` include page="HTML_p_hangindent6"1st line of a paragraph is indented 3em rest 6em - use for bibliographies. 1st line of a paragraph is indented 3em rest 6em - use for bibliographies. 1st line of a paragraph is indented 3em rest 6em - use for bibliographies.

include page="HTML_p_hangindentno"HTML_p_hangindentno ``<script language="JavaScript">`` ``document.write('<p style="text-indent: 0em; margin-left: 0em">')`` `` `` ``include page="HTML_p_hangindentno"`` include page="HTML_p_hangindentno"Puts the paragraph back on the margin. Use to stop the next paragraph being indented. Puts the paragraph back on the margin. Use to stop the next paragraph being indented.

 include page="HTML_boxopen"**Sound**include page="HTML_div_close" Imbed a sound mp3 file with the format: ``<embed src="phone.mp3" width="200" height="20" autostart="false" loop="false" playcount="1">`` Playcount (Explorer) - set no. of times want the file played. Loop (Navigator) - set to false, true or n. Autostart - for the track to start "true", when arrow clicked "false" Optimal width - 144, optimal height - 60 align="_TOP", BOTTOM, CENTER, BASELINE, LEFT, RIGHT, TEXTTOP, MIDDLE, ABSMIDDLE, or ABSBOTTOM

 include page="HTML_boxopen"**Backup**include page="HTML_div_close" Look for "How to set up folders" tutorials for Windows, MACs and Linux at: https://www.wikispaces.com/help+webdav. We are in the "Plus" Subscription Level and so can only "Retrieve the contents of pages, files, and previous page versions under history". Keep a folder on your computer to backup to. Drag the pages and files into the folder. They have the text at that time so if the space is deleted it can be rebuilt using the data from these pages. Doesn't include what is in the navigation menu so should make a new text file to copy the text over (open it in edit navigation and click the text editor - save this version with all the coding and links). Keep copies of images and files in here, too. The URL for Web Folders (WebDAV) access in this wikispace is: https://dckclib.wikispaces.com/space/dav For a Mac, from desktop click Go and Connect to Server, then https://dckclib.wikispaces.com/space/dav and follow login prompts.

 include page="HTML_boxopen"**Anchors**include page="HTML_div_close" In text editor position cursor where you want the anchor and then add: ```` The anchor name needs to be the same as the link at the top of the page which would be of the form: ``Link shown``

From Wikispaces Help: Anchors have 2 parts.

Part 1: The anchor point. i.e. The place you are linking to. 1. Go to the part of the page where you want the link to jump to (usually located farther down the page). 2. Type in Type the brackets and the # sign. Replace nameoftheanchor with the actual text you want to be the name of the anchor. In the examples above, we use.

Part 2: The link. 1. At the top of the page (or wherever you want your anchor link list to appear), highlight the text that you want to use as your link. 2. Click on the link button in the toolbar (it looks like a globe). For Page Name, select the name of the page you want to link to. This is most often going to be the page you are currently working on. 3. Click the "Link to anchor?" link, which will then display a box into which you can type the anchor name. So in the example above, you would type the word apples in to the Anchor box, since this is what you put inside the anchor code in Part 1.

 include page="HTML_boxopen"**Include - Footer**include page="HTML_div_close" See : http://sealwyf.wikispaces.com/Sandbox014 ``include page="include_pagefooter"`` has been added into the template page with 2 square brackets on either side. This is what needs to be added to each page if the template isn't used. Don't need to add it in a widget, just copy the text straight in.

It uses HTML_div_pagefooter_open and HTML_div_close and the following lines of text which are in the dckctheme: .wiki div.pagefooter { width: 90%; margin: 10px auto 10px 30px; text-align: center; font-size: .85em; background-color: #f6f6f6; color: #666666; border: 3px double #cccccc; clear: right; } .wiki div.pagefooter a { text-decoration: none; color: #000099; }

HTML_div_pagefooter_open has (inserted in a widget): ``include page="HTML_div_pagefooter_open"Created: {$creationday}/{$creationmonth}/{$creationyear} | Last updated: {$revisionday}/{$revisionmonth}/{$revisionyear} | URL: {$server}/{$page}`` ``url}?f=print|Print this page | tag cloud`` ``include page="HTML_div_close"``

and HTML_div_close has (inserted in a widget): ``<script language="JavaScript" type="text/javascript">`` ``document.write(' ')`` `` ``

 include page="HTML_boxopen"**Include - Centering and Blockquotes**include page="HTML_div_close" These pages, which center text, will be used several times.

Add: ``include page="HTML_div_center_open"`` where you want text centered and then for closing: ``include page="HTML_div_close"``

Page name: HTML_div_center_open ``<script language="JavaScript">`` ``document.write(' ')`` `` ``

Page name: HTML_div_close

``<script language="JavaScript">`` ``document.write(' ')`` `` ``

The HTML tags to be inserted are ``"`` and ``"``. Here are the tags in their JavaScript wrappers:

``<script language="JavaScript">`` ``document.write(' ')`` `` ``

and

``<script language="JavaScript">`` ``document.write(' ')`` `` ``

HTML_blockquote_open and HTML_blockquote_close, with the ``"`` and ``"`` JavaScript-wrapped tags on them. If you look at the pages, the codes are invisible; they may even mess up other things on the wiki page, since they aren't closed! But the pages aren't there to be looked at. They are there to be used in include statements.

Here are the include statements that will create a blockquote:

``include page="HTML_blockquote_open"`` (quote text goes here) ``include page="HTML_blockquote_close"``

 include page="HTML_boxopen"**Boxes**include page="HTML_div_close" A single box as used in the above heading:

In Manage Space / Look and Feel / Change or make a new theme / Current theme - edit. The following text has been added to make the boxes as above: .wiki div.bluebox { width: 90%; margin: 0px auto 0px 0px; border: 1px solid #999999; padding: 5px; background-color: #efefef; } It says blue box but the color was changed to #efefef - a light beige. Duplicate this line with different background colours and border colours, widths, etc. Change the bluebox to something else. From the visual editor, Insert Widget, html: you need to add the following text each time on a different page (can copy and paste if on the same page):

``<script language="JavaScript">`` ``document.write(' ')`` `` ``

Then type the contents of the box followed by the closing div (use Insert Widget again)

``<script language="JavaScript">`` ``document.write(' ')`` `` ``

Instead of inserting the widgets to open and close a box you can use the include statements: ``include page="HTML_boxopen"`` and for closing: ``include page="HTML_div_close"`` (There is a page called HTML_boxopen which has the bluebox code inserted as a widget and the closing div is called HTML_div_close.
 * Use This**

To put a box straight into the page without using the stylesheet, add through an Insert Widget, (change the colour of the background and line):

code <script language="JavaScript"> document.write('<div style="width: 90%; margin: 10px auto 10px 30px; border: 1px solid #9999aa; padding: 10px; background-color: #ffffdd;">') code

add the text and finish with:

code <script language="JavaScript"> document.write(' ') code

include page="include_pagefooter"