Diff: Help/TranscludePlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 2 and previous revision of Help/TranscludePlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 2 Last edited on 22 May 2014 3:01 by harold Revert
Older page: version 1 Last edited on 17 January 2022 18:35 by harold Revert
@@ -1,7 +1,5 @@
 The **Transclude** [[Help:WikiPlugin|plugin]] can be used to embed include whole (external) web pages within a wiki page. 
-  
-Pages are transcluded using ##<iframe>## tags.  
  
 == Arguments == 
  
 {| class="bordered" 
@@ -11,9 +9,9 @@
 ! Default value 
 |- 
 | **src** 
 | The URL of the page to transclude 
-| //none// (mandatory argument)  
+| //none// 
 |- 
 | **title** 
 | The title of the page to transclude 
 | //Transcluded page// 
@@ -22,27 +20,28 @@
 | The (initial) height of the transclusion frame. If, possible, after the transcluded page is loaded, the frame is resized via Javascript so that it fits the entire transcluded page. (See below for more.) 
 | 450 
 |- 
 | **quiet** 
-| Boolean. If true , frame appears as normal content.  
+| If set , frame appears as normal content 
 | false 
 |} 
  
 == Bugs / Caveats == 
  
+* Pages are transcluded using ##<iframe>## tags. Older browsers do not support //iframe//s. In that case the user will be presented with a link to the transcluded material.  
 * When possible, Javascript code is used to adjust the height of the //iframe// so that it fits the entire transcluded page. Unfortunately, this seems possible only when the transcluded page comes from the same server as the wiki page. (This restriction is due to security checks built in to the Javascript language.) 
 * The recursion detection code does not currently work. Be careful to avoid recursive transclusions, or you'll be sorry (or at least amused.) 
  
 == Example == 
  
 {{{ 
-<<Transclude src="https ://en .wikipedia .org /wiki /PhpWiki ">> 
+<<Transclude src="http ://phpwiki .svn .sourceforge.net/viewvc/phpwiki/trunk /pgsrc /ReleaseNotes?view=markup ">> 
 }}} 
  
 will get you 
  
-<<Transclude src="https ://en .wikipedia .org /wiki /PhpWiki ">> 
+<<Transclude src="http ://phpwiki .svn .sourceforge.net/viewvc/phpwiki/trunk /pgsrc /ReleaseNotes?view=markup ">> 
  
 <noinclude> 
 ---- 
 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]] 
 </noinclude> 

version 2

The Transclude plugin can be used to embed include whole (external) web pages within a wiki page.

Arguments

Argument

Description

Default value

src

The URL of the page to transclude

none

title

The title of the page to transclude

Transcluded page

height

The (initial) height of the transclusion frame. If, possible, after the transcluded page is loaded, the frame is resized via Javascript so that it fits the entire transcluded page. (See below for more.)

450

quiet

If set, frame appears as normal content

false

Bugs / Caveats

  • Pages are transcluded using <iframe> tags. Older browsers do not support iframes. In that case the user will be presented with a link to the transcluded material.
  • When possible, Javascript code is used to adjust the height of the iframe so that it fits the entire transcluded page. Unfortunately, this seems possible only when the transcluded page comes from the same server as the wiki page. (This restriction is due to security checks built in to the Javascript language.)
  • The recursion detection code does not currently work. Be careful to avoid recursive transclusions, or you'll be sorry (or at least amused.)

Example

<<Transclude src="http://phpwiki.svn.sourceforge.net/viewvc/phpwiki/trunk/pgsrc/ReleaseNotes?view=markup">>

will get you

Transcluded from http://phpwiki.svn.sourceforge.net/viewvc/phpwiki/trunk/pgsrc/ReleaseNotes?view=markup