Changeset 1282
- Timestamp:
- 12/12/08 05:25:54 (3 years ago)
- Location:
- trunk/core/data
- Files:
-
- 6 edited
-
System/Contribs.txt (modified) (1 diff)
-
System/InstalledPlugins.txt (modified) (1 diff)
-
System/QuerySearch.txt (modified) (5 diffs)
-
System/SiteChanges.txt (modified) (1 diff)
-
System/SkinBrowser.txt (modified) (2 diffs)
-
Trash/WebHome.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/System/Contribs.txt
r1022 r1282 23 23 ---++ Foswiki Contribs Installed on this site 24 24 25 %SEARCH{ "" scope="topic" topic="*Contrib" nosearch="on" format=" * <b>[[$topic]]</b>: <nop>$pattern(.*?\*\sSet\sSHORTDESCRIPTION\s\=([^\n\r]*).*) <span style=\"color: gray\">- version $pattern(.*?Version\:?\s*\|([^\n\r\|]*)\|.*)</span> <br /> <span style=\"color: gray; font-size: 80%\"> Author: $pattern(.*?\sAuthors?:\s*\|\s*(.*?)\s*\|.*) - last modified: r$rev - [[%SCRIPTURL{rdiff}%/$web/$topic][$date]] - $wikiusername </span>" }% 25 %SEARCH{ 26 "1" 27 type="query" 28 scope="topic" 29 topic="*Contrib" 30 nosearch="on" 31 format=" * <b>[[$topic]]</b>: <nop>$pattern(.*?\*\sSet\sSHORTDESCRIPTION\s\=([^\n\r]*).*) <span style=\"color: gray\">- version $pattern(.*?Version\:?\s*\|([^\n\r\|]*)\|.*)</span> <br /> <span style=\"color: gray; font-size: 80%\"> Author: $pattern(.*?\sAuthors?:\s*\|\s*(.*?)\s*\|.*) - last modified: r$rev - [[%SCRIPTURL{rdiff}%/$web/$topic][$date]] - $wikiusername </span>" 32 }% 26 33 27 34 ---++ Installing Contribs -
trunk/core/data/System/InstalledPlugins.txt
r1024 r1282 14 14 See %SYSTEMWEB%.SkinBrowser for an overview of the installed Skins. 15 15 16 %SEARCH{ ".+(Contrib|AddOn)$" web="%SYSTEMWEB%,TWiki" type="regex" scope="topic" nonoise="on" format=" * [[$web.$topic][$topic]]" }% 16 %SEARCH{ 17 "1" 18 type="query" 19 topic="*Contrib,*AddOn" 20 web="%SYSTEMWEB%,TWiki" 21 scope="topic" 22 nonoise="on" 23 format=" * [[$web.$topic][$topic]]" 24 }% 17 25 18 ---++ Plugin Diagnostics 26 ---++ Plugin Diagnostics 19 27 %FAILEDPLUGINS% 20 28 -
trunk/core/data/System/QuerySearch.txt
r1147 r1282 18 18 19 19 All meta-data in a topic is referenced according to a to a simple plan. 20 20 21 21 * =name= - name of the topic 22 22 * =web= - name of the web the topic is within … … 46 46 * =to= 47 47 * =META:FORM= - the main form of the topic 48 * =name= (known as the _formname_)48 * =name= 49 49 * =META:FIELD= - the fields in the form. 50 50 * _for each field in the form_ … … 66 66 * =parent= means the same as =META:TOPICPARENT= 67 67 * =moved= means the same as =META:TOPICMOVED= 68 * =form= means the same as =META:FORM= 68 * =form= means the same as =META:FORM=, so to test if a topic has a form named 'UserForm' you test for ="form.name ~ '*.UserForm'"= 69 69 * =fields= means the same as =META:FIELD=, You can also use the name of the form (the value of =form.name= e.g. =PersonForm=) 70 70 * =preferences= means the same as =META:PREFERENCE= … … 74 74 | =X= | refers to the field named =X=. | =info=, =META:TOPICMOVED=, =attachments=, =name=. | 75 75 | =X.Y= | refers to the entry with the key =Y= in the structure named =X= | =info.date=, =moved.by=, =META:TOPICPARENT.name= | 76 | =X[<i>query</i>]= | refers to all the elements of the array =X= that match _query_. If <i>query</i> is of the form =name='Y'= then you can use the same =X.Y= syntax as is used for accessing structures. | =attachments[size>1024]=, =DocumentForm[name!='Summary' AND value~'top secret'].value=, =DocumentForm.Summary= | 76 | =X[<i>query</i>]= | refers to all the elements of the array =X= that match _query_. If <i>query</i> is of the form =name='Y'= then you can use the same =X.Y= syntax as is used for accessing structures. | =attachments[size>1024]=, =DocumentForm[name!='Summary' AND value~'top secret'].value=, =DocumentForm.Summary= | 77 77 | =X[N]= | where =X= is an array and =N= is an integer number >= 0, gets the Nth element of the array =X= | =attachments[3]= | 78 78 | =X/Y= | accesses =Y= from the topic specified by the _value_ of =X=. =X= must evaluate to a topic name | =parent.name/(form.name='ExampleForm')= will evaluate to true if (1) the topic has a parent, (2) the parent topic has the main form type =ExampleForm=. | … … 84 84 * =Lastname= 85 85 * =PersonForm.Lastname= 86 If =X= would conflict with the name of an entry or alias (e.g. it's =moved= or maybe =parent=), you can prepend the name of the form followed by a dot, as shown in the last example. 86 If =X= would conflict with the name of an entry or alias (e.g. it's =moved= or maybe =parent=), you can prepend the name of the form followed by a dot, as shown in the last example. 87 87 88 88 ---++ Constants 89 You use constants for the values that you compare with fields. Constants are either strings, or numbers. Strings are always delimited by single-quotes (you can escape a quote using backslash). Numbers can be any integer or floating point number. 89 You use constants for the values that you compare with fields. Constants are either strings, or numbers. Strings are always delimited by single-quotes (you can escape a quote using backslash). Numbers can be any integer or floating point number. 90 90 91 91 ---++ Operators -
trunk/core/data/System/SiteChanges.txt
r1201 r1282 4 4 %TABLE{sort="on" initsort="1" initdirection="up"}% 5 5 | *Last Modified* | *Web.Topic* | *Last Editor* | 6 %SEARCH{ "." 7 type="regex" 8 nosearch="on" 9 nototal="on" 10 limit="%URLPARAM{"limit" encode="quote" default="25"}%" 11 web="%URLPARAM{"web" encode="quote" default="all"}%" 12 excludetopic="WebStatistics" 13 reverse="on" 14 order="modified" 15 format="| $date - [[%SCRIPTURLPATH{"rdiff"}%/$web/$topic?_foo=$rev][diff]] / [[%SCRIPTURLPATH{"rdiff"}%/$web/$topic?type=last&render=sequential&context=1000&_foo=$rev][in-line diff]] - $rev | [[%SCRIPTURLPATH{"view"}%/$web/$topic#foo_$rev][$web.$topic]] | $wikiusername |" 6 %SEARCH{ 7 "1" 8 type="query" 9 nosearch="on" 10 nototal="on" 11 limit="%URLPARAM{"limit" encode="quote" default="25"}%" 12 web="%URLPARAM{"web" encode="quote" default="all"}%" 13 excludetopic="WebStatistics" 14 reverse="on" 15 order="modified" 16 format="| $date - [[%SCRIPTURLPATH{"rdiff"}%/$web/$topic?_foo=$rev][diff]] / [[%SCRIPTURLPATH{"rdiff"}%/$web/$topic?type=last&render=sequential&context=1000&_foo=$rev][in-line diff]] - $rev | [[%SCRIPTURLPATH{"view"}%/$web/$topic#foo_$rev][$web.$topic]] | $wikiusername |" 16 17 }% 17 -
trunk/core/data/System/SkinBrowser.txt
r1022 r1282 5 5 6 6 <div class="skinstable"> 7 %SEARCH{ "name~'*Skin'" scope="topic" web="%SYSTEMWEB%" type="query" nosearch="on" nototal="on" expandvariables="on" format="| $pattern(.*\| *Screenshot\:[^\|]*\|([^\|]*).*) | *[[$web.$topic][$topic]]*: $pattern(.*\| *Description\:[^\|]*\|([^\|]*).*)<br /><br />[[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?skin=$pattern(.*\| *Base Name\:[^\|]*\| *(\w*).*)][preview with this topic]] |" }% 7 %SEARCH{ 8 "1" 9 topic="*Skin" 10 scope="topic" 11 web="%SYSTEMWEB%,TWiki" 12 type="query" 13 nosearch="on" 14 nototal="on" 15 expandvariables="on" 16 format="| $pattern(.*\| *Screenshot\:[^\|]*\|([^\|]*).*) | *[[$web.$topic][$topic]]*: $pattern(.*\| *Description\:[^\|]*\|([^\|]*).*)<br /><br />[[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?skin=$pattern(.*\| *Base Name\:[^\|]*\| *(\w*).*)][preview with this topic]] |" 17 }% 8 18 </div> 9 19 <style type="text/css" media="all"> … … 16 26 17 27 __Related Topics:__ [[Skins]], AdminDocumentationCategory, UserDocumentationCategory 18 -
trunk/core/data/Trash/WebHome.txt
r1206 r1282 8 8 9 9 Last 15 changes in this web: 10 %SEARCH{" '1'='1'" type="query" nototal="on" nosearch="on" reverse="on" order="modified" limit="15"}%10 %SEARCH{"1" type="query" nototal="on" nosearch="on" reverse="on" order="modified" limit="15"}% 11 11 [[WebChanges][%MAKETEXT{"more..."}%]] 12 12
Note: See TracChangeset
for help on using the changeset viewer.
