Skip to content

Commit 0050741

Browse files
Update 'Custom Formatting Features' doc
- Add section for <kbd> tags - Add example callouts to Caption and Infobox callouts
1 parent 4640659 commit 0050741

File tree

2 files changed

+59
-8
lines changed

2 files changed

+59
-8
lines changed
Loading

content/MMW Design & Planning/Custom Formatting Features.md

+59-8
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,36 @@ tags:
33
- MMW-Development
44
description: Custom formatting features implemented for use in the Morrowind Modding Wiki
55
---
6-
Custom formatting features implemented for use in the Morrowind Modding Wiki
6+
## About
77

8-
## Formatting
9-
### [SIRvb's Image Adjustments](https://publish.obsidian.md/slrvb-docs/ITS+Theme/Image+Adjustments)
8+
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.
9+
10+
### Formatting
11+
12+
#### [SIRvb's Image Adjustments](https://publish.obsidian.md/slrvb-docs/ITS+Theme/Image+Adjustments)
1013

1114
Image adjustments from SIRvb's Image Adjustments CSS snippet are incorporated into MMW. Some examples of how it can be used include:
1215
- resizing images
1316
- displaying images as a banner across the page or across a callout
1417
- image-warp (using the CSS 'float' property), allowing text and other content to wrap around an image.
1518

16-
## Custom Callouts
19+
#### Keyboard-Styled Text
20+
21+
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 <kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>del</kbd>.
22+
23+
These should be used for any instance where programs' default hotkeys (ones which are not customizable, or are the default keybinding) are mentioned.
24+
25+
> [!tip]- Closing HTML tags
26+
>
27+
> `<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 closing tags needs a `forward slash` (<kbd>/</kbd>), for example: \<kbd\> \</kbd\>.
28+
29+
---
30+
31+
### Custom Callouts
1732

1833
In addition to the default [Obsidian Callouts](https://help.obsidian.md/Editing+and+formatting/Callouts), MMW also adds the following custom Callouts:
1934

20-
### Callout Grid
35+
#### Callout Grid
2136

2237
This pair of left and right callouts can be inserted to create a two-column grid of callouts. To add more rows to the grid, simply add more pairs of callouts.
2338

@@ -28,7 +43,13 @@ This pair of left and right callouts can be inserted to create a two-column grid
2843
Other callouts can be nested inside these.
2944

3045

31-
### Captions
46+
#### Captions
47+
48+
> [!caption_right]
49+
>
50+
> ![[PuzzleBoxOnly.png|wsmall]]
51+
>
52+
> `[!caption_right]` callout
3253
3354
Three callouts for adding captions to images. The callout title is hidden and text size reduced, similar to how Wikipedia and other wikis format their article image captions.
3455

@@ -37,9 +58,39 @@ Three callouts for adding captions to images. The callout title is hidden and te
3758
- `[!caption_right]` - floats to the right of the page
3859
- `[!caption]` - centered in the middle of the page
3960

40-
### Infobox
61+
#### Infobox
4162

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

65+
> [!infobox]
66+
>
67+
> ## Infobox
68+
>
69+
> ![[PuzzleBoxOnly.png]]
70+
>
71+
> ### Table
72+
>
73+
> | Type | Name |
74+
> | --- | --- |
75+
> | Row | Row |
76+
> | Row | Row |
77+
4478
**Type:**
45-
- `[!infobox]`
79+
- `[!infobox]`
80+
81+
**Syntax:**
82+
83+
```
84+
> [!infobox]
85+
>
86+
> ## Article Title
87+
>
88+
> ![[image]]
89+
>
90+
> ### Table Heading
91+
>
92+
> | Type | Name |
93+
> | --- | --- |
94+
> | Row | Row |
95+
> | Row | Row |
96+
```

0 commit comments

Comments
 (0)