<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Volkimki56</id>
	<title>HTYP - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Volkimki56"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/Special:Contributions/Volkimki56"/>
	<updated>2026-06-25T11:30:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=MediaWiki/archive/embedding&amp;diff=16212</id>
		<title>MediaWiki/archive/embedding</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=MediaWiki/archive/embedding&amp;diff=16212"/>
		<updated>2011-10-27T13:49:26Z</updated>

		<summary type="html">&lt;p&gt;Volkimki56: /* To Do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
This page is about embedding [[MediaWiki]] content within non-MediaWiki sites, or as standalone pages without the standard navigation and control links provided by most [[MediaWiki skin]]s.&lt;br /&gt;
==non-PHP==&lt;br /&gt;
This is easiest to do if the other application is also written in [[PHP]], but it is possible to do this using other languages as well. [[Perl]] has a library, [http://search.cpan.org/~gschloss/PHP-Interpreter-1.0.1/lib/PHP/Interpreter.pm PHP::Interpreter], that allows it to execute PHP code; other languages may have similar capabilities.&lt;br /&gt;
&lt;br /&gt;
If they do not, then one can still accomplish a certain amount by loading MediaWiki pages using [[http]] and the &amp;quot;?action=render&amp;quot; directive, which displays the page&#039;s &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[http://thebeginnerslens.com/ &amp;lt;span style=&amp;quot;color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;&amp;quot;&amp;gt;iphone photography&amp;lt;/span&amp;gt;]&lt;br /&gt;
bare contents without any of the navigation aids. (This method is not recommended if you have any alternatives, as it is slow and wasteful of CPU resources.)&lt;br /&gt;
&lt;br /&gt;
==PHP==&lt;br /&gt;
This works with MediaWiki v&#039;&#039;&#039;1.16&#039;&#039;&#039;:&lt;br /&gt;
* [[/1.16/index.php]]&lt;br /&gt;
These have been tested with MediaWiki v&#039;&#039;&#039;1.14&#039;&#039;&#039;.&lt;br /&gt;
* [[/1.14/index.php]] is a usage example; as given, it provides a standalone page, but it also shows the code needed to retrieve page content&lt;br /&gt;
* [[/1.14/extract.php]] is the code which actually does the work of extraction; the function GetWikiPage($iTitle) returns the page&#039;s contents as a string.&lt;br /&gt;
Configuration info is in index.php. Note that this has not been tested &#039;&#039;very much&#039;&#039;; I got it working on my server, then posted it.&lt;br /&gt;
&lt;br /&gt;
Works on MW &#039;&#039;&#039;1.10&#039;&#039;&#039;:&lt;br /&gt;
* [[/old/extract.php/v2]]&lt;br /&gt;
&lt;br /&gt;
Based on MW somewhere around &#039;&#039;&#039;1.7&#039;&#039;&#039;:&lt;br /&gt;
* [[/old/extract.php/v1]]&lt;br /&gt;
===To Do===&lt;br /&gt;
* I need to work out the code for detecting if a given page exists in the wiki, so the main application can display default values other than the wiki&#039;s default (&amp;quot;This page doesn&#039;t exist yet...&amp;quot;). Detecting &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[http://www.bestpills4weightloss.com/ &amp;lt;span style=&amp;quot;color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;&amp;quot;&amp;gt;weight loss pills&amp;lt;/span&amp;gt;] this with the method below may or may not be possible; if MediaWiki returns a 404 code for non-existent articles, then that &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[http://www.premierrivercruises.com/river-cruise-regions-of-the-world/vietnam-river-cruise&amp;lt;span style=&amp;quot;color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;&amp;quot;&amp;gt;Vietnam river cruises&amp;lt;/span&amp;gt;] could be used, but I don&#039;t yet know if it does. --[[User:Woozle|Woozle]] 18:52, 15 October 2006 (EDT)&#039;&#039;&lt;br /&gt;
* We don&#039;t yet know how to get MediaWiki to emit fully-qualified URLs; it is currently necessary to do a search-and-replace to fix links targeting the wiki. (It&#039;s probably a configuration thing -- $wgArticlePath, I&#039;d guess. Don&#039;t know if link URLs get cached, though, so that might not work reliably. --[[User:Woozle|Woozle]] 19:29, 6 June 2009 (EDT))&lt;/div&gt;</summary>
		<author><name>Volkimki56</name></author>
	</entry>
</feed>