mkroetzsch / AutoCreatePage

MediaWiki extension to create pages with a parser function
http://www.mediawiki.org/wiki/Extension:AutoCreatePage
GNU General Public License v2.0
6 stars 12 forks source link

Adding three stripping lines #8

Closed kghbln closed 8 years ago

kghbln commented 8 years ago

Taken from the talk page on mw.o as a suggestion:

Added 3 lines to AutoCreatePage.php behind line 94:

$newPageContent = str_replace ( "{" , "{" , str_replace ( "}" , "}" , $newPageContent ) );
$newPageContent = str_replace ( "|" , "|" , $newPageContent );
$newPageContent = str_replace ( """ , "#" , $newPageContent );

This makes the use of templates much easier. Just write in the template what you need with {, &#125&#59, and | and " into a template. Include the template in the parameter, and all works as expected. Made my life much easier...

mkroetzsch commented 8 years ago

Thanks, I commented on the talk why I think this is not needed.

kghbln commented 8 years ago

Well I have to thank you for providing feedback. Since I am not sure how often you are over there I figured it may be nice to inform you here. Makes more sense anyway since a code change was proposed.

mkroetzsch commented 8 years ago

Yes, indeed. I would surely not have seen the talk page if you would not have pointed it out here.