HMC Central
January 6th, 2009
What is The Healthcare Management Council, Inc.?  
 

Help:Magic words

From HMCwiki

Editing overview

Starting a new page

  1. Page name

Referencing

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

Formatting

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

Organizing

  1. Sections
  2. Templates
  3. Categories
  4. Redirects
  5. Namespaces
  6. Article Size

Fixing mistakes

  1. Reverting edits
  2. Testing

Saving effort

  1. Editing toolbar
  2. Magic words

Communicating

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

Frequently Asked Questions

This is an index of Magic words used in HMCwiki.

Contents

#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.

01

CURRENTMONTHNAME

A variable.

January

CURRENTDAY

A variable.

6

CURRENTDAYNAME

A variable.

Tuesday

CURRENTYEAR

A variable.

2009

CURRENTTIME

A variable.

08:29

NUMBEROFARTICLES

A variable.

109

CURRENTMONTHNAMEGEN

A variable.

January

PAGENAME

A variable.

Magic words

PAGENAMEE

A variable. Like PAGENAME but with full language expansion to URL safe coding. If used in multiply-nested template, will be expanded in the context of the page you're actually looking at (the highest level page in the template stack); this is likely true for all magic words.

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 "January" 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.

e.g. {{subst:stub}} copies the {{stub}} contents below to the article, without using the template.

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

SUBST: can be helpful to avoid the overuse of meta-templates.

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.

INT:

A special template. Used for UI messages, works the same as "HMCwiki".

{{INT:mainpage}} gives the content of HMCwiki:main_page:
Main Page

SITENAME

A variable.

HMCwiki

NS:

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

{{NS:4}} gives:
HMCwiki

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

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

SERVER

A variable. {{SERVER}} produces http://www.hmcwiki.com

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 __NOCC__ 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, returning the number of the current week (1-52).

2

CURRENTDOW

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

2

Image Modifiers

thumbnail

An Images modifier. 'Thumb' has the same effect.

HMCwiki
Enlarge
HMCwiki

right

An image modifier.


{{SITENAME}

left

An image modifier.

none

An image modifier.

{{SITENAME}

$1px

An image modifier.

HMCwiki

center

An image modifier. Can also be spelled centre.

HMCwiki

framed

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


HMCwiki
HMCwiki

Since v1.5

CURRENTMONTHABBREV

A variable that returns the abbreviation of the current month.

Jan

FULLURL:, FULLURLE:

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

Template:FULLURL:page

REVISIONID

Gives you the article or diff database

3507

SCRIPTPATH

Returns $wgScriptPath


SERVERNAME

Returns $wgServerName

www.hmcwiki.com

NUMBEROFFILES

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

73


See also


Links to other help pages

Help contents - all help pages: Meta Wikibooks Commons Wikinews Wikipedia Wikiquote Wikisource Wiktionary

Reading: Go | Search | Stop words | URL | Page name | Section | Link | Backlinks | Piped link | Redirect | Variable | Categories
Logging in and preferences: Logging in | Preferences |
Tracking changes: Recent | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Edit Summary Legend | Minor edit | Patrolled edit
Editing: Overview | Wikitext | New page | List | Images files | Image page | Tables | Template | Renaming (moving) a page | Talk page | Testing | Export | Import | Related changes
Guides: Manual of Style | The perfect article | Lead section | Guide to writing better articles |
More: Editing policy | Formatting | HTML in WikiText | Magic Words | Navigation | Reverting (Rollback) | Show preview | Tracking changes | User contributions | Variable | Variables |

Having trouble logging in?
Call (781) 449-5287
Or fill out form