Include Other Pages
authors (intermediate)
The (:include:)
directive makes it possible to insert the contents of other pages into the current wiki page. All of the include directives below perform a straight text inclusion. In particular, any page links in the included text are assumed to link to pages in the current group if not otherwise qualified.
(:include PageName:)
(:include Group.PageName:)
- Includes the entire text of another page into the current page.
(:include PageName#from#to:)
(:include PageName#from#:)
(:include PageName##to:)
(:include PageName#from:)
- Includes lines from PageName between the
[[#from]]
and[[#to]]
anchors. If "to" is omitted (second example), then all of the lines after[[#from]]
are included (and vice-versa if "from" is omitted). In the last example, include everything between[[#from]]
and the next anchor.
(:include PageName lines=10:)
(:include PageName lines=5..10:)
(:include PageName lines=5..:)
- Include the first 10 lines, lines 5-10, or lines 5 and up from PageName. A "line" in this context refers to a line of source. Thus a line may be a paragraph that wraps over several lines on the screen, or a completely blank line.
(:include Page1 Page2 Page3 lines=1..5:)
- Include the first five lines from the first available of Page1, Page2, or Page3. (To include lines from a list of pages, use a separate include for each.)
(:include PageName self=0:)
- The parameter
self
can be0
or1
. It tells the include directive if it is allowed to include the current page. This is useful if PageName is a variable like{$Name}
and you want to prevent the directive from including the current page.
See Also
Styling Note
By default, Included pages or lines cannot be distinguished from other text on the page. To provide a visual indication that this text is special, you can apply WikiStyles. For example:
%define=leftborder border-left="2px solid #88f" margin-left="2px" padding="1px 0 3px 10px"% What is PmWiki? >>leftborder<< (:include PmWiki.PmWiki lines=1..4:) >><< ''Have a very nice day!'' |
What is PmWiki? I've got a part-time job <a href=" http://www.rebeccalouiselaw.com/can-you-take-viagra-after-food.pdf ">viagra for sale in new zealand</a> Under Loescher, Siemens failed to keep up with rivals suchas Philips and General Electric in terms ofinnovation and profitability. Its stock now trades at 12.4 timesestimated 12-month forward earnings, at a discount to bothPhilips and GE, which trade at multiples of 15.3 and 14.0,according to StarMine data.
<a href=" http://www.stsmihajlopupin.edu.rs/propecia-canada-no-prescription.pdf ">propecia over the counter canada</a> Alex Rodriguez had a chance to be the hero in the 11th, coming to bat with two out and the go-ahead run at third base. The embattled slugger, on the field hours after appealing a 211-game suspension related to the Biogenesis PED scandal, grounded out to third, finishing 1-for-5 with a walk, He went 3-for-11 with two walks and a hit-by-pitch in his first series back from offseason hip surgery as the Yankees fell to 0-3 since his return. <a href=" http://www.stsmihajlopupin.edu.rs/erythromycin-base-500mg-tab.pdf ">erythromycin base 250 mg tablets</a> Heavy web traffic and technical glitches stalled many of the new insurance exchange sites at their launch on Tuesday, suggesting a slow start to the six-month enrollment period. The administration went ahead with the launch despite a federal government shutdown precipitated by Republican efforts to delay the healthcare law's implementation. <a href=" http://www.drcarlhart.com/differin-gel-01-precio.pdf ">what does differin do to your skin</a> Knox and her Italian boyfriend at the time of the murder, Raffaele Sollecito, were convicted in 2009 of killing 21-year-old Leeds University student Meredith Kercher in what was described as a drug-fuelled sexual assault. Have a very nice day! |
Notes
- You can also say
(:include My/Page#ananchor lines=4:)
which starts from, and includes, the line with the anchor[[#myanchor]]
for four lines.
<< Page directives | DocumentationIndex | InterMap >>
What's the maximum number of includes that can exist in a page? My site seems to stop including after 48 includes.
By default, PmWiki places a limit of 50 include directives for any given page, to prevent runaway infinite loops and other situations that might eat up server resources. The limit can be modified by the wiki administrator via the $MaxIncludes
variable.