官术网_书友最值得收藏!

Preview Page

The "Preview" page acts as an interpretation of what the page you are currently editing would look like if you were to save it. The preview is placed above the edit interface so that you can make changes to the article after previewing it.

As the styling has done most of the work for us, there are only two elements of the preview page that still need to be covered. They are: previewnote, a reminder that any changes made to the page have not been saved, and #wikiPreview, the containing div for the preview.

Knowing how forgetful people can be, we can style this section to be more distinguished than it is in MonoBook, with a deep red border with a width of 2 pixels. We will also set the message that reminds us that we are only viewing the preview a little larger than other text.

#wikiPreview {
border: 2px #8D1425 solid !important;
padding: 0;
}
.previewnote {
color: #8D1425;
font-size: 150%;
}

The preview page will now appear a bit different from the normal page view, which will hopefully prevent any cases of edits being lost because the visitors thought they had submitted their edits rather than just previewed them.

Preview Page

Note

The edit page's template includes #wikiPreview by default, so any ambitious styling may affect the appearance of your edit page and preview page.

Show Differences

If you select the "Show Changes" option from the edit interface, you will see two columns: one that contains the last version of the page's content, and one that shows the version of the content (which has not yet been saved).

When displayed in the JazzMeet skin, the "show changes" view is displayed in two table columns alongside each other. Areas of changed content are highlighted in yellow cells in the left-hand column. Content that has been added is highlighted red, with the relevant portion of content being highlighted with a green background.

Show Differences

.diff-otitle is used to identify the table cell that contains the heading for the current version of the page, as saved in the wiki's database. Similarly, .diff-ntitle identifies the table cell that contains the heading for the version of the page's content in the edit box. To highlight these cells, we will make them bold, and change their colors.

.diff-otitle, .diff-ntitle {
background: #BEB798 !important;
color: #FFFFFF;
font-weight: bold;
}

The cells (<td>) that indicate the lines of the content's wiki markup are identified by .diff-lineno.

td.diff-lineno {
color: #BEB798;
}

.diff-context classifies the cells containing the content that surrounds the changed areas in them. .diff-marker identifies cells that give hints to the visitor about the content, including the cells containing a "+" or "-" to indicate whether content has been added or removed from that area. The cells containing line numbers (.diff-lineno) can also be styled by applying CSS. Because these cells are not as important as the content being changed in this table, we will give them a beige background.

.diff-context, .diff-marker {
background: #D9D5C3 !important;
}

.diff-deletedline classifies the table cells that contain a line that is present in the current page, but is now being deleted by the user. .diff-addedline, originally, classifies the content that has been inserted compared to the current version.

Lastly, .diffchange identifies the area of the text that has been added to the current version. It looks fine in its default red, but we will style it to become our 'JazzMeet' beige instead.

.diffchange {
color: #BEB798 !important;
}

Although these changes have only styled a small portion of the wiki, they will help to integrate the skin fully across the wiki. If the elements are not styled as consistently as they were in MonoBook, we will have a very poor skin.

Show Differences
主站蜘蛛池模板: 宁津县| 苗栗县| 桃源县| 荣昌县| 通山县| 吴堡县| 莱阳市| 达孜县| 宁安市| 合山市| 额济纳旗| 铜梁县| 东光县| 射洪县| 永胜县| 合肥市| 长顺县| 尚义县| 常山县| 洛南县| 西盟| 龙泉市| 宜兴市| 富阳市| 深圳市| 宾阳县| 宜川县| 岳阳县| 尉氏县| 修武县| 利辛县| 保德县| 故城县| 娱乐| 特克斯县| 玉田县| 加查县| 化州市| 阳泉市| 丹棱县| 法库县|