Mediawiki boundary Processing

Source: Internet
Author: User
Tags mediawiki


On the Wiki, we found that the content page always occupies 100% of the width of the browser. A bad performance is that when you need to edit special fields, "edit" is always on the rightmost side of the browser, which is inconvenient to operate, in addition, the article content occupies a long width and is not easy to browse.

Therefore, there are two ways to change.

First, when editing a new page, manually write "<Div style =" n % "> content </div> ", then Replace "content" with the content you want to enter, and "n %" with the expected percentage.

The defect is that only one entry page can be changed at a time.


Second, modify the source code of the mediawiki page (only the super administrator can operate on it). First, check what skins mediawiki uses (see the skin for details ).
), Such as motobook, go to the 'site '/skins, find motobook. php, edit and open. Find the two rows

<div id="globalWrapper">
<div id="column-content">

, Enter

<div style="width:80%;" >

, The effect is

<div id="globalWrapper">

<div style="width:80%;" >


<div id="column-content">

; And then find

</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>

Before it, enter

</div>

, Save, complete.

Advantage: All pages are displayed in a certain percentage of page width.

Defect: when other special tags are referenced during editing, the content is not limited by the width, and only a line break is allowed for the content.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.