Difference: VarWEB (1 vs. 6)

Revision 603 Mar 2016 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

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: TWiki
Changed:
<
<
  • Syntax: %WEB{format="..."}%
>
>
  • Syntax: %WEB{"..."}% or %WEB{format="..."}%
 
  • Supported parameter:
Changed:
<
<
Parameter: Description: Default:
format="..." Format, may include tokens $web (the full web path), $parents (parent webs, if any), $current (current web without parent webs), $top (top-level web with any subwebs removed) "$web"
  • Example, assuming %WEB% is Engineering/TechPubs/Apps:
    %WEB{format="Parent webs: $parents, current web: $current, top-level web: $top"}% returns: Parent webs: Engineering/TechPubs, current web: Apps, top-level web: Engineering
>
>
Parameter: Description: Example: Default:
<-- -->
Sorted ascending
"..." or
format="..."
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/Bugs
Engineering/TechPubs/Apps  
Bugs for $current
Apps/Bugs for $last(2)
Engineering for $top
Engineering/TechPubs for $top(2)
TechPubs for $item(2)
Engineering, TechPubs, Apps, Bugs
4 for $size
"$web"
  • Example, assuming %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
 

Revision 515 Nov 2012 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

WEB -- name of current web

Line: 7 to 7
 
Changed:
<
<
format="..." Format, may include tokens $web (the full web path), $parents (parent webs, if any), $current (current web without parent webs) "$web"
  • Example, assuming %WEB% is Engineering/TechPubs/Apps:
    %WEB{format="Parent webs: $parents, current web: $current"}% returns: Parent webs: Engineering/TechPubs, current web: Apps
>
>
format="..." Format, may include tokens $web (the full web path), $parents (parent webs, if any), $current (current web without parent webs), $top (top-level web with any subwebs removed) "$web"
  • Example, assuming %WEB% is Engineering/TechPubs/Apps:
    %WEB{format="Parent webs: $parents, current web: $current, top-level web: $top"}% returns: Parent webs: Engineering/TechPubs, current web: Apps, top-level web: Engineering
  • Category: SystemInformationVariables
 

Revision 419 Apr 2010 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

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.
Changed:
<
<
  • Syntax: %WEB%
  • Expands to: TWiki
>
>
  • Syntax: %WEB%, expands to: TWiki
  • Syntax: %WEB{format="..."}%
  • Supported parameter:
    Parameter: Description: Default:
    format="..." Format, may include tokens $web (the full web path), $parents (parent webs, if any), $current (current web without parent webs) "$web"
  • Example, assuming %WEB% is Engineering/TechPubs/Apps:
    %WEB{format="Parent webs: $parents, current web: $current"}% returns: Parent webs: Engineering/TechPubs, current web: Apps
 

Revision 304 Feb 2007 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

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: TWiki
Changed:
<
<
>
>

Revision 204 Feb 2007 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"
Deleted:
<
<
 

WEB -- name of current web

Added:
>
>
  • %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.
 

Revision 127 Mar 2005 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

WEB -- name of current web

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2019 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.