Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r5  >  r4  ...
IncludeTopicsAndWebPages 5 - 16 Jan 2003 - Main.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:

<-- template: messages.nat.tmpl -->
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:

<-- template: messages.nat.tmpl -->
Warning
This site does not allow %INCLUDE% of URLs

See also other TWikiVariables.

Changed:
<
<
-- PeterThoeny? - 25 Jun 2001
>
>
-- PeterThoeny? - 15 Jan 2003

Revision 5r5 - 16 Jan 2003 - 07:35:00 - PeterThoeny?
Revision 4r4 - 11 Dec 2002 - 08:18:06 - PeterThoeny?
This site is powered by the TWiki collaboration platform.
All material on this collaboration platform is the property of the contributing authors.
All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.
Syndicate this site RSSATOM