Extension talk:Boilerplate

There seems to be a problem with boilerplate. It only puts on the page. I have a boilerplate page, like this boilerplate. I use the following software:

MediaWiki: 1.7.1 PHP: 5.1.6-pl8-gentoo (cgi-fcgi) MySQL: 5.0.26-log

The wfMsg thing doesn't work.


 * i have not tested it on 1.7.1, would be happy to take a look at your installation, as i dont have that version available. how can i contact you to help? --RouslanZenetl 20:30, 13 December 2006 (UTC)

I have the same problem. I'm using MediaWiki version 1.66

All that appears on the page is &lt;Boilerplate&gt;

Also, when I hit the 'view preview' tab, it removes all the text I had in the text box and replaces it with &lt;Boilerplate&gt;

Any ideas?

Grj 21:08, 29 December 2006 (UTC)

You have also to create a page in the ns MediaWiki with the name boilerplate ;)

but my problem is:

i want to use a template in the boilerplate, but included is not only the template, instead the source code which the template creates. how can i just get a string on my new site?

--84.141.72.146 12:06, 22 February 2007 (UTC) using mw 1.9.3

I have managed to get it to work on MediaWiki version 1.9.3 with this modified version. Rouslan, feel free to update the main page with this or clean it up as needed.

enableClientCache(false); if (!$editpage->preview        && !$editpage->mArticle->mContentLoaded         && $editpage->mArticle->mTitle->mNamespace==0) { $boilerplate_title = Title::newFromText('boilerplate'); $boilerplate_article = new Article($boilerplate_title); $editpage->textbox1=$boilerplate_article->GetContent; $editpage->textbox2=$editpage->textbox1; }    return true; } ?>

147.209.216.245 03:23, 23 April 2007 (UTC)

This give me warnings like ''header already set. Ik got the óld'version to work. As mentioned above the MediaWiki:boilerplat is the page that contains the default texst. [ --Vic-- 14:55, 2 May 2007 (UTC)]

You may have some UTF8 Chars in your php Skript. Convert it to ASCII and header already set is gone. :-)

Adding a template to the boilerplate
To add a template reference such as  without the editor converting the code into the actual template contents, you need to reference a template which in turn references another template.