Extension:Boilerplate

Introduction
This extension loads pre-defined text (from page named boilerplate) when a brand new page is created.

Download and Installation
Step 1: Copy-paste this code into a file boilerplate.php and place it in extensions directory.

enableClientCache(false);

if (!$editpage->preview       && !$editpage->mArticle->mContentLoaded        && $editpage->mArticle->mTitle->mNamespace==0) { $editpage->textbox1=wfMsg('boilerplate'); $editpage->textbox2=$editpage->textbox1; }

return true;

}

?>

Step 2: Add the following line to LocalSettings.php:

require_once("$IP/extensions/boilerplate.php");

Thats it!

License
You are free to use this extension for any reason and mutilate it to your heart's liking. If you feel your work might benefit others, post your changes here.