%ACTIVATEDPLUGINS%
%ALLVARIABLES%
%AUTHREALM%
%DASHBOARD{...}%
variable.
%DASHBOARD{ section="..." ... }%
%DASHBOARD{ section="dashboard_start" }%
%DASHBOARD{ section="banner" image="..." title="..." }%
%DASHBOARD{ section="box_start" title="Box 1 title" }%
Box 1 content
%DASHBOARD{ section="box_end" }%
%DASHBOARD{ section="box_start" title="Box 2 title" }%
Box 2 content
%DASHBOARD{ section="box_end" }%
...
%DASHBOARD{ section="dashboard_end" }%
text
, then hide the form. If EDITACTION is defined as form
hide the normal text area and only edit the form.
%EDITACTION%
(returning either text
or form
)
;action=text
or ;action=form
to the URL for the edit script. If you have defined EDITACTION in a topic setting or preference setting you can still edit the topic content or the form by removing the ;action=form
or ;action=text
from the edit URL in the browser and reload.
%FAILEDPLUGINS%
%GEOLOOKUP{}%
variable is handled by the GeoLookupPlugin
%GEOLOOKUP{"host" format="..."}%
Parameter | Description | Default |
---|---|---|
"..." | Host IP address or host name | none, required |
format="..." | Format of geolocation. Supported variables: • $latitude : Latitude • $longitude : Longitude • $city : City name • $region : Region name • $country_name : Country name • $country_code : Two letter country code • $postal_code : Postal code (USA only) • $metro_code : Metropolitan code (USA only) • $area_code : Telephone area code (USA only) | "$city, $region, $country_name" |
%GEOLOOKUP{"75.52.124.86"}%
shows default format (city, region, country code)
%GEOLOOKUP{"75.52.124.86" format="$latitude, $longitude"}%
shows comma separated Latitude and Longitude
LANGUAGE
preference is set, it's used as user's language instead of any language detected from the browser.
LANGUAGE
at a non per-user way, so each user can choose his/her preferred language.
PO
files) to TWiki. Those are the languages in which TWiki's user interface is available.
%LANGUAGES{...}%
Parameter: | Description: | Default: |
---|---|---|
format | format for each item. See below for variables available in the format string. | " * $langname" |
separator | separator between items. | "\n" (newline) |
marker="selected" | Text for $marker if the item matches selection | "selected" |
selection="%LANGUAGE%" | Current language to be selected in list | (none) |
format
variables: Variable | Meaning |
---|---|
$langname | language's name, as informed by the translators |
$langtag | language's tag. Ex: en , pt-br , etc. |
<select>%LANGUAGES{format="<option $marker value='$langtag'>$langname</option>" selection="%LANGUAGE%"}%</select>
creates an option list of the available languages with the current language selected (this topic)
%LOCALSITEPREFS%
Public.TWikiPreferences
, renders as TWikiPreferences
%MDREPO{ "table" ...}%
(generic form), %MDREPO{ web="..." ...}%
(web specific form)
web="..."
parameter): Parameter | Description | Default | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"..." | Specify the table to retrieve | This or below is required | ||||||||||||||||
table="..." | (Alternative to above) | This or above is required | ||||||||||||||||
separator="..." | The separator string of records | "$n" (new line) | ||||||||||||||||
format="..." | Format of one record. It may contain the following items. In addtion, the standard special tokens are handled accordingly.
| "| $_ | $__ |" | ||||||||||||||||
selection="..." | The record ID to be regarded as the selected. It affects how $marker in the format is evaluated. | none | ||||||||||||||||
marker="..." | Text for $marker in the format if the item matches selection | "selected" | ||||||||||||||||
filter="..." | The regular expression of record IDs to filter records. Matching is case-insensitive | none | ||||||||||||||||
exclude="..." | Comma separated list of record IDs to be excluded. You can use regular expression. If you specify Trash\d*, then Trash, Trash1, Trash2, ... are exluded but LightTrash and TrashBag are not excluded | none |
%MDREPO{"webs" filter="^A" format="| $_ | $_admin | $_master |"}%
Parameter | Description | Default |
---|---|---|
web="..." | Specify the web. If it's a subweb, the corresponding top level web is specified | This is required |
"..." | Specify the format of the return value in the same manner as the format parameter in the generic form | $__ |
default="..." | Specify the value to be returned when the specified or implied top level web does not exist in MDREPO | "" (null string) |
%MDREPO{web="Foo/Bar" "$_admin"}%
%PLUGINDESCRIPTIONS%
"$SUM( $ABOVE() )"
to TWiki tables or anywhere in topic text ExternalSite:Page
to link to a page on an external site based on aliases defined in a rules topic :-)
as or :eek:
as %PLUGINVERSION{"name"}%
to get the version of a specific plugin
%PLUGINVERSION{"InterwikiPlugin"}%
expands to $Rev: 30454 (2018-07-16) $
%PLUGINVERSION%
to get the version of the API
6.10
%REDIRECT{}%
variable is handled by the RedirectPlugin.
%REDIRECT{"TopicName"}%
%REDIRECT{"ExampleTopic"}%
redirects to the ExampleTopic topic
%REDIRECT{"OtherWeb.ExampleTopic"}%
redirects to the OtherWeb.ExampleTopic topic
%REDIRECT{"http://twiki.org/"}%
redirects to http://twiki.org/
%SHAREME{}%
variable is handled by the ShareMePlugin. Many social media sites are defined in the plugin topic.
%SHAREME%
or %SHAREME{"site1, site2"}%
%SHAREME%
shows the default icon set
%SHAREME{"Delicious, Facebook, Twitter"}%
shows icons to share the current TWiki topic at Delicious, Facebook and Twitter
%USERREPORT{ action="..." ... }%
Report | action= | Parameters |
---|---|---|
Show a simple list of registered users | "user_list" | search , limit , sort , reverse |
Show the profile picture image of a user | "profile_picture" | user , height , width , title |
Show slim, one line height user boxes | "slim_box_start" "slim_box" or "slim_box_list" "slim_box_end" | style user , style users , style none |
Show small, two line height user boxes | "small_box_start" "small_box" or "small_box_list" "small_box_end" | style user , style users , style none |
Show users in business card format | "business_card_start" "business_card" or "business_card_list" "business_card_end" | style user , style users , style none |
Show a selector to pick a user, for use in HTML forms | "select_one_user" | name , selected , users |
Show rows of checkboxes to select users, for use in HTML forms | "select_users" | name , selected , users , colums , style |
%USERREPORT{ action="user_list" search="jane" limit="5" }%
%WEBPREFSTOPIC%
WebPreferences
, renders as WebPreferences
%WIKIHOMEURL%
/twiki/bin/view/Public/WebHome
%SCRIPTURLPATH{"view"}%/%USERSWEB%/%HOMETOPIC%
%WIKILOGOURL%
defined in WebPreferences instead.
%WIKILOGOALT%
Home - this site is powered by TWiki(R)
%WIKILOGOIMG%
/twiki/pub/TWiki/physics_logo.png
%WIKILOGOURL%
https://twiki.ph.rhul.ac.uk/twiki/bin/view/Public/WebHome
%SCRIPTURLPATH{"view"}%/%USERSWEB%/%HOMETOPIC%
%WIKIPREFSTOPIC%
TWikiPreferences
, renders as TWikiPreferences
%WIKIVERSION%
TWiki-6.1.0, Mon, 16 Jul 2018, build 30610