create new tag
, view all tags
ALERT! NOTE: This is a DistributionDocument. Please help maintain high quality documentation: This is a wiki, please fix the documentation if you find errors or incomplete content. Put questions and suggestions concerning the documentation of this topic in the comments section below. Use the Support web for problems you are having using TWiki.

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
  • Syntax: %WEB{"..."}% or %WEB{format="..."}%
  • Supported parameter:
    Parameter: Description: Example: Default:
    "..." or
    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
    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
  • 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
  • Category: SystemInformationVariables

Comments & Questions about this Distribution Document Topic

Please use the Support forum if you have questions about TWiki features. This comment section is about the documentation of this topic.
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2016-03-03 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.