You are here:
PANDA Wiki
>
System Web
>
Macros
>
FormattedSearch
>
FormatTokens
(20 Sep 2010,
ProjectContributor
)
(raw view)
E
dit
A
ttach
---++ Formatting Tokens Foswiki defines some standard special tokens that can be used to replace characters in some parameters - notably those to FormattedSearch and IfStatements - to defer evaluation of the parameter until later. These special tokens are often called "escapes", because they allow the character to "escape" from its normal meaning. %STARTINCLUDE%| =$n= or =$n()= | New line. Use =$n()= if followed by alphanumeric character, e.g. write =Foo$n()Bar= instead of =Foo$nBar= <blockquote class="foswikiHelp">%T% Most macros accept parameter strings which are split over multiple lines. This is usually more readable than using =$n= tokens. If you are familiar with [[VarSTARTSECTION][sectional includes]], you might also consider [[FormattedSearch#NestedSectionalInclude][nested sectional includes]] to hold the newline content outside of the parameter string entirely.</blockquote> \ <blockquote class="foswikiHelp">%T% Note that newline is _not_ a line break. The browser will wrap the lines together. If you require a line break, displaying the results on two lines, use =%<nop>BR%=. Or use two consecutive newlines to create a TML "Paragraph".</blockquote> | | =$nop= or =$nop()= | Is a "no operation". This token gets removed; useful for nested search | | =$quot= | Double quote (="=) (\" also works) | | =$percent= | Percent sign (=%=) (=$percnt= also works) | | =$dollar= | Dollar sign (=$=) | | =$lt= | Less than sign (=<=) | | =$gt= | Greater than sign (=>=) | | =$amp= | Ampersand (=&=) | | =$comma= | Comma (=,=) | %STOPINCLUDE% If you ever find yourself needing to escape an escape, you can use =$dollar= to escape the leading dollar, thus: =$dollarpercent=.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 20 Sep 2010,
ProjectContributor
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Cerenkov
Pandacerenkov
DCS
Daq
Pandadaq
Detector
EMC
EMPAnalysis
Forwardstraws
GEM
MC
Magnet
Main
Mvd
PANDAMainz
PWA
Pbook
Personalpages
Physics
Baryons
CharmoniumAndExotics
HadronsInNuclei
OpenCharm
PhysicsCmt
SPC
STT
Sandbox
ScrutinyGroup
System
Tagpid
Pandatagpid
Tagtrk
Pandatagtrk
Target
ClusterJetTarget
Tof
WebServices
YoungScientists
ZArchives
Български
_jméno_jazyka
Dansk
Deutsch
English
Español
Suomi
Français
Italiano
日本語
한글
Nederlands
Norsk
Polski
Português
Português brasileiro
Русский
Svenska
简体中文
正體中文
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding PANDA Wiki?
Send feedback