Last modified: 2014-06-04 19:49:21 UTC
When I create pages using editintro=Template:Foo I'd like too the included content of Template:Foo in a div with an own css class or id to give it some background etc. which is even more useful when you start with preview=yes.
** I'd like to see the included content... Best would be if the content was passed to [[MediaWiki:Editintro]] for full customization options.
To clarify bug report: When you use the editintro url parameter to add some template to the top of the edit page (for example: https://en.wikipedia.org/wiki/Project:Sandbox?editintro=:Main_Page&action=edit . People often do this to have custom help text), the included template should be contained within a <div> tag, which has some class (say mw-editintro). So you would have <div class="mw-editintro">TEMPLATE HERE</div> instead of current system where template is just plopped in without a containing <div> tag. See also EditPage::showCustomIntro in includes/EditPage.php for where its implemented. >Best would be if the content was passed to [[MediaWiki:Editintro]] for full >customization options. That seems overkill. Lets stick with the css class, unless you have a compelling use case for using the message.
can i work on it??
andnlnbn18: Sure! See comment 2 and https://www.mediawiki.org/w/index.php?title=Annoying_little_bugs&oldid=909808#Helpful_information_for_new_MediaWiki_coders for info
manipulating the showCustomIntro on page 2111 in /includes/EditPage.php https://doc.wikimedia.org/mediawiki-core/master/php/html/EditPage_8php_source.html as http://pastebin.com/1v6XtYAw works??
It is up to you to test and check your patch to see if it works. I cannot judge the code that you pasted on pastebin.com as it is not in patch format and it is cumbersome to compare line for line manually. Please always provide changes in patch format. You find pointers in the link in comment 4.
There is actually a fairly obvious syntax error in the linked pastebin.... but yes, please try it on your own mediawiki and see for yourself if it appears to work correctly.
Change 115607 had a related patch set uploaded by Lekshmi: editintro given a css class of its own https://gerrit.wikimedia.org/r/115607
Note, that editnotices are not included. Will appear on wikipedia on about June 12th
Change 115607 merged by jenkins-bot: editintro given a css class of its own https://gerrit.wikimedia.org/r/115607