Help:Magic words

From BPSBR_Wiki

Jump to: navigation, search

h:h Help

This is an index of Magic words used in MediaWiki.

Contents

[edit] #redirect

Indicates a redirect

[edit] __NOTOC__

Hides the table of contents.

[edit] __FORCETOC__

Always show the table of contents.

[edit] __TOC__

Place the table of contents here. See also compact TOC

[edit] __NOEDITSECTION__

Hide the edit links.

[edit] __START__

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

[edit] CURRENTMONTH

A variable.

09

[edit] CURRENTMONTHNAME

A variable.

September

[edit] CURRENTDAY

A variable.

8

[edit] CURRENTDAYNAME

A variable.

Monday

[edit] CURRENTYEAR

A variable.

2008

[edit] CURRENTTIME

A variable.

18:08

[edit] NUMBEROFARTICLES

A variable.

69

[edit] CURRENTMONTHNAMEGEN

A variable.

September

[edit] PAGENAME

A variable.

Magic words

[edit] PAGENAMEE

A variable.

Magic_words

[edit] NAMESPACE

A variable.

Help

[edit] 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 "September" but {{msg:CURRENTMONTHNAME}} would display "Test".

[edit] 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.

[edit] MSGNW:

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

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


{{msgnw:stub}}


[edit] __END__

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

[edit] thumbnail

An image modifier.

Template:Clear

[edit] right

An image modifier.

Template:Clear

[edit] left

An image modifier.

Template:Clear

[edit] none

An image modifier.

Template:Clear

[edit] $1px

An image modifier.

Image:Mediawiki.pngTemplate:Clear

[edit] center

An image modifier. Can also be spelled centre.

Template:Clear

[edit] framed

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


Template:Clear

[edit] INT:

A special template. Used for UI messages.

mainpage:
Main Page

[edit] SITENAME

A variable.

BPSBR_Wiki

[edit] NS:

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

4:
BPSBR_Wiki

[edit] LOCALURL:

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

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

yields

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

[edit] LOCALURLE:

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

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

yields

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

[edit] SERVER

A variable. {{SERVER}} produces http://wiki.buffalopugs.org

[edit] 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í.

[edit] __NOTITLECONVERT__

? Can also be spelled __NOTC__.

Same as below __NOCC__ but Article Title only.

[edit] __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)

[edit] CURRENTWEEK

A variable, returning the number of the current week (1-52).

37

[edit] CURRENTDOW

A variable, returning the number of the current day of the week (0=Sunday, 1=Monday).

1

[edit] Since v1.5

[edit] CURRENTMONTHABBREV

A variable that returns the abbreviation of the current month.

Sep

[edit] FULLURL:, FULLURLE:

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

http://wiki.buffalopugs.org/index.php/Page

[edit] REVISIONID

Gives you the article or diff database

1920

[edit] SCRIPTPATH

Returns $wgScriptPath


[edit] SERVERNAME

Returns $wgServerName

wiki.buffalopugs.org

[edit] NUMBEROFFILES

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

125

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


Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category | Special page
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit | Patrolled edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | New page | List | Images/files | Image page | Special characters | Formula | Table | EasyTimeline | Template | (p. 2) | Renaming (moving) a page | Editing shortcuts | Talk page | Testing | Export/import | rlc |
Projects: Meta (master page) | Wikibooks | Wikicommons | Wikinews | Wikipedia | Wikiquote | Wikisource | Wiktionary - Template:Ed

Languages: Template:H-langs:Magic words

Personal tools