您在:
HEPG
>
System 子网
>
Macros
>
VarRENDERZONE
(2010-09-23,
ProjectContributor
)
(检示源码)
编辑(
E
)
增加附件(
A
)
#VarRENDERZONE ---+++ RENDERZONE <verbatim class="tml"> %RENDERZONE{"zone" ...}% </verbatim> See [[VarADDTOZONE][ADDTOZONE]] for an explanation of _zones_. Parameters: * ="zone"= required, name of the zone. * =format="..."= optional, format string for each item added to the zone, default: <verbatim class="tml">$item <!--<literal> $id $missing</literal>--></verbatim>Tokens: * =$id= - =id= of the [[VarADDTOZONE][ADDTOZONE]] call within the =zone= currently being rendered. * =$item= - text of the [[VarADDTOZONE][ADDTOZONE]] call within the =zone= currently being rendered. * =$zone= - the ="zone"= currently being rendered. * =$missing= - if the [[VarADDTOZONE][ADDTOZONE]] call being rendered required any =id= which was not found, then =$missing= is the =missingtoken= parameter; empty string otherwise. * =$missingids= - comma separated list of ids that were required by the [[VarADDTOZONE][ADDTOZONE]] call currently being rendered but weren't found within this =zone=. * =missingtoken="..."= optional, this will be the string assigned to the =$missing= format token for use in the =format= parameter. Default: <verbatim class="tml">$id: requires= missing ids: $missingids</verbatim> * =chomp="on"= remove leading and trailing whitespace from formatted items, can be useful for pretty-printing and compression. * =header="..."= optional, prepended to the output * =footer="..."= optional, appended to the output * =separator="..."= optional, put between each item of a zone Supports the [[FormatTokens][standard format tokens]] in all parameters. __Notes:__ * =header= and =footer= are *not* output if there is no content in the zone (nothing has been =ADDTOZONEd= ). However they *are* output if the output is the empty string (at least one =ADDTOZONE= has been processed). * Zones are cleared after being rendered; they are only ever rendered once. * =head= and =script= are _automatic zones_. They don't require a corresponding =RENDERZONE= anywhere in the templates - they are automatically inserted before the =</head>= tag in the output HTML page. * Normally, dependencies between individual =ADDTOZONE= statements are resolved within each zone. However, if ={MergeHeadAndScriptZones}= is enabled in [[%SCRIPTURLPATH{"configure"}%][configure]], then =head= content which requires an =id= that only exists in =script= will be re-ordered to satisfy this dependency. <blockquote class="foswikiHelp">%X% ={MergeHeadAndScriptZones}= will be removed from a future version of Foswiki.</blockquote> See also [[VarADDTOZONE][ADDTOZONE]] for more information on zones. <!-- %JQREQUIRE{"chili"}% -->
编辑(
E
)
|
增加附件(
A
)
|
列印(
P
)
|
历史(
H
)
: r1
|
反向连结(
B
)
|
浏览(
V
)
|
W
ysiwyg edit
|
更多主题功能(
M
)
主题版本: r1 - 2010-09-23,
ProjectContributor
System
登录
工具箱
用户
群组
索引
搜寻
更新
通知
订阅 RSS
统计
设定
用户手册
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
管理员维护
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
类别
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
子网
Main
Sandbox
System
Български
_jméno_jazyka
Dansk
Deutsch
English
Español
Suomi
Français
Italiano
日本語
한글
Nederlands
Norsk
Polski
Português
Português brasileiro
Русский
Svenska
简体中文
正體中文
版权所有 © 所有作者。本合作平台的所有资料归内容提贡者所有。
请
回馈
有关 HEPG 的建议、需求及问题。