Jump to content

Help:Formatting

From RetroTechCollection

This page provides advanced formatting techniques to help you create clean, professional-looking pages using MediaWiki markup.

🧱 Section Headers

[edit source]

Use equals signs (`=`) to create section headers. The number of `=` symbols sets the heading level:

= Level 1 =
== Level 2 ==
=== Level 3 ===
==== Level 4 ====

πŸ”  Bold, Italics and Monospace

[edit source]
  • Bold text: '''bold''' β†’ bold
  • Italic text: ''italic'' β†’ italic
  • Bold and Italic: '''''bold italic''''' β†’ bold italic
  • Monospace: Use <code></code> or <pre></pre>
[edit source]
  • Internal: [[Page Name]] β†’ Page Name
  • Display different text: [[Page Name|Click Here]] β†’ Click Here
  • External: [https://example.com Example] β†’ Example

πŸ“‹ Lists

[edit source]

Unordered List

[edit source]

Use asterisks:

* Item 1
* Item 2
** Subitem

Ordered List

[edit source]

Use hashes:

# First
# Second
## Substep

Definition List

[edit source]
; Term
: Definition

πŸ“ Tables

[edit source]

Basic table:

{| class="wikitable"
|-
! Header 1 !! Header 2
|-
| Row 1, Cell 1 || Row 1, Cell 2
|-
| Row 2, Cell 1 || Row 2, Cell 2
|}

Tips:

  • Use style= for custom widths, colors, or alignment
  • Use colspan= and rowspan= for complex layouts

🎨 Coloring and Styling

[edit source]

You can use inline styles:

<span style="color: red;">Red Text</span>
<div style="background-color:#f0f0f0; padding:10px;">Box</div>

For reusable styling across dark/light mode, use:

<templatestyles src="Template:YourTemplate/styles.css" />

πŸ“ Code Blocks and Escaping Wikitext

[edit source]

Use <nowiki></nowiki> to prevent wiki syntax from rendering:

[[Page Name]]

For multiline code:

<pre>
Line 1
Line 2

⏹️ Horizontal Line

[edit source]

---- creates a horizontal rule:


πŸ“‚ Categories

[edit source]

Add pages to categories using:

[[Category:Category Name]]

🧩 Templates

[edit source]

To include a template:

{{TemplateName}}

With parameters:

{{TemplateName | param1 = value | param2 = value }}

πŸ”Ž Useful Pages

[edit source]