EditDate and Time
EditServer Date{ServerDate}
Inserts the system date for the server into the page. The format will be as defined by the administrator from the date portion in the Wiki Configuration form.
Parametersnone
Example{ServerDate}
24 May 2013
| |
EditServer Time{ServerTime}
Inserts the system time for the server into the page. The format will be as defined by the administrator from the time portion in the Wiki Configuration form.
Parametersnone
Example{ServerTime}
11:42
|
| |
EditUser Date{UserDate}
Inserts the system date for the user's configured timezone into the page. The format used will be that defined by the administrator from the time portion of the date in the Wiki Configuration form.
Parametersnone
Example{UserDate}
25 May 2013
| |
EditUser Time{UserTime}
Inserts the system time for the user's configured timezone into the page. The format used will be that defined by the administrator from the time portion of the date in the Wiki Configuration form.
Parametersnone
Example{UserTime}
04:42
|
EditUser Agent
EditBrowser{Browser}
Inserts the full client browser detail string ('user agent') into the page.
Parametersnone
Example{Browser}
CCBot/2.0
| |
EditPage Tabs
Page tabs provide a convenient method to add a tab selection bar, and content to display beneath them.
Page Tabs require the addition of a number of extra styles to the Theme style sheet. Please refer to
Configuring Formatter page for details of the required styles.
Tabs are being used in the write-up for this page.
EditTabs...
{Tabs:<first tab>}
…
[{AddTab:<another tab>}
…]
{/Tabs}
Example
{Tabs:First Tab}
This is the content displayed under the first tab.
{AddTab:Second Tab}
The second tab has this content and these tabs
{Tabs:Inner One}Inner tab content
{AddTab:Inner Two}Other inner tabs content
{/Tabs}
And this is after the inner tabs
{/Tabs}
This is the content displayed under the first tab.
The second tab has this content and these tabs
Inner tab content
Other inner tabs content
And this is after the inner tabs
EditCitations
Citations mark cited references within a page and consolidate them at a single location, usually at the end of the page. Made up of two parts/tags, <ref> (can be declared multiple times), and <references> (only declared once).
These tags utilise an additional style object
ReferenceDiv to contain the list of citation references. The administrator should include this in the
screen-style.css file.
EditCite Web<ref>cite web|url=|title=</ref>
Tag the quote with the details of the reference.
Parameters<url> required Full URL for the web site providing this citation.
<title> required Title reference for the cited document
| |
EditReferences<references />
Page tag to show where the reference list should be loacted. The list is placed inside its own CSS div, and is constructed with li items.
Parametersnone
|
Example
"This is a quote"<ref>cite web|url=http://somewhere.com/page|title=The title detail of the citation</ref>
…
some text in between
…
References
<references />
…
some text in between
…
References
EditPage Inserters
Page inserters insert content from one page directly into another.
EditRandom Message{RandomMessage[:<page>]}
Adds a single message from a defined page into the current page. Usually inserted into the page Footer, the random message is perfect for quote lines, or the same.
The specified quotation page must have lines where each quote is finished with one or more hard returns - see below. Wiki markup is permitted, and enmpty lines are ignored.
Parameters<page> optional Page containing the message lines. If omitted, system will use the page defined by the administrator in the configuration.
Example{RandomMessage:Mainpage}
"Most people who earned A's in school end up working for those who made C's" - anon
Quote page content
'This could be the first quote' - A Writer
'And this would be a second quote' - A N Other
'Yet another quote' - Still Moore …
| |
EditHints{Hint[:<category>]}
Inserts a random page from all the pages assigned to the given category. The category can be defined within the tag, or a default can be used as defined by the administraor via the plugin configuration.
Hinted text is wrapped within a unique DIV called #HintDiv Within this division, the administrator can override any attributes to provide suitable layout.
It is recommended that Hints pages are kept simple and minimalistic, to focus solely on the hinting content.
Parameters<category> optional Wiki category assigned to the pages to select from. If omitted, system will use the admin configured category.
Example{Hint:Hints}
EditHint Three
All hints must be allocated into an appropriate category. There can be more than one category used for hints, providing flexibility.
|
EditWiki Change List
Details the pages having been changed or added to the wiki for the specified number of days. Number of days or number of pages can be specified for each instance, or can use a default number set by the administrator in the plugin configuration.
EditNew Pages{NewPages[:<num>[pp]]}
Produces a list of all pages recently added to the wiki.
Parameters| <num> | optional | Number of pages or days back to include in list. If omitted, uses admin configured default | | pp | optional literal | Used to signify that a page count is to be used |
Example{NewPages:1}
none
{NewPages:1pp}
17 Aug 2012
| |
EditRecent Changes{RecentChanges[:<num>[pp]]}
Produces a list of all pages recently changed in the wiki.
Parameters| <num> | optional | Number of pages or days back to include in list. If omitted, uses admin configured default | | pp | optional literal | Used to signify that a page count is to be used |
Example{RecentChanges:5pp}
20 May 2013 29 Apr 2013 05 Feb 2013
|
EditPage Security
| For full security against back door access to the wiki markup, minor changes must be made to the Screwturn Wiki engine. These changes must be re-applied when the wiki engine is upgraded. |
EditOnly For...
{OnlyFor [Admins][,Users][,Guests][,<userid>]}
…
[{ElseFor}
…]
{EndFor}The OnlyFor... tag is used to define page content dependent upon the class of user using the system. The minimum usage is the {OnlyFor} and {EndFor} tags. These bound the portion of wiki markup that will be displayed when the user falls into any of the defined list of user classes. More than one user class can be defined, separated by commas.
The {ElseFor} tag section will contain wiki markup which will be inserted when the user does not fall into the list of user classes given in the {OnlyFor} tag section.
Note: this is only a hiding mechanism and is not a security tool.
Parameters
Users accessing the page fall into the following groups
Admins | Any logged-in user with Admin rights |
Users | Any logged-in user, but without any admin rights |
Guests | Any user who has not logged in |
<userid> | The specific user id of a logged-in user |
Example
From the Sidebar file:
{OnlyFor Admins}
*[Admin.aspx|Administration]
*[Upload.aspx|File Management]
{ElseFor}
*[Login.aspx|Log In now]
{EndFor}
Useful Codesnip
The following codesnip assists is hiding the edit and view buttons, to prevent users from easily extracting the protected page content. Note: this is only a hiding mechanism and is not a security tool.
<STYLE type=text/css>#ViewCodeLink, #HistoryLink, A.editsectionlink { display:none;}</STYLE>
EditConditional Content
EditOnly Browser...
{OnlyBrowser <tag>}
…
[{ElseBrowser}
…]
{EndBrowser}
Example
{OnlyBrowser MSIE}
{OnlyBrowser 7.0}
<font color=green>You are using IE 7</font>
{ElseBrowser}
<font color=orange>You are not using v7 of IE</font>
{EndBrowser}
{ElseBrowser}
<font color=red>Must use IE</font>
{EndBrowser}
Must use IE
EditCode Highlighting
EditCode...
{Code:c|cpp|cs|csharp|vb|tsql|html|css|javascript|js}
…
{/Code}The Code... tag is used to define the area of code to be highlighted. The tags used are {Code:…} and {/Code} tags.
Code highlighting requires the addition of a number of extra styles to the Theme style sheet. Please refer to
Configuring_Formatter page for details of the required styles.
Parameters
Code selection is defined by one of the following language definitions
c | The classic C language |
cpp | C++ |
cs,csharp | The .Net C# language |
vb | The .Net VB language |
tsql | Transact SQL (T-SQL) for SQL Server |
html | HTML markup |
css | Cascading Style Sheets |
javascript,js | Javascript |