Markup format: Difference between revisions

From Tintu Wiki
Created page with "Here’s the same guide formatted in MediaWiki markup for use as a Wikipedia-style post: --- = MediaWiki Markup Guide = Here’s a quick guide to the major MediaWiki markup syntax, broken down into easy-to-understand sections: == 1. Headings == * Use equal signs (`=`) around text to create headings. More equal signs create smaller subheadings: * `= Heading 1 =` * `== Heading 2 ==` * `=== Heading 3 ===` == 2. Bold and Italic Text == * Use multiple single quotes..."
 
No edit summary
 
Line 1: Line 1:
Here’s the same guide formatted in MediaWiki markup for use as a Wikipedia-style post:
Here’s the same guide formatted in MediaWiki markup for use as a Wikipedia-style post:
 
----
---


= MediaWiki Markup Guide =
= MediaWiki Markup Guide =

Latest revision as of 11:32, 29 October 2024

Here’s the same guide formatted in MediaWiki markup for use as a Wikipedia-style post:


MediaWiki Markup Guide[edit]

Here’s a quick guide to the major MediaWiki markup syntax, broken down into easy-to-understand sections:

1. Headings[edit]

  • Use equal signs (`=`) around text to create headings. More equal signs create smaller subheadings:
 * `= Heading 1 =`
 * `== Heading 2 ==`
 * `=== Heading 3 ===`

2. Bold and Italic Text[edit]

  • Use multiple single quotes for bold and italic:
 * `italic` → italic
 * `bold` → bold
 * `bold and italic` → bold and italic

3. Links[edit]

  • **Internal links:** Link to other pages within the wiki using double square brackets.
 * `PageName` → links to a page called "PageName"
 * `Displayed Text` → custom display text for a link
  • **External links:** Direct link to external websites.
 * `[1]` → shows the URL as the link
 * `Displayed Text` → custom text for the link

4. Lists[edit]

  • **Bullet lists:** Use an asterisk `*` at the beginning of a line.
 
  * Item 1
  * Item 2
  
  • **Numbered lists:** Use a hash `#` at the beginning of a line.
 
  # First item
  # Second item
  
  • **Indented lists:** Add colons `:` for indentation.
 
  : Indented text
  

5. Tables[edit]

Syntax Example
`!` Header
` Data cell
` ` Separate cells

6. Images and Media[edit]

  • Insert images using `options`
  • Example with options: `
    File:Example.jpg
    A caption
    ` → creates a thumbnail with a caption.

7. Categories[edit]

  • Add pages to categories using `` at the bottom of the page.
 * Example: ``

8. Redirects[edit]

  • To redirect a page, use `#REDIRECT TargetPageName` on the first line of the page.

9. References and Footnotes[edit]

  • Cite sources by placing text within `<ref>...</ref>` tags.
  • Create a reference list at the end of the page with `<references />`.

10. Templates[edit]

  • Templates are reusable content blocks. Include them by wrapping the template name in double curly braces.
 * `Template:TemplateName` inserts the template's content.
 * You can pass parameters to templates: `Template:TemplateName`.

11. Comments[edit]

  • Add comments in the source code with ``. These won’t appear on the final page.

12. Variables[edit]

  • Special variables like `2026` display the current year, and `Markup format` shows the current page name.

---

This markup will display the guide in a Wikipedia-like style when posted on a MediaWiki page.