Help:Magic words

From Quotes
When desire, having rejected reason and overpowered judgment which leads to right, is set in the direction of the pleasure which beauty can inspire, and when again under the influence of its kindred desires it is moved with violent motion towards the beauty of corporeal forms, it acquires a surname from this very violent motion, and is called love.
Socrates
Jump to: navigation, search

This is a copy of the master help page at m:Help:Magic words. Do not edit this page. Edits will be lost in the next update from the master page. Either edit the master help page for all projects at Meta, or edit the project-specific text at Template:Ph:Magic words. You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time.


Editing overview

Starting a new page

  1. Page name

Referencing

  1. Links
  2. Piped links
  3. Interwiki linking
  4. Variables
  5. URLs
  6. Anchors

Formatting

  1. Formulas
  2. Lists
  3. Tables
  4. HTML in wikitext
  5. Image & File uploads
  6. Image page

Organizing

  1. Sections
  2. Templates
  3. Categories
  4. Redirects
  5. Namespaces
  6. Renaming (moving) a page

Fixing mistakes and vandalism

  1. Reverting edits
  2. Testing

Saving effort

  1. Editing shortcuts
  2. Editing toolbar
  3. Magic words

Communicating

  1. Edit summary
  2. Talk page
  3. Edit conflict
  4. Minor edit

Special characters

  1. Turkish characters
  2. Romanian characters

Extensions

  1. WikiHiero syntax — warning: lots of images! (for Egyptian hieroglyphs)
  2. EasyTimeline syntax

Frequently Asked Questions


This is an index of Magic words used in MediaWiki.

#redirect

Indicates a redirect

__NOTOC__

Hides the table of contents.

__FORCETOC__

Always show the table of contents.

__TOC__

Place the table of contents here. See also compact TOC

__NOEDITSECTION__

Hide the edit links.

__START__

__START__ does nothing, and it is considered a magic word only because it has an ID in MagicWord.php (MAG_START).

CURRENTMONTH

A variable.

05

CURRENTMONTHNAME

A variable.

May

CURRENTDAY

A variable.

22

CURRENTDAYNAME

A variable.

Wednesday

CURRENTYEAR

A variable.

2019

CURRENTTIME

A variable.

03:26

NUMBEROFARTICLES

A variable.

16,310

CURRENTMONTHNAMEGEN

A variable.

May

PAGENAME

A variable.

Magic words

PAGENAMEE

A variable.

Magic_words

NAMESPACE

A variable.

Help

MSG:

A template modifier. I.e. {{msg:stub}} shows

{{Stub}}


The use of msg has an effect when a template name clashes with a magic word. For example, if [[Template:CURRENTMONTHNAME]] contained "Test", then {{CURRENTMONTHNAME}} would display "May" but {{msg:CURRENTMONTHNAME}} would display "Test".

SUBST:

A template modifier. Replaces the reference to the template (e.g. {{subst:template}}) with the content of the template.

This article is a stub. You can help Wikimedia by expanding it.

MSGNW:

A template modifier. Causes the template source to be pasted.

So <pre>{{msgnw:stub}}</pre> outputs:


{{msgnw:stub}}


__END__

Allows for trailing whitespace to be deliberately included in the page save.

thumbnail

An image modifier.

Mediawiki

right

An image modifier.

Mediawiki

left

An image modifier.

Mediawiki

none

An image modifier.

Mediawiki

$1px

An image modifier.

Mediawiki

center

An image modifier. Can also be spelled centre.

Mediawiki

framed

An image modifier. Can also be spelled enframed or frame.


Mediawiki

INT:

A special template. Used for UI messages.

mainpage:
Main Page

SITENAME

A variable.

Quotes

NS:

A special template. Gets the name of a given namespace number.

4:
Quotes

LOCALURL:

A special template. Gets the local URL of the given page.

{{localurl:Help:Magic words|section=0}}

results into

/w/index.php?title=Help:Magic_words&section=0

LOCALURLE:

A special template. Gets the local URL of the given page.

{{localurle:Help:Magic words|section=0}}

results into

/w/index.php?title=Help:Magic_words&section=0

SERVER

A variable. {{SERVER}} produces https://enq.translatum.gr

GRAMMAR:

Useful for inflected languages to derive word forms. Usage: {{grammar:case|word}}, cases in which this could be used depend on the specific language.

E. g. in Czech language, {{grammar:1sg|Wikipedie}} outputs Wikipedie, while {{grammar:7sg|Wikipedie}} outputs Wikipedií.

__NOTITLECONVERT__

? Can also be spelled __NOTC__.

Same as below but Article Title only.

__NOCONTENTCONVERT__

? Can also be spelled __NOCC__.

Don't perform the content language(character & phase) conversion in article display.(eg, Chinese zh with zh_cn, zh_tw, zh_sg, zh_hk)

CURRENTWEEK

A variable.

21

CURRENTDOW

A variable.

3


Since v1.5

CURRENTMONTHABBREV

A variable, returns the abbreviation of the current month.

May

FULLURL:, FULLURLE:

Special templates, give the full URL of the given page.

https://enq.translatum.gr/wiki/Page

REVISIONID

Gives you the article or diff database

189742

SCRIPTPATH

Returns $wgScriptPath

/w

SERVERNAME

Returns $wgServerName

enq.translatum.gr

NUMBEROFFILES

Returns the number of uploaded files (rows in the image table).

6,170

Quotes-specific content

Edit this Quotes- and subject-specific template

Template:Ph:Magic words

Links to other help pages

Help contents - all pages in the Help namespace: Meta b: c: n: w: q: wikisource wiktionary


Reading: Overview | Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | New page | Images/files | Image description page | Special characters | Formula | Table | EasyTimeline | Template intro | Renaming (moving) a page | Automatic conversion of wikitext | Talk page | Testing | rlc
Projects: Meta (master page) | Wikibooks | Wikicommons | Wikinews | Wikipedia | Wikiquote | Wikisource | Wiktionary
For other languages see Meta.