Extension:PreParse

Right now, this is just a placeholder for a project I am working on.

<?php /** * @copyright Copyright © 2010, theGleep, http://www.theGleep.com * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2 * of the License. * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * See the GNU General Public License for more details. */ /** * * This extension allows transclusion inside of templates, so that the * transclusion will be completed before the template is processed. * * The specific application of this is to allow the transcluded page to * provide multiple parameters for the template * * It will only operate when the regular expression: {{[^}]{{preParse * "hits" * * @author Earl Brown * @version $Revision: 0.1 $ */ if (!defined('MEDIAWIKI')) { die("This can not be run from command line"); } $wgExtensionCredits['parserhook'][] = array(	'name' => 'preParse',	'version' => '$Revision: 0.9 $',	'author' => 'Earl Brown', 'url' => 'http://www.mediawiki.org/wiki/Extension:PreParse',  'description' => 'Transclude content before extensions are evaluated.', );

function preParse( &$parser, &$text, &$strip_state ) {

}

$wgHooks['ParserBeforeInternalParse'][] = 'preParse';