Difference: IncludeTopicsAndWebPages (4 vs. 5)

Revision 52003-01-16 - PeterThoeny

Line: 1 to 1
Changed:
<
<
Include Topics and Web Pages Using %INCLUDE{...}% Variable
>
>

Include Topics and Web Pages Using %INCLUDE{...}% Variable

  Use the %INCLUDE{...}% variable to embed the content of another topic or web page inside a TWiki topic. The whole content or only parts of a page can be included.
Line: 30 to 30
 

1. Display regression test results in a TWiki page

  <pre>

Changed:
<
<
%INCLUDEURL{"http://domain/~qa/v1.1/REDTest.log.txt"}%
>
>
%INCLUDE{"http://domain/~qa/v1.1/REDTest.log.txt"}%
  </pre>

2. Display Yahoo's robot.txt file

  • You type:
Changed:
<
<
    • %INCLUDE{"http://www.yahoo.com/robots.txt"}%
  • You get:
%INCLUDE{"http://www.yahoo.com/robots.txt"}%
>
>
    • %INCLUDE{"http://www.yahoo.com/robots.txt"}%
 

3. Display the SUNW stock quote in a TWiki page

  • You type:
Changed:
<
<
    • SUNW: %INCLUDE{"http://finance.yahoo.com/q?s=SUNW&d=v1&o=t" pattern="^.*?>SUNW</a>[^<]+(.*?)\s+\S+\s+<small.*"}%
>
>
    • SUNW: %INCLUDE{"http://finance.yahoo.com/q?s=SUNW&d=v1&o=t" pattern="^.*?>SUNW</a>[^<]+(.*?)\s+\S+\s+<small.*"}%
 
  • You get:
    • SUNW:
Warning
This site does not allow %INCLUDE% of URLs

4. Display the temperature in San Francisco

  • You type:
Changed:
<
<
    • San Francisco: %INCLUDE{"http://weather.yahoo.com/forecast/San_Francisco_CA_US_f.html" pattern="^.*?([0-9]+\&ordm\;F).*"}%
>
>
    • San Francisco: %INCLUDE{"http://weather.yahoo.com/forecast/San_Francisco_CA_US_f.html" pattern="^.*?([0-9]+\&ordm\;F).*"}%
 
  • You get:
    • San Francisco:
Warning
This site does not allow %INCLUDE% of URLs

See also other TWikiVariables.

Changed:
<
<
-- PeterThoeny - 25 Jun 2001
>
>
-- PeterThoeny - 15 Jan 2003
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 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.IncludeTopicsAndWebPages.