Wikitext cheat sheet: Difference between revisions
Jump to navigation
Jump to search
Created page with "= Wikitext Cheat Sheet = == Text Formatting == * ''Italic'' → 2 apostrophes: <code>''Italic''</code> * '''Bold''' → 3 apostrophes: <code>'''Bold'''</code> * '''''Bold Italic''''' → 5 apostrophes: <code>'''''Bold Italic'''''</code> * <nowiki><nowiki>Text</nowiki></nowiki> → Renders raw wikitext * <code><nowiki>Code</nowiki></code> → For inline code (use <nowiki><syntaxhighlight></nowiki> for blocks) == Headings == Use equal signs (=) around text: <pre> = Headi..." |
No edit summary |
||
Line 1: | Line 1: | ||
= Wikitext Cheat Sheet = | = Wikitext Cheat Sheet = | ||
== Introduction == | |||
This cheat sheet summarizes standard wiki markup used on RetroWikipedia. Articles should follow clear structure, neutral tone, and consistent style. For citations, use reliable secondary sources when applicable. | |||
== Text Formatting == | == Text Formatting == | ||
* | * Italic: <code>''italic''</code> | ||
* | * Bold (first mention only): <code>'''bold'''</code> | ||
* | * Bold italic (rare): <code>'''''bold italic'''''</code> | ||
* < | * Code or literals: <code><code>example</code></code> | ||
* <code><nowiki> | * Escape wikitext: <code><nowiki>[[Not a link]]</nowiki></code> | ||
== Headings == | == Headings == | ||
Use | Use sentence case for section titles. Don’t skip heading levels. | ||
<pre> | <pre> | ||
= | = Page title = ← not shown in body, handled by the software | ||
== | == Overview == | ||
=== | === Subsection === | ||
==== Deeper subsection ==== | |||
</pre> | </pre> | ||
== Links == | == Links == | ||
* Internal | * Internal: <code>[[RetroComputing]]</code> | ||
* Custom | * Custom label: <code>[[RetroComputing|retro tech]]</code> | ||
* Section link: <code>[[ | * Section link: <code>[[Apple II#Expansion cards]]</code> | ||
* External | * External: <code>[https://example.com Example]</code> | ||
* | * Avoid overlinking the same term more than once per section. | ||
== | == Lists == | ||
* | * Bulleted: <code>* Item</code> | ||
* | * Numbered: <code># Step</code> | ||
* | * Nested: | ||
<pre> | <pre> | ||
* Item | |||
** Sub-item | |||
# Step | |||
## Sub-step | |||
</pre> | </pre> | ||
== Block Elements == | == Block Elements == | ||
* Indent: <code>:</code> for discussion/talk pages only | |||
* Horizontal rule: <code>----</code> | * Horizontal rule: <code>----</code> | ||
* Definition list: | * Definition list: | ||
<pre> | <pre> | ||
Line 58: | Line 48: | ||
</pre> | </pre> | ||
== Code Highlighting == | == Templates == | ||
Use | * Call template: <code>{{Infobox computer}}</code> | ||
* With parameters: <code>{{Infobox computer | name = Apple II }}</code> | |||
* Place templates above the lead (e.g., hatnotes, infoboxes) | |||
== Categories == | |||
* At the bottom of the page: | |||
<code>[[Category:Vintage Computing]]</code> | |||
* One category per line. Use the most specific appropriate category. | |||
== Code and Syntax Highlighting == | |||
Use only for technical material (e.g., BASIC, assembly): | |||
<pre> | <pre> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="basic"> | ||
10 PRINT "HELLO WORLD" | |||
20 GOTO 10 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</pre> | </pre> | ||
== Tables == | |||
Use only when data is better presented in rows/columns: | |||
<pre> | |||
{| class="wikitable" | |||
! Model !! Release Year | |||
|- | |||
| Commodore 64 || 1982 | |||
|- | |||
| Amiga 500 || 1987 | |||
|} | |||
</pre> | |||
== Images and Media == | |||
<pre> | |||
[[File:Example.jpg|thumb|Alt text for accessibility|Caption]] | |||
</pre> | |||
* Always include alt text or descriptive captions. | |||
* Default image alignment is right (`thumb` implies it). | |||
* Do not overload pages with decorative images. | |||
== Magic Words == | == Magic Words == | ||
* Hide | * Hide TOC: <code>__NOTOC__</code> | ||
* Force TOC: <code>__FORCETOC__</code> | * Force TOC: <code>__FORCETOC__</code> | ||
* | * Page name: <code>{{PAGENAME}}</code> | ||
== | == Best Practices == | ||
* Use proper punctuation and grammar. | |||
< | * Write in neutral, encyclopedic tone. | ||
* Avoid first-person or promotional language. | |||
== | * Structure articles consistently: | ||
<pre> | |||
== Overview == | |||
== | == History == | ||
== Features == | |||
== Reception == | |||
* Use the Preview button before saving | == References == | ||
== External links == | |||
</pre> | |||
* Use the Preview button before saving. | |||
---- | ---- | ||
''This | ''This guide helps contributors follow consistent style and formatting on RetroWikipedia. For help, see the community portal or editing guidelines.'' |
Revision as of 16:23, 3 August 2025
Wikitext Cheat Sheet
Introduction
This cheat sheet summarizes standard wiki markup used on RetroWikipedia. Articles should follow clear structure, neutral tone, and consistent style. For citations, use reliable secondary sources when applicable.
Text Formatting
- Italic:
italic
- Bold (first mention only):
bold
- Bold italic (rare):
bold italic
- Code or literals:
example
- Escape wikitext:
[[Not a link]]
Headings
Use sentence case for section titles. Don’t skip heading levels.
= Page title = ← not shown in body, handled by the software == Overview == === Subsection === ==== Deeper subsection ====
Links
- Internal:
RetroComputing
- Custom label:
retro tech
- Section link:
Apple II#Expansion cards
- External:
Example
- Avoid overlinking the same term more than once per section.
Lists
- Bulleted:
* Item
- Numbered:
# Step
- Nested:
* Item ** Sub-item # Step ## Sub-step
Block Elements
- Indent:
:
for discussion/talk pages only - Horizontal rule:
----
- Definition list:
; Term : Definition
Templates
- Call template:
Wikitext cheat sheet - With parameters:
Apple II - Place templates above the lead (e.g., hatnotes, infoboxes)
Categories
- At the bottom of the page:
- One category per line. Use the most specific appropriate category.
Code and Syntax Highlighting
Use only for technical material (e.g., BASIC, assembly):
<syntaxhighlight lang="basic"> 10 PRINT "HELLO WORLD" 20 GOTO 10 </syntaxhighlight>
Tables
Use only when data is better presented in rows/columns:
{| class="wikitable" ! Model !! Release Year |- | Commodore 64 || 1982 |- | Amiga 500 || 1987 |}
Images and Media
[[File:Example.jpg|thumb|Alt text for accessibility|Caption]]
- Always include alt text or descriptive captions.
- Default image alignment is right (`thumb` implies it).
- Do not overload pages with decorative images.
Magic Words
- Hide TOC:
- Force TOC:
- Page name:
Wikitext cheat sheet
Best Practices
- Use proper punctuation and grammar.
- Write in neutral, encyclopedic tone.
- Avoid first-person or promotional language.
- Structure articles consistently:
== Overview == == History == == Features == == Reception == == References == == External links ==
- Use the Preview button before saving.
This guide helps contributors follow consistent style and formatting on RetroWikipedia. For help, see the community portal or editing guidelines.