%META:TOPICINFO{author="TWikiContributor" date="1457032859" format="1.1" version="6"}% %META:TOPICPARENT{name="TWikiVariables"}% #VarWEB ---+++ WEB -- name of current web * =%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: =%WEB%=, expands to: =%WEB%= * Syntax: =%WEB{"..."}%= or =%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(n)= - last n webs, including current one, %BB% =$top= - top-level web only, %BB% =$top(n)= - n top-level webs, %BB% =$item(n)= - the n-th web from top %BB% =$list= - comma-space delimited list of webs %BB% =$size= - array size of webs |   %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= | ="$web"= | * Example, assuming =%WEB%= is =Engineering/TechPubs/Apps/Bugs=: %BR% =%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]]