- MediaWiki Skins Design
- Richard Carter
- 623字
- 2021-05-28 17:39:10
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.

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.

.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.

- Blender 3D 2.49 Architecture, Buidlings, and Scenery
- Dreamweaver CC實例教程(第5版·微課版)
- Joomla! Social Networking with JomSocial
- Photoshop網店圖片處理實訓教程
- Photoshop CS6 圖像處理項目任務教程
- Building Websites with ExpressionEngine 1.6
- Plone 3 Intranets
- 陌上花開:古風CG插畫繪制技法精解(花卉篇)
- Puppet權威指南
- CAXA 實體設計2013案例課堂
- LaTeX入門與實戰應用
- Altium Designer 21實戰從入門到精通
- After Effects 影視后期特效:短視頻制作實戰寶典
- Creo快速入門教程(Creo 8.0中文版)
- 會聲會影X8 DV影片制作/編輯/刻盤實戰從入門到精通