Jump to content

MediaWiki:Edittools

From International Treaty Law Wiki
Revision as of 08:48, 17 January 2026 by DrInternationalLaw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)

πŸ“˜ Wikitext Toolbox – Click to expand
This toolbox provides quick access to the most common and advanced MediaWiki formatting commands used on Wikipedia.


Basic Formatting
β€’ ''italic'' – italic text
β€’ '''bold''' – bold text
β€’ '''''bold italic''''' – bold + italic
β€’ == Heading == – section heading
β€’ === Subheading === – smaller heading
β€’ * – bullet list
β€’ # – numbered list
β€’ ; – definition term
β€’ : – indent text


Links
β€’ [[Page name]] – internal link
β€’ [[Page name|Label]] – custom label
β€’ [https://example.com Label] – external link
β€’ [[Category:Name]] – add to category
β€’ [[File:Example.png]] – embed file
β€’ [[Media:File.ext]] – link to file download


Templates
β€’ {{Template}} – insert template
β€’ {{Template|param=value}} – with parameter
β€’ {{Infobox}} – infobox
β€’ {{Quote|text=}} – quote box
β€’ {{Navbox}} – navigation box
β€’ {{Citation needed}} – citation tag


Tables
{| class="wikitable" – start table
|- – new row
! Header – header cell
| Cell – normal cell
|} – end table
style="width:100%;" – table styling


Images
β€’ [[File:Example.jpg|thumb|Caption]] – thumbnail
β€’ [[File:Example.jpg|right|200px]] – aligned image
β€’ [[File:Example.jpg|frameless|upright]] – portrait image


Special Syntax
β€’ {{ }} – template braces
β€’ <noinclude></noinclude> – exclude from transclusion
β€’ <includeonly></includeonly> – include only when transcluded
β€’ #REDIRECT [[Target]] – redirect page
β€’ {{DEFAULTSORT:Name}} – category sorting key
β€’ __NOTOC__ – hide table of contents
β€’ __NOINDEX__ – prevent indexing
β€’ __HIDDENCAT__ – hide category
β€’ <nowiki></nowiki> – show raw code


Code & Preformatted
β€’ <code>inline code</code> – inline code
β€’ <pre>preformatted text</pre> – block code
β€’ <syntaxhighlight lang="php"></syntaxhighlight> – syntax highlighting


Math (LaTeX)
β€’ <math>x^2 + y^2 = z^2</math>
β€’ <math>\frac{a}{b}</math>
β€’ <math>\sqrt{x}</math>
β€’ <math>\sum_{i=1}^n i</math>


Block Elements
β€’ <blockquote>Quote</blockquote> – block quote
β€’ <gallery></gallery> – image gallery
β€’ <ref></ref> – reference
β€’ <references/> – reference list


Useful Symbols
– β€” Β· β€œβ€ β€˜β€™ «» β€Ήβ€Ί … ~ | Β° β‰ˆ β‰  ≀ β‰₯ Β± βˆ’ Γ— Γ· ← β†’ Β² Β³ Β½ Β§