Tags:
create new tag
view all tags
#VarWEB ---+++ WEB -- name of current web * =%<nop>WEB%= expands to the name of the web where the topic is located. If you are looking at the text of an included topic, it is the web where the included topic is located. * Syntax: =%<nop>WEB%=, expands to: =<nop>%WEB%= * Syntax: =%<nop>WEB{"..."}%= or =%<nop>WEB{format="..."}%= * Supported parameter: | *Parameter:* | *Description:* | *Example:* | *Default:* | | ="..."= or%BR% =format="..."= | Format of web name. Supported tokens: %BB% =$web= - the full web path, %BB% =$parents= - parent webs, if any, %BB% =$current= - current web without parent webs, %BB% =$last(<i>n</i>)= - last <i>n</i> webs, including current one, %BB% =$top= - top-level web only, %BB% =$top(<i>n</i>)= - <i>n</i> top-level webs, %BB% =$item(<i>n</i>)= - the <i>n</i>-th web from top %BB% =$list= - comma-space delimited list of webs %BB% =$size= - array size of webs | <span style="white-space: nowrap;"> %BR% =Engineering/TechPubs/Apps/Bugs= %BR% =Engineering/TechPubs/Apps= %BR% =Bugs= for =$current= %BR% =Apps/Bugs= for =$last(2)= %BR% =Engineering= for =$top= %BR% =Engineering/TechPubs= for =$top(2)= %BR% =TechPubs= for =$item(2)= %BR% =Engineering, !TechPubs, Apps, Bugs= %BR% =4= for =$size= </span> | ="$web"= | * Example, assuming =%<nop>WEB%= is =Engineering/TechPubs/Apps/Bugs=: %BR% =%<nop>WEB{"Parent webs: $parents, current web: $current, top-level web: $top"}%= returns:%BR% =Parent webs: Engineering/TechPubs/Apps, current web: Bugs, top-level web: Engineering= * Category: SystemInformationVariables * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarBASEWEB][BASEWEB]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarINCLUDINGWEB][INCLUDINGWEB]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarTOPIC][TOPIC]]
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r6
<
r5
<
r4
<
r3
<
r2
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r6 - 2016-03-03
-
TWikiContributor
Home
Site map
Sandbox web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
E
dit
A
ttach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.VarWEB
.