Hello All,
My <Pre> tag is rendered normally in the mediawiki articles. resulting in table tags being written a <table instead of <table. Making the articles look funny. Can you please help ?
Thank you for your time,
Waleed A. Meligy
That's how <pre> works in MediaWiki - it replaces some entities in the internal data.
If you want a preformatted text block that still interprets wikitext, simply indent all the lines with a leading space. So instead of this:
<pre> Something here </pre>
You'd do this:
Something here
At least, I think that's what you're getting at.
Another thing to note: both "<" and "<" will appear as "<" in the HTML and thus displayed as "<" on the page. If you really want to see "<" on the page, you have to put "&lt;" inside the <pre> tag.
-- Jim R. Wilson (jimbojw)
On 6/2/07, Waleed Meligy waleed.meligy@gmail.com wrote:
Hello All,
My <Pre> tag is rendered normally in the mediawiki articles. resulting in table tags being written a <table instead of <table. Making the articles look funny. Can you please help ?
Thank you for your time,
Waleed A. Meligy
-- Thank you for your time,
Waleed A. Meligy _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi, i'd like to display a webpage in a frame on a specific wiki-page. Is that possible? I'd like to put the webinterface of Mailman and perhaps an archive of my mailinglist on a site of my wiki. It would be cool to have this in a frame and not as a link. Thanks for your help, Marc
I did something similar for phpMyAdmin.
<?php
/** * The MediaMyAdmin Extension's task's are: * - Use of phpMyAdmin via MediaWiki * * @package DantmanAdminExtensions * @subpackage MediaMyAdmin * @author Daniel Friesen (http://www.wikia.com/wiki/User:Dantman) (dan_the_man@telus.net) * @license http://www.gnu.org/copyleft/gpl.html GNU General Public Licence 2.0 or later */
if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
$wgExtensionFunctions[] = 'efMediaMyAdminSetup';
require_once( "$IP/includes/SpecialPage.php" );
$wgExtensionCredits['specialpage'][] = array( 'name' => 'MediaMyAdmin', 'author' => 'Daniel Friesen(aka: Dantman)', );
function efMediaMyAdminSetup() { global $wgMessageCache, $wgUser, $wgRequest, $wgOut; SpecialPage::addPage( new SpecialMediaMyAdmin() ); $wgMessageCache->addMessages( array( 'mediamyadmin' => "MediaMyAdmin", 'mediamyadmin-height' => "500px" ) ); }
/** * Constructor */ class SpecialMediaMyAdmin extends SpecialPage { function SpecialMediaMyAdmin() { global $wgRequest; SpecialPage::SpecialPage( 'MediaMyAdmin', 'mediamyadmin', true, false, 'default', false ); } /** * Execute */ function execute( $par = null ) { global $wgUser, $wgOut, $wgRequest, $egPhpMyAdmin; if ( !$wgUser->isAllowed( 'mediamyadmin' ) ) { $wgOut->permissionRequired( "mediamyadmin" ); return false; } # Don't allow blocked users if ( $wgUser->isBlocked() ) { $wgOut->blockedPage(); return false; } $this->setHeaders(); $wgOut->addHeadItem( 'MediaMyAdminStyle', "<style type='text/css'> /*/*/ /*<![CDATA[*/ #p-cactions #ca-nstab-special, .firstHeading { display: none !important; } #content { padding: 0px 0px 0px 0px; } #MediaMyAdminWindow { margin: -15px 0px 0px 0px; width: 100%; height: ".wfMsgHtml('mediamyadmin-height')."; border: 0px; } /*]]>*/ /* */ </style>" ); $wgOut->addHTML( Xml::openElement( 'iframe', array( 'src' => $egPhpMyAdmin, 'id' => 'MediaMyAdminWindow' ) ). Xml::closeElement( 'iframe' ) ); } }
?>
It's quite a simple rip of code. But you can modify it to do the same for just about anything you want. I did the same for the FireStats interface, but I guess I won't be using either on Wiki-Tools.com.
~Daniel Friesen of The Gaiapedia and Wikia Graphical Entertainment Project
freie-wohnung wrote:
Hi, i'd like to display a webpage in a frame on a specific wiki-page. Is that possible? I'd like to put the webinterface of Mailman and perhaps an archive of my mailinglist on a site of my wiki. It would be cool to have this in a frame and not as a link. Thanks for your help, Marc
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
freie-wohnung wrote:
Hi, i'd like to display a webpage in a frame on a specific wiki-page. Is that possible? I'd like to put the webinterface of Mailman and perhaps an archive of my mailinglist on a site of my wiki. It would be cool to have this in a frame and not as a link. Thanks for your help,
given this will be a static page, you can simply copy the html page to a .html one and change the code there like this test page:
http://www.culte.org/pmwiki/media/test2.html
If you save this page, say in pmwiki/media like me, the css are still at the same relative (and absolute) place an so the skins works.
(not fully tested)
jdd
Thx for the tips. I will use http://www.mediawiki.org/wiki/Extension:Anysite To embed the website into my wiki. Marc
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von jdd Gesendet: Sonntag, 3. Juni 2007 15:15 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] webpage in frame in wiki-page
freie-wohnung wrote:
Hi, i'd like to display a webpage in a frame on a specific wiki-page. Is that possible? I'd like to put the webinterface of Mailman and perhaps an archive of my mailinglist on a site of my wiki. It would be cool to have this in a frame and not as a link. Thanks for your help,
given this will be a static page, you can simply copy the html page to a .html one and change the code there like this test page:
http://www.culte.org/pmwiki/media/test2.html
If you save this page, say in pmwiki/media like me, the css are still at the same relative (and absolute) place an so the skins works.
(not fully tested)
jdd
freie-wohnung wrote:
http://www.culte.org/pmwiki/media/test2.html
If you save this page, say in pmwiki/media like me
sorry I misread the mailing list name :-( I use the two wikis). But the tip may work also for mediawiki (not tested)
jdd
Jim,
Thanks for your response. After checking, Turns out all i had to do was to turn the "tidy" option on. And that solved it!
Thank you for your response once again,
Waleed A. Meligy
On 6/3/07, Jim Wilson wilson.jim.r@gmail.com wrote:
That's how <pre> works in MediaWiki - it replaces some entities in the internal data.
If you want a preformatted text block that still interprets wikitext, simply indent all the lines with a leading space. So instead of this:
<pre> Something here </pre>
You'd do this:
Something here
At least, I think that's what you're getting at.
Another thing to note: both "<" and "<" will appear as "<" in the HTML and thus displayed as "<" on the page. If you really want to see "<" on the page, you have to put "&lt;" inside the <pre> tag.
-- Jim R. Wilson (jimbojw)
On 6/2/07, Waleed Meligy waleed.meligy@gmail.com wrote:
Hello All,
My <Pre> tag is rendered normally in the mediawiki articles. resulting
in
table tags being written a <table instead of <table. Making the articles look funny. Can you please help ?
Thank you for your time,
Waleed A. Meligy
-- Thank you for your time,
Waleed A. Meligy _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org