About
This page is an outline of custom formatting features implemented for use in the Morrowind Modding Wiki. To use these in Obsidian, enable all MMW_
CSS snippets in Obsidian’s ‘Appearance’ settings so they render correctly in Obsidian.
Formatting
Image Adjustments
Image adjustments from SIRvb’s Image Adjustments CSS snippet are incorporated into MMW. Some examples of how it can be used include:
- resizing images
- displaying images as a banner across the page or across a callout
- image-warp (using the CSS ‘float’ property), allowing text and other content to wrap around an image.
Keyboard-Styled Text
Text can be styled like the keys of a keyboard by wrapping text within <kbd> </kbd>
HTML tags. For example, <kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>del</kbd>
gets rendered as ctrl + alt + del.
These should be used for any instance where programs’ default hotkeys (ones which are not customizable, or are the default keybinding) are mentioned.
Closing HTML tags
<kbd>
is an HTML tag. It is used to surround an ‘element’ (in this case, a piece of text). As it is not self-closing, the second tag in a pair of tags needs aforward slash
(/) to ‘close’ it.Example: <kbd> </kbd>.
Callout Adjustments
MMW borrows a large number of Callout Adjustments from SIRvb’s ‘ITS Theme’ for Obsidian. These add much-needed flexibility for styling and positioning callouts.
Syntax:
Callout Titles
Abbr. | Full Title | Description |
---|---|---|
no-t | no-title | Hides callout title |
s-t | show-title | Show callout title |
ttl-c | title-center | Center callout title text |
no-i | no-icon | Hide callout icon |
subt | subtitle | Style words in italic (* * , _ _ ) as subtitles |
Callout Text
Abbr. | Full Title | Description |
---|---|---|
txt-c | text-center | Center callout text |
txt-r | txt-right | Right align callout text |
txt-l | txt-left | Left align callout text |
txt-s | text-small | Shrink callout text size |
Callout Styling
Abbr. | Full Title | Description |
---|---|---|
embed | Remove callout padding to expand embed | |
clean | Remove callout styling | |
collapse | Remove all padding and margins for ultra compact look | |
nbrd | no-border | Borderless callout |
clear | Move any other floating elements near to under this callout | |
n-th | no-table-header | Hides table header in callouts |
Callout Content Padding
Attribute | Abbr | Callout Padding Sizing |
---|---|---|
content-padding-small | c-p-sm | 6px |
content-padding-medium | c-p-med | 12px |
content-padding-large | c-p-lg | 24px |
Callout Positioning
Attribute | Description |
---|---|
left | Float callout to the left |
right | Float callout to the right |
center | Center the callout |
fixed | Maintains a callout’s float position on mobile |
Callout Sizing
Callouts can be resized using the keywords below (sizing is the same as SIRvb’s Image Adjustments)
The sizing is a percentage, relative to the callout’s parent. Using |wmed
as an example:
- if placed directly in the page body, it would take up 60% page-width.
- if nested within another callout, it would only take up 60% of the ‘parent’ callout’s width.
Sizing can be made to use pixels instead of percentage by adding |static
.
Attributes | Callout Width % | Callout Width px |
---|---|---|
wmicro | 10% | 50px |
wtiny | 20% | 100px |
wsmall | 30% | 200px |
ws-med | 40% | 300px |
wm-sm | 50% | 400px |
wmed | 60% | 500px |
wm-tl | 80% | 600px |
wtall | 95% | 700px |
wfull | 100% | |
wfit | Auto | Auto |
Custom Callouts
In addition to the default Obsidian Callouts, MMW also adds the following custom Callouts:
Column Callout
The [!column]
callout lets you display content as a grid.
The callout itself is invisible but its contents get displayed as a grid, with each new line of the callout represents a new grid column. It works best when nesting other callouts within it. However, if you wish to write content in columns without callout styling for the nested callouts, you can add the Callout Adjustments metadata clean no-title
to them.
By adding the flex
metadata, grid columns will stack vertically on mobile.
Column
Use Nested Callouts
[column]
is designed to have callouts nested within it.To remove styling from nested callouts, add
clean no-title
to the metadataNOTE
This callout has
clean no-title
metadata.Caption
A caption callout nested in the grid.
Captions
Caption
[!caption|right]
callout
A borderless callout for adding captions to images.
Use Callout Positioning metadata to float these left or right for wiki-style article image captions
Infobox
A wiki-style infobox displayed in the top right of an article to summarize data from the article, such as requirements for a tutorial article.
Infobox
Infobox
Table
Type Name Row Row Row Row
Type:
[!infobox]
Syntax:
> [!infobox]
>
>
> ## Article Title
>
> ![[image]]
>
> ### Table Heading
>
> | Type | Name |
> | --- | --- |
> | Row | Row |
> | Row | Row |
Embed Adjustments
Adjustments for Obsidian embedded files, otherwise known as ‘transclusions’
Attribute | Description |
---|---|
clean | Removes border to hide embed style |
left | Float |
right | Floats embed to the right |
Hide Embed Styling
You can hide the borders of embedded notes and blocks by adding ‘|clean]]
’ to the wikilink’s alias.
This allows the embed to appear seamlessly as a part of the page it is embedded in.
Column
This is a standard transclusion:
You can hide the borders of embedded notes and blocks by adding ‘
Link to original|clean]]
’ to the wikilink’s alias.
This is a 'clean' transclusion:
You can hide the borders of embedded notes and blocks by adding ‘
Link to original|clean]]
’ to the wikilink’s alias.
Embedding block links which float left or right
You must add a
left
orright
attribute to embeds if the embedded content itself already floats left or right.Example:
- The infobox callout already floats right. To embed it in another page, add
|right
to the embed wikilink’s alias.This prevents the embed from taking up 100% of the page-width, instead of wrapping around other content
Float Embed Left or Right
Embeds can be made to float to the left or right of a page by adding |left
or |right
to the embed wikilink’s alias.
As well as being a stylistic choice to move supplementary content outside of the main flow of the text, it is also necessary when embedding a block which contains an element with a float property already stipulated (e.g., an infobox callout).
Daedric Font
Daedric style font can be added by wrapping text in HTML <span>
tags, courtesy of George Duffner’s OMW Ayembedt font (license: SIL Open Font License.
Syntax:
Example
Regular Text: “Morrowind”
Daedric Text: ""Morrowind""