%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.
%WEB%, expands to: TWiki
%WEB{"..."}% or %WEB{format="..."}%
| Parameter: | Description: | Example: | Default: | 
|---|---|---|---|
| "..."orformat="..." | Format of web name. Supported tokens: • $web- the full web path,• $parents- parent webs, if any,• $current- current web without parent webs,• $last(n)- last n webs, including current one,• $top- top-level web only,• $top(n)- n top-level webs,• $item(n)- the n-th web from top• $list- comma-space delimited list of webs• $size- array size of webs | Engineering/TechPubs/Apps/BugsEngineering/TechPubs/AppsBugsfor$currentApps/Bugsfor$last(2)Engineeringfor$topEngineering/TechPubsfor$top(2)TechPubsfor$item(2)Engineering, TechPubs, Apps, Bugs4for$size | "$web" | 
%WEB% is Engineering/TechPubs/Apps/Bugs: %WEB{"Parent webs: $parents, current web: $current, top-level web: $top"}% returns:Parent webs: Engineering/TechPubs/Apps, current web: Bugs, top-level web: Engineering 
 
  Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.