public function parseContent( $html ){
		$pattern = '~<p>ADDTEMPLATE\(([\w_:-]*)\):([\w_-]+):ETALPMETDDA<\/p>~m';
		if( preg_match_all($pattern, $html, $matches, PREG_SET_ORDER) ){
			foreach($matches as $match){
				//if a zone is specified, attach the template
				if(!empty($match[1])){
					$this->getLayout()->addTemplateTo($match[1], $match[2]);
					$html = str_replace($match[0], '', $html);
				}else{
				//otherwise inject the template inline into the wikitext
					$html = str_replace($match[0], $this->getLayout()->renderTemplate($match[2]), $html);
				}
			}
		}
		return $html;
	}
public function parseContent( $html ){
		$pattern = '~<p>ADDTEMPLATE\(([\w_:-]*)\):([\w_-]+):ETALPMETDDA<\/p>~m';
		if( preg_match_all($pattern, $html, $matches, PREG_SET_ORDER) ){
			foreach($matches as $match){
				//if a zone is specified, attach the template
				if(!empty($match[1])){
					$this->getLayout()->addTemplateTo($match[1], $match[2]);
					$html = str_replace($match[0], '', $html);
				}else{
				//otherwise inject the template inline into the wikitext
					$html = str_replace($match[0], $this->getLayout()->renderTemplate($match[2]), $html);
				}
			}
		}
		return $html;
	}
public function parseContent ( $ html ) { $ pattern = '~<p>ADDTEMPLATE\(([\w_:-]*)\):([\w_-]+):ETALPMETDDA<\/p>~m' ; if ( preg_match_all ( $ pattern , $ html , $ matches , PREG_SET_ORDER ) ) { foreach ( $ matches as $ match ) { //if a zone is specified, attach the template if ( ! empty ( $ match [ 1 ] ) ) { $ this -> getLayout ( ) -> addTemplateTo ( $ match [ 1 ] , $ match [ 2 ] ) ; $ html = str_replace ( $ match [ 0 ] , '' , $ html ) ; } else { //otherwise inject the template inline into the wikitext $ html = str_replace ( $ match [ 0 ] , $ this -> getLayout ( ) -> renderTemplate ( $ match [ 2 ] ) , $ html ) ; } } } return $ html ; }
parse the bodytext and insert any templates added by the skintemplate parser function
parse the bodytext and insert any templates added by the skintemplate parser function