About

Guidelines for formatting Markdown text for the Morrowind Modding Wiki


Infobox

Link to original

Code

See Obsidian ‘Basic Editing Syntax’

Inline Code

In addition to denoting code, `Inline code` can be used in the following ways:

  • Directory paths, e.g., C:\Games\OpenMWMods
  • what else?

Inline code should not be used to denote keyboard buttons, e.g., ctrl. Instead, use <kbd> HTML tags like so: <kbd>ctrl</kbd>, which is rendered as ctrl

Code Blocks

Code blocks support syntax highlighting by defining code language after the first three backticks, e.g.,

```lua

```

Supported Languagss

Obsidian and Quartz support most coding languages for syntax highlighting.

MMW does not yet support MWScript syntax highlighting for Obsidian and Quartz.

Quartz-Specific Features

Quartz uses Shiki for Syntax Highlighting, which offers many features for styling of both codeblocks and Inline code that are not present in base Obsidan.

These include:

  • titles
  • line highlighting and word highlighting
  • line numbers

As these features are not part of Obsidian, they will not be rendered there. However, The community plugin Shiki Highlighter can be used to enable rendering of these.


Emphasis

Adding emphasis to certain words or phrases helps to draw readers’ attention to important details.

Emphasis can be added with either bold or italicized text. However, it should be used sparingly, as each emphasis added will lessen the effect of other emphases and detract from the appearance of the article.

Emphasis can also be added by the use of Callouts - see Callouts

  • Bold can be used to add emphasis only when it is intended as a crucial warning in the body text. However, warnings should generally be emphasized by adding a > [!warning] or > [!danger] callout instead.

Bold

  • Use **double Asterisks** instead of __double underscores__ to define bold words/characters. This makes it easier to differentiate them from _italic_ words/characters at a glance when editing
  • Bold the article name the first time it appears in the page’s introductory sentence. Any alternative names in the introductory sentence should also be bolded. (e.g. “Mlox is a tool for sorting plugin load order.“)
  • Bold the word or phrase being defined in bulleted or numeric lists.
  • Do not use bold for general emphasis; use italics instead.

Italics

  • Use _underscores_ instead of *asterisks* to define italics. This makes it easier to differentiate them from **bold** words/characters at a glance when editing.
  • Italics should be used for the titles of books, games and non-MMW Morrowind modding guides (such as Notes for Modmakers) This includes the titles of Elder Scrolls games and expansion packs, even when only the subtitle (e.g. OblivionSkyrimOnline) is written. The name of the series, The Elder Scrolls, should be italicized as well (even when shortened to just Elder Scrolls). Initialisms, most notably ESO, are not italicized.
  • Italics can be used for general emphasis, but should be used sparingly.

Info

By default, Obsidian uses *asterisks* to denote italics when using the Toggle italic hotkey1. Instead, use shift+_, which automatically wraps a word in _underscores_


Headers

Headers structure content to help readers navigate your article.

Headers

## This is a main subject (h2)

### This subject has several important sub-subjects (h3)

#### Sub-subjects can benefit from subheadings (h4)

##### Example (h5)
codeblock title
example code block

Header 1 (H1) should never be used, as a webpage should only ever contain one H1 element - in Quartz, the article filename is the H1 element (i.e., Formatting Guidelines)

MarkdownHTML Header Tag EquivalentUse
#<h1>Unused, as Quartz uses the filename as h1
##<h2>Main section divider
### - ####<h3> - <h4>For use in article subsections
##### - ######<h5> - <h6>(use-case undetermined yet)

Header numbers should be arranged sequentially.

  • This improves readability by providing a logical structure
  • Improves website SEO by making it easier for search engines to index the website’s content

Line-Wrapping

Do not ‘hard-wrap’ lines. This is unneeded in Obsidian which renders line-wrapping automatically according to window size, as does Quartz.

‘Hard-wrapping’ is intentionally adding a line-break after a certain amount of characters, e.g., after 80 characters.


Links are important for navigating content in the wiki.

Wikilinks are used for linking between different pages in the wiki, as well as for embedding content such as images.

Internal Links

An ‘internal link’ is a link from one page in MMW to another page in MMW.

These should be rendered using [[Wikilink]] format as detailed on Internal Links - Obsidian Help

External Links

Use Markdown to link to another site:

[insert link display text](https://websiteurl.com)

This can be summarised with three principles:

  • Visual clarity: Avoid cluttering links
  • Relevance: Ensure links are relevant to the content of the article
  • First-come, first-served: Only the first mentioned instance should contain a link

Visual Clarity

Creating too many links can distract the reader and make the article hard to read; some readers are likely to pause on each link to determine whether the link is of interest.

Be sure that any link you add will help readers and be used by readers.

Relevancy

Ensure links to other pages are relevant to the article at hand.

From UESP:

It makes little sense to link to an article about Orcs whenever you mention Orcish Armor. If anything, you’d want to link to a page describing the armor, not Orcs in general.
UESP: Style Guide

First-Come, First-Served

In each article, only the first mentioned instance of a link-worthy topic should contain the link. Additional mentions in the same article should not contain a link.

This helps to prevent cluttering links and breaking the flow of an article.


Lists

Lists are particularly useful for guides and tutorials, which make up the majority of content on the wiki. Unnumbered lists or ‘bullet points’ help to organize and emphasize information quickly and effectively, while ordered lists (i.e., numbered lists) are useful for useful for step-by-step sections of tutorials.

Unnumbered Lists

Use hyphens - for defining unnumbered lists and sub-lists, instead of asterisks *. This is to differentiate unnumbered lists from **bold** words/characters.

Ordered Lists

Obsidian and Quartz support ordered lists styled with Arabic numerals (1, 2, 3).

  1. Use 1. Rather than 1) to denote an ordered list.
  2. Obsidian and Quartz do not support ordered lists styled with letters or Roman numerals.

Page Breaks

Use --- to define a page break.

Page breaks should only be added at the end of an ## H2 heading section, not after ### H3 or more subheading sections.


Quotes

To-do:

  • “double quotes” vs ‘single quotes’
  • Escaping [square] brackets to avoid confusion with Markdown links

Tables

Tables are easy to read; please use these whenever possible for listing data such as script functions (e.g., MWSE-Lua), modding tool commands (e.g., Tes3cmd commands), or in-game statistics.

Tip: Use 'Live Preview' Mode for Editing Tables

‘Live Preview’ mode in Obsidian simplifies editing tables with a number of features:

  • Add/delete column or row
  • Move row up/down, or column left/right
  • shift+enter automatically adds a <br> HTML tag to add a new line within a single table cell.

Additionally, editing tables in Live-Preview will proportionally space apart vertical bars (|) and hyphens (-) in the plaintext Markdown, improving readability in Source Mode or when viewing the Markdown in Github.

Footnotes

  1. Default hotkey to toggle italics is shift+i