CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 31 Jul 2025 05:05:59 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20200811083417
location: https://web.archive.org/web/20200811083417/https://wiki.python.org/moin/HelpOnMacros/Include
server-timing: captures_list;dur=0.519812, exclusion.robots;dur=0.026355, exclusion.robots.policy;dur=0.012737, esindex;dur=0.009947, cdx.remote;dur=21.826448, LoadShardBlock;dur=182.255337, PetaboxLoader3.datanode;dur=83.953496, PetaboxLoader3.resolve;dur=64.141208
x-app-server: wwwb-app210
x-ts: 302
x-tr: 234
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app210; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 31 Jul 2025 05:06:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Tue, 11 Aug 2020 08:34:17 GMT
x-archive-orig-server: Apache
x-archive-orig-vary: Cookie,User-Agent,Accept-Encoding
x-archive-orig-set-cookie: MOIN_SESSION_443_ROOT_moin=32b86cf64c332da23b0ad053ce94c5c1b75b6573; Expires=Tue, 11-Aug-2020 09:34:00 GMT; Max-Age=3600; Secure; Path=/
x-archive-orig-strict-transport-security: max-age=31536000; includeSubDomains
x-archive-orig-x-crawler-content-encoding: gzip
x-archive-orig-x-crawler-content-length: 3603
x-archive-orig-content-length: 14323
x-archive-orig-keep-alive: timeout=5, max=100
x-archive-orig-connection: Keep-Alive
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 11 Aug 2020 08:34:17 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 22 May 2006 13:03:40 GMT", ; rel="prev memento"; datetime="Mon, 12 Apr 2010 13:03:51 GMT", ; rel="memento"; datetime="Tue, 11 Aug 2020 08:34:17 GMT", ; rel="last memento"; datetime="Tue, 11 Aug 2020 08:34:17 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: CC-MAIN-2020-34-1596439738735.44-0026/CC-MAIN-20200811055449-20200811085449-00537.warc.gz
server-timing: captures_list;dur=0.476651, exclusion.robots;dur=0.019545, exclusion.robots.policy;dur=0.009596, esindex;dur=0.008512, cdx.remote;dur=24.797691, LoadShardBlock;dur=351.368858, PetaboxLoader3.datanode;dur=103.310995, PetaboxLoader3.resolve;dur=363.235980, load_resource;dur=251.951233
x-app-server: wwwb-app210
x-ts: 200
x-tr: 683
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
HelpOnMacros/Include - Python Wiki
Include
This macro includes the formatted content of the given local wiki page(s), following recursive includes if encountered. If the recursion generates any cycles, this is detected and prevented!
Usage
<<Include(pagename, heading, level, from="regex", to="regex", sort=ascending|descending, items=n, skipitems=n, titlesonly, editlink)>>
- pagename
Name of the page to include, if it starts with a caret "^", a regex of pages to include.
- heading
- Text for the generated heading which will link to the included page (optional).
- level
- Level (1..5) of the generated heading (optional).
- from
- Partial include start marker (optional).
- to
- Partial include end marker (optional).
- sort
- Sorting order when pagename is a regex, i.e. starts with a caret (optional).
- items
- Maximum number of pages to include.
- skipitems
- Number of initial pages to skip over (optional).
- titlesonly
- Only include a link to the page, not page content (optional).
- editlink
- add a footer with links to the included page, both normal and edit (optional).
All parameters except pagename are optional, but you have to follow the given order! If you want to omit "heading", you have to leave the second parameter empty.
from and to recognise the pattern in comments as well. So watch out for comments that stop the include unexpectedly.
Examples
Include the text of page FooBar in the current paragraph:
<<Include(FooBar)>>
- Add a linked H1 of 'Foo Bar' followed by the text:
<<Include(FooBar,"Foo Bar" )>>
- Add a H2 of 'Foo Bar':
<<Include(FooBar, , 2)>>
- Add a H2 of 'All about Foo Bar':
<<Include(FooBar, 'All about Foo Bar', 2)>>
- Only include content after first horizontal rule:
<<Include(FooBar, , from="^----$")>>
- Only include content until first horizontal rule:
<<Include(FooBar, , to="^----$")>>
- Sort the page list in descending order:
<<Include(^FooBar/.*, , sort=descending)>>
- Include a maximum of three pages:
<<Include(^FooBar/.*, , items=3)>>
- Show at most a week of a blog:
<<Include(^BlogBase/.*,, to="^----$", sort=descending, items=7)>>
- Show the previous week with titles only:
<<Include(^BlogBase/.*,, to="^----$", sort=descending, items=7, skipitems=7, titlesonly)>>
You can use these with ../MonthCalendar for blogging:
- Show 3 items out of a month calendar:
<<Include(^FirstnameLastname/20..-..-..,,to="^----",sort=descending,items=3)>>
- Show next 4 items only with titles:
<<Include(^FirstnameLastname/20..-..-..,,to="^----",sort=descending,items=4,skipitems=3,titlesonly)>>
- Show 3 items out of a month calendar:
Unable to edit the page? See the FrontPage for instructions.