AoPSWiki
Looking for a challenging geometry text? Preparing for MATHCOUNTS or the AMC exams? Check out Art of Problem Solving's Introduction to Geometry by Richard Rusczyk.

Help:Variables

From AoPSWiki

Revision as of 00:57, 12 December 2007 by Temperal (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

A variable is called in the form of a template (one without parameters). Variables often refer to specific aspects of the respective page or the wiki, or to time and date variables.

Date
{{CURRENTDAY}} 2 Displays day
{{CURRENTYEAR}} 2009 Displays year
{{CURRENTMONTHNAME}} December Displays month
{{CURRENTTIME}} 12:08 Displays time
{{CURRENTHOUR}} 12 Displays hour
More
{{PAGENAME}} Variables Displays name of page (without namespace)
{{PAGENAMEE}} Variables Same as PAGENAME, but formatted for an URL.

Also, in templates, you can specify a variable in it with {{{VARNAME}}}.

Then, when the template is put onto another page, you can specify the variable as follows:

{{TEMPLATENAME | VARNAME = VALUE }}

which replaces the variable with VALUE. Note that if you name the variables {{{1}}},{{{2}}},{{{3}}}, etc. then you can specify the values without listing the variable names in the template call.

See also

This article is a tutorial about the AoPSWiki or AoPS Forum.

Our Precalculus course starts on Dec. 4. Master trig, complex numbers, and vectors and matrices in 2 and 3 dimensions. Click here to enroll today!
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us