MediaWiki:Edittools: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<div style="background:#f2f2f2; border:1px solid #ccc; padding: | <div style="background:#f2f2f2; border:1px solid #ccc; padding:12px; margin-top:10px; font-size:14px;"> | ||
<details> | <details> | ||
<summary style="font-weight:bold; cursor:pointer;"> | <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;"> | <div style="margin-top:10px; line-height:1.7;"> | ||
<b>Basic Formatting</b> | <i>This toolbox provides quick access to the most common and advanced MediaWiki formatting commands used on Wikipedia.</i> | ||
<hr> | |||
<b>Basic Formatting</b><br> | |||
• <code><nowiki>''italic''</nowiki></code> – italic text<br> | • <code><nowiki>''italic''</nowiki></code> – italic text<br> | ||
• <code><nowiki>'''bold'''</nowiki></code> – bold text<br> | • <code><nowiki>'''bold'''</nowiki></code> – bold text<br> | ||
| Line 19: | Line 25: | ||
<hr> | <hr> | ||
<b>Links</b> | <b>Links</b><br> | ||
• <code><nowiki>[[Page name]]</nowiki></code> – internal link<br> | • <code><nowiki>[[Page name]]</nowiki></code> – internal link<br> | ||
• <code><nowiki>[[Page name|Label]]</nowiki></code> – custom label<br> | • <code><nowiki>[[Page name|Label]]</nowiki></code> – custom label<br> | ||
| Line 29: | Line 35: | ||
<hr> | <hr> | ||
<b>Templates</b> | <b>Templates</b><br> | ||
• <code><nowiki>{{Template}}</nowiki></code> – insert template<br> | • <code><nowiki>{{Template}}</nowiki></code> – insert template<br> | ||
• <code><nowiki>{{Template|param=value}}</nowiki></code> – with parameter<br> | • <code><nowiki>{{Template|param=value}}</nowiki></code> – with parameter<br> | ||
• <code><nowiki>{{Infobox}}</nowiki></code> – infobox | • <code><nowiki>{{Infobox}}</nowiki></code> – infobox<br> | ||
• <code><nowiki>{{Quote|text=}}</nowiki></code> – quote box<br> | • <code><nowiki>{{Quote|text=}}</nowiki></code> – quote box<br> | ||
• <code><nowiki>{{Navbox}}</nowiki></code> – navigation box<br> | • <code><nowiki>{{Navbox}}</nowiki></code> – navigation box<br> | ||
| Line 39: | Line 45: | ||
<hr> | <hr> | ||
<b>Tables</b> | <b>Tables</b><br> | ||
<code><nowiki>{| class="wikitable"</nowiki></code> – start table<br> | <code><nowiki>{| class="wikitable"</nowiki></code> – start table<br> | ||
<code><nowiki>|-</nowiki></code> – new row<br> | <code><nowiki>|-</nowiki></code> – new row<br> | ||
| Line 49: | Line 55: | ||
<hr> | <hr> | ||
<b>Images</b> | <b>Images</b><br> | ||
• <code><nowiki>[[File:Example.jpg|thumb|Caption]]</nowiki></code> – thumbnail<br> | • <code><nowiki>[[File:Example.jpg|thumb|Caption]]</nowiki></code> – thumbnail<br> | ||
• <code><nowiki>[[File:Example.jpg|right|200px]]</nowiki></code> – aligned image<br> | • <code><nowiki>[[File:Example.jpg|right|200px]]</nowiki></code> – aligned image<br> | ||
| Line 56: | Line 62: | ||
<hr> | <hr> | ||
<b>Special Syntax</b> | <b>Special Syntax</b><br> | ||
• <code><nowiki>{{ }}</nowiki></code> – template braces<br> | • <code><nowiki>{{ }}</nowiki></code> – template braces<br> | ||
• <code><nowiki><noinclude></noinclude></nowiki></code> – exclude from transclusion<br> | • <code><nowiki><noinclude></noinclude></nowiki></code> – exclude from transclusion<br> | ||
| Line 69: | Line 75: | ||
<hr> | <hr> | ||
<b>Code & Preformatted</b> | <b>Code & Preformatted</b><br> | ||
• <code><nowiki><code>inline code</code></nowiki></code> – inline code<br> | • <code><nowiki><code>inline code</code></nowiki></code> – inline code<br> | ||
• <code><nowiki><pre>preformatted text</pre></nowiki></code> – block code<br> | • <code><nowiki><pre>preformatted text</pre></nowiki></code> – block code<br> | ||
| Line 76: | Line 82: | ||
<hr> | <hr> | ||
<b>Math (LaTeX)</b> | <b>Math (LaTeX)</b><br> | ||
• <code><nowiki><math>x^2 + y^2 = z^2</math></nowiki></code><br> | • <code><nowiki><math>x^2 + y^2 = z^2</math></nowiki></code><br> | ||
• <code><nowiki><math>\frac{a}{b}</math></nowiki></code><br> | • <code><nowiki><math>\frac{a}{b}</math></nowiki></code><br> | ||
| Line 84: | Line 90: | ||
<hr> | <hr> | ||
<b>Block Elements</b> | <b>Block Elements</b><br> | ||
• <code><nowiki><blockquote>Quote</blockquote></nowiki></code> – block quote<br> | • <code><nowiki><blockquote>Quote</blockquote></nowiki></code> – block quote<br> | ||
• <code><nowiki><gallery></gallery></nowiki></code> – image gallery<br> | • <code><nowiki><gallery></gallery></nowiki></code> – image gallery<br> | ||
| Line 92: | Line 98: | ||
<hr> | <hr> | ||
<b>Useful Symbols</b> | <b>Useful Symbols</b><br> | ||
<code><nowiki>– — · “” ‘’ «» ‹› … ~ | ° ≈ ≠ ≤ ≥ ± − × ÷ ← → ² ³ ½ §</nowiki></code> | <code><nowiki>– — · “” ‘’ «» ‹› … ~ | ° ≈ ≠ ≤ ≥ ± − × ÷ ← → ² ³ ½ §</nowiki></code> | ||
Revision as of 08:42, 17 January 2026
<details> <summary style="font-weight:bold; cursor:pointer; font-size:15px;"> 📘 Wikitext Toolbox – Click to Expand </summary>
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
– — · “” ‘’ «» ‹› … ~ | ° ≈ ≠ ≤ ≥ ± − × ÷ ← → ² ³ ½ §
</details>