0

MediaWiki wraps all space-indented nested content in <pre> HTML tags.
To reproduce go to a MediaWiki web site with the skin "Vector", go to an edit page, add some HTML content, add some space-indented nested HTML content inside it, and save the page.

How can one turn this behavior off?

closed as off-topic by Rob, dan Jun 26 at 6:23

  • This question does not appear to be about webmastering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

locked by dan Jun 26 at 8:55

This post has been locked due to the high amount of off-topic comments generated. A link to a chat room will be posted in the comments below if the conversation was moved to chat.

Read more about locked posts here.

  • Which MediaWiki skin are you using? – jehovahsays Jun 25 at 12:44
  • Do you want a MediaWiki extension to add HTML or do you want to edit your own MediaWiki Vector skin to add HTML? – jehovahsays Jun 25 at 16:14
  • Sorry, I don't understand this comment. – JohnDoea Jun 26 at 6:01
  • Questions specific only to third-party software which are not related to the general webmaster topics covered on this site are best asked directly on forums dedicated to that software. – dan Jun 26 at 6:23
0
  1. Go to folder Skins/Vector
  2. Search for file VectorTemplate.php.
  3. Open file with your preferred text editor.
  4. Run a search for:
    // Output HTML Page
    $this-> ( 'headelement' );

And edit.

locked by dan Jun 26 at 8:54

This post has been locked due to the high amount of off-topic comments generated. A link to a chat room will be posted in the comments below if the conversation was moved to chat.

Read more about locked posts here.

  • Please detail on what is being done here, is it safe for all article web pages --- what problems can arise... – JohnDoea Jun 25 at 19:47
  • In the comment's section above I already asked them what they needed to complete the HTML edit for this question. – jehovahsays Jun 26 at 1:47
  • Did you have any problems when you used this answer? – jehovahsays Jun 26 at 1:49
  • I didn't do anything with the answer because I don't understand what is suggested to be done with the code piece you mentioned... – JohnDoea Jun 26 at 6:00
  • I don't want any HTML to be created besides the HTML tag I already use (<code> in that case). – JohnDoea Jun 26 at 6:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.