Jump to content

MediaWiki:Edittools: Difference between revisions

From International Treaty Law Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<div style="background:#f2f2f2; border:1px solid #ccc; padding:12px; margin-top:10px; font-size:14px;">
<div class="mw-collapsible mw-collapsed" style="background:#f2f2f2; border:1px solid #ccc; padding:12px; margin-top:10px; font-size:14px;">
<b>📘 Wikitext Toolbox – Click to expand</b><br>
<i>This toolbox provides quick access to the most common and advanced MediaWiki formatting commands used on Wikipedia.</i>


<details>
<div class="mw-collapsible-content" style="margin-top:10px; line-height:1.7;">
<summary style="font-weight:bold; cursor:pointer; font-size:15px;">
📘 Wikitext Toolbox – Click to Expand
</summary>
 
<div style="margin-top:10px; line-height:1.7;">
 
<i>This toolbox provides quick access to the most common and advanced MediaWiki formatting commands used on Wikipedia.</i>


<hr>
<hr>
Line 102: Line 97:


</div>
</div>
</details>
</div>
</div>

Latest revision as of 08:48, 17 January 2026

📘 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
– — · “” ‘’ «» ‹› … ~ | ° ≈ ≠ ≤ ≥ ± − × ÷ ← → ² ³ ½ §