全血是什么| 一什么春天| aba是什么意思| 嘴角烂了擦什么药| 尿道炎有什么症状| 淋菌性尿道炎吃什么药| 做肠镜要挂什么科| 腱鞘炎有什么治疗方法| 什么叫引产| 万年青是什么菜| 梦见别人打我是什么意思| 做肝功能检查挂什么科| 尿粘液丝高是什么原因| 水瓜壳煲水有什么功效| 大米有什么营养| 8月17号是什么日子| 伤口溃烂不愈合用什么药| 吃什么可以降血糖| 贱痣是什么意思| 孩子咽炎老是清嗓子吃什么药| 第一次见女方家长带什么礼物好| 处女什么意思| gr是什么元素| 女人左手心痒预示什么| 一什么天安门| 白带多是什么原因引起的| 夏天床上铺什么凉快| 鼻涕黄粘稠是什么原因| 46什么意思| 腘窝囊肿挂什么科| 股票缺口是什么意思| 琼字代表什么生肖| 顺钟向转位是什么意思| 发烧怕冷是什么原因| 睛可以组什么词| 肝血亏虚吃什么中成药调理| 古灵精怪什么意思| 成人男性尿床是什么原因造成的| 爱新觉罗是什么意思| 男生小便尿道刺痛什么原因| sob是什么意思| 苯中毒是什么症状| 鸡蛋和什么炒好吃| 女人吃鹿鞭有什么好处| 小舅子是什么关系| 五大三粗是什么意思| 纸醉金迷下一句是什么| 喝冰水牙疼是什么原因| 卫生巾有什么用| 初级会计考什么科目| 梦见摘桑葚是什么意思| 猪肝跟什么相克| 晚上睡觉出虚汗是什么原因| 处男什么意思| 喝什么酒不会胖| lbl是什么意思| 灵芝有什么功效| 11号来月经什么时候是排卵期| 胰岛a细胞分泌什么激素| 年岁是什么意思| nb是什么意思| 水瓶座的幸运色是什么颜色| 亚麻籽是什么| 舌头边上有锯齿状是什么原因| 什么天揽月| 蹦蹦跳跳的动物是什么生肖| 眼睛干涩吃什么药| 嘴角起痘是什么原因| 什么样的房子不能住人脑筋急转弯| 舟可是什么字| 抗炎和消炎有什么区别| 郁闷什么意思| 早上起来手麻是什么原因| 蓝色配什么色好看| 什么人容易得骨髓瘤| 邮政ems是什么意思| 表姐的儿子叫我什么| 蹉跎什么意思| 背上长痘痘擦什么药膏| 喜丧是什么意思| 定位是什么意思| 医保卡有什么用| 最不干净的动物是什么生肖| 肠道胀气是什么原因造成的| 耳石症是什么引起的| 惹上官司是犯了什么煞| 手淫是什么意思| 奔豚是什么意思| 重色轻友是什么意思| 开塞露有什么功效| 眉毛里有痣代表什么| 反弹是什么意思| 具象是什么意思| 看见喜鹊有什么预兆| 高血压注意什么| 开户名是什么| 麦冬长什么样子图片| 丝瓜炒什么| 舌边有齿痕是什么原因| 口臭是什么病| 仓鼠能吃什么水果| 痛风不能吃什么食物表| 提炼是什么意思| bv是什么牌子| 心率过缓吃什么药| 男人额头有痣代表什么| 什么叫修辞手法| 现在钱为什么这么难挣| 充气娃娃什么感觉| 女性肾虚是什么原因导致的| 钵钵鸡是什么| 什么的眼睛填空| 头晕吃什么药效果好| 死去活来是什么生肖| 燕麦是什么| 袍哥什么意思| 酸菜吃多了有什么危害| 鞭长莫及什么意思| 邮戳是什么意思| 尿道感染流脓吃什么药| 什么是石斛| 4像什么| 依波手表什么档次| 庶母是什么意思| 预防高原反应吃什么药| 早晨5点是什么时辰| 有机食品是什么意思| 我好想你是什么歌| 午时右眼跳是什么预兆| 脚癣是什么原因引起的| 2010年是什么生肖| 职务是什么意思| 67是什么意思| 两个人可以玩什么| 颈椎病是什么症状| 宫外孕是什么原因造成的| 怀孕有什么特征和反应| 胃溃疡可以吃什么水果| 血糖高吃什么饭| 长孙皇后叫什么名字| 琴棋书画指的是什么| 什么药降肌酐最有效| 驻唱是什么意思| 女娲是一个什么样的人| 血糖偏高会有什么症状| 两面三刀是什么生肖| 痛风检查什么项目| 什么人不能吃鸡蛋| 芒果鱼是什么鱼| 治疗结石最好的方法是什么| 同工同酬什么意思| 嘻哈是什么意思| 人工虎骨粉是什么做的| 上嘴角有痣代表什么| 什么是应届毕业生| 经常便秘吃什么调理| 沉香木是什么树| 荨麻疹能吃什么食物| 宝宝上颚有白点是什么| 丝光棉是什么材质| nt什么货币| 凶宅是什么意思| 勃起功能障碍吃什么药| 哺乳期吃避孕药对孩子有什么影响| 早期复极是什么意思| 月经前有褐色分泌物是什么原因| cas号是什么| 脸部浮肿什么原因| 人是什么结构| 牙疼挂什么科| msv是什么单位| 医院属于什么单位| 板鞋配什么裤子好看| 肾炎是什么症状| 油漆味对人有什么危害| 痔疮看什么科| 水痘疫苗叫什么| 正月开什么花| 什么是血尿| 没精打采是什么意思| 为什么德牧不能打| 貉是什么动物| 地豆是什么| 今年是什么命| 鸣字五行属什么| 螃蟹代表什么生肖| 什么奶茶好喝| 河水像什么| 药店最怕什么样的举报| 空亡是什么意思| 玫瑰花泡水喝有什么功效| 为什么白醋把纹身洗掉了| 为什么空调不制冷| 女生两个月没来月经是什么原因| 预后是什么意思| 交接是什么意思| 四妙丸有什么功效与作用| 中成药是什么| 逸五行属性是什么| 颞下颌关节紊乱挂什么科| 摧残是什么意思| 养猫需要准备什么东西| 胎儿左侧侧脑室增宽的原因是什么| 莆田系是什么意思啊| 出虚汗是什么原因引起的怎么调理| 棱长是什么| 2021年五行属什么| 胆囊切除后需要注意什么| 双肺上叶肺大泡是什么意思| 什么东西能加不能减| 膀胱湿热吃什么中成药| 蟑螂为什么会飞| MR医学上是什么意思| jsdun是什么牌子的手表| 吃黑木耳有什么好处| 免疫力是什么意思| 现在什么餐饮最火| 什么是纤维瘤| 急性会厌炎吃什么药| 糖尿病能吃什么| scarves什么意思| 晚饭后散步有什么好处| 护理假是什么意思| 肝胃不和吃什么药| 辛苦是什么意思| 不动产是什么意思| 尿是红色的是什么原因| a血型和o血型生出宝宝是什么血型| 双下肢水肿是什么原因| 心率过低吃什么药| 一箭双雕是什么生肖| 吃叶酸有什么副作用| 埋伏牙是什么意思| 胆固醇高是什么病| 6月份出生是什么星座| 黄瓜敷脸有什么功效| 什么叫同型半胱氨酸| 做水果捞用什么酸奶好| 灰指甲有什么特效药可以治好| 深海鱼油有什么好处| 低聚果糖是什么| 大豆是指什么豆| 鲫鱼吃什么食物| 过敏是什么症状| 做梦抓鱼什么意思周公解梦| 把握时机是指什么生肖| 六味地黄丸什么时候吃| 膝盖疼痛什么原因| 什么植物和动物最像鸡| 早泄阳痿吃什么药| 什么路人不能走| 中指戴戒指代表什么| 二郎神叫什么名字| 梦见父亲死了是什么意思| 男人精液少是什么原因| 猫尿床是因为什么原因| 右侧上颌窦粘膜增厚是什么意思| 更年期吃什么| 岂是什么意思| 霖五行属性是什么| 老是口干舌燥是什么原因| 腹部左侧是什么器官| dl是什么意思| 7月7日是什么纪念日| 百度Jump to content

鸡和什么菜一起烧好吃

Page semi-protected
From Wikipedia, the free encyclopedia
百度 如果你冬季来到芝加哥正好遇上特别暖和的天气,可别误以为芝加哥的冬季温暖如春,这里的天气是变化无常的,马路上常看到电动报告牌,上面显示时间,下面显示温度,一分钟换一次,恐怕也和这变化莫测的天气有关。

Magic words (including parser functions, variables, and behavior switches) are features of wiki markup that give instructions to Wikipedia's underlying MediaWiki software. For example, magic words can suppress or position the table of contents, disable indexing by external search engines, and produce output dynamically based on the current page or on user-defined conditional logic. Some of these features are especially useful for templates.

This page is a quick reference for magic words. For more information, refer to the main MediaWiki documentation:

General information

In general, there are three types of magic words.

  1. Behavior switches: often appear in double underscores, all uppercase, e.g., __NOTOC__. They will change the behavior of a page, rather than return a value.
  2. Parser functions: all in lowercase. A parser function will be followed by colon and pipe-separated parameters, e.g., {{#ifexpr:Y|Yes|No}}, wrapped in double braces. They will take a value and return a value.
  3. Variables: these are all uppercase, e.g., {{PAGENAME}}. A variable will be wrapped in double braces and will return a value in its place.

The software generally interprets magic words in the following way:

  • Magic words are case sensitive.
  • White space is generously allowed for readability. It will be stripped from the start and end of their keywords and parameters (as is also done in template calls using named parameters).
  • They can be transcluded, even variables "about the current page". This is ensured by the parsing order.
  • Instead of magically transforming into HTML instructions, <nowiki> tags remove this magic so a magic word can itself be displayed (documented), e.g. <nowiki>{{#magic:}}</nowiki>or {{#magic:<nowiki/>}}.

Magic words compared to templates:

  • As with templates, magic words can be transcluded and substituted.
  • The names of magic words are purposely chosen to be unlike the names of templates, and vice versa. Many parser function names will begin with a #(pound or hash), but template names will not start with a #, and probably not end in a :(colon), or be all-uppercase.
  • The first parameter's syntax differs. In {{#magic: p1 | p2 | p3}}, the name is #magicand it is followed by an unspaced :and a required input parameter, p1. With a template, p1is optional and it is preceded by a |(pipe) instead of a :, e.g. {{template|p1}}.

Most magic words can be used where needed on a page, but see MOS:ORDER for guidance on placing some magic words that are behavior switches (such as DEFAULTSORT and DISPLAYTITLE).

Behavior switches

Switch Description
__TOC__ Places the page's table of contents (TOC) at the word's position. This magic word does not work in skins that present the table of contents outside the article content e.g. the default Vector 2022 skin.
__FORCETOC__ Forces the TOC to appear in its default position, even when there are fewer than four headings. Can be used anywhere on a page. This magic word does not work in skins that present the table of contents outside the article content e.g. the default Vector 2022 skin.
__NOTOC__ Suppresses the appearance of the page's TOC. Can be used anywhere on a page.
__NOEDITSECTION__ Hides the "edit" links normally beside all headings on the page. To hide the edit link beside a particular heading, specify the heading using e.g. an HTML tag such as <h2>heading</h2> rather than with the usual wiki equals-signs syntax (e.g. == heading ==?).
__ARCHIVEDTALK__ Hides the "Reply" button
__NEWSECTIONLINK__ On non-talk pages, adds a "New section" link as a means to add a new section to the page.
__NONEWSECTIONLINK__ Removes the "New section" link (the add-new-section link) on talk pages.
__NOGALLERY__ Replaces thumbnails on a category page with normal links.
__HIDDENCAT__ Makes a category hidden when included on that category's page.
__INDEX__ Instructs search engines to index the page.
__NOINDEX__ Instructs search engines not to index the page. See Wikipedia:Controlling search engine indexing.
__STATICREDIRECT__ Prevents the link on a redirection page from being updated automatically when the page to which it redirects is moved (and "Update any redirects that point to the original title" is selected).
__DISAMBIG__ Marks a page as a disambiguation page, adds it to Special:DisambiguationPages and places inward links in Special:DisambiguationPageLinks. (See mw:Extension:Disambiguator.)
{{DISPLAYTITLE:title}} Used to amend the displayed form of the page's title.
{{DEFAULTSORT:sortkey}} Sets the default key (the index) under which the page is categorised. Functionality is documented at Help:Category § Default sort key, and guidelines are at Wikipedia:Categorization § Sort keys.
{{NOEXTERNALLANGLINKS}} (equivalent to {{NOEXTERNALLANGLINKS:*}}?) Suppresses the automated inclusion of Wikidata interlanguage links on the lefthand side of the page. Links to particular rather than all languages may be suppressed by using {{NOEXTERNALLANGLINKS:list}}, where list a pipe-delimited list of language codes (e.g. {{NOEXTERNALLANGLINKS:fr|es|ja}} to suppress the French ("fr"), Spanish ("es") and Japanese ("ja") interlanguage links).

Variables

Page name variable Output Description
{{FULLPAGENAME}} Help:Magic words Canonical page name. Title line. Title unless letter-case is altered with {{DISPLAYTITLE}}.[a]
{{PAGENAME}} Magic words Title line excluding namespace.
{{BASEPAGENAME}} Magic words Title of parent page, excluding namespace.
{{ROOTPAGENAME}} Magic words Title of topmost parent (before all subpages), excluding namespace.
{{SUBPAGENAME}} Magic words On a subpage, rightmost portion of current title; higher subpagenames show as backlinks.
{{ARTICLEPAGENAME}} Help:Magic words Title of the subject page associated with the current page. These are useful on talk pages (but see note about Category talk pages).
{{SUBJECTPAGENAME}} Help:Magic words
{{TALKPAGENAME}} Help talk:Magic words Title of the talk page associated with the current page. Useful on subject pages.
{{NAMESPACENUMBER}} 12 Number of the current page's namespace.
{{NAMESPACE}} Help Namespace of the title.
{{ARTICLESPACE}} Help On a talk page, the namespace part of the title of the associated subject page.
{{SUBJECTSPACE}} Help
{{TALKSPACE}} Help talk Namespace of the talk page associated with the current page.
{{FULLPAGENAMEE}},
{{PAGENAMEE}},
 (etc.)
Help:Magic_words,
Magic_words,
(etc.)
Adding an E to the end of the above variables, renders the above encoded for use in MediaWiki URLs (i.e. with underscores replacing spaces).
{{SHORTDESC}} Only works on the English Wikipedia, where it displays a short description below the article title on mobile platforms. See Wikipedia:Short description.

information Note: The magic words above can also take a parameter, in order to parse values on a page other than the current page. A colon (:) is used to pass the parameter, rather than a pipe (|) that is used in templates, like {{MAGICWORD:value}}. For example, {{TALKPAGENAME:Wikipedia:MOS}} returns Wikipedia talk:MOS on any page.

 Caution: Attempting to use (some) page name variables to create a wikilink to an image page, category page or interlanguage link will produce a different effect: this will respectively place the image on the page, add the page to the category, or create an interlanguage link at the edge of the page. To override this normal behavior, prefix the variable with a colon (:); for example [[:{{FULLPAGENAME}}]].

For more details on parser functions that relate to page names and namespaces, see: meta:Help:Page name § Variables and parser functions.

Site variable Output Description
{{SITENAME}} Wikipedia Site name ($wgSitename).
{{SERVER}} //en.wikipedia.org Domain URL ($wgServer).
{{SERVERNAME}} en.wikipedia.org Subdomain and domain name.
{{ARTICLEPATH}} /wiki/$1 Relative article path ($wgArticlePath).
{{SCRIPTPATH}} /w Relative script path ($wgScriptPath).
{{STYLEPATH}} /w/skins Relative style path ($wgStylePath).
{{CURRENTVERSION}} 1.45.0-wmf.12 (4f0e620) Returns current MediaWiki version.

Other variables by type

Current date and time
Universal time Local-website time
Variable Output Variable Output
{{CURRENTYEAR}} 2025 {{LOCALYEAR}} 2025
{{CURRENTMONTH}} 08 {{LOCALMONTH}} 08
{{CURRENTMONTHNAME}} August {{LOCALMONTHNAME}} August
{{CURRENTMONTHABBREV}} Aug {{LOCALMONTHABBREV}} Aug
{{CURRENTDAY}}[b] 6 {{LOCALDAY}}[b] 6
{{CURRENTDAY2}}[b] 06 {{LOCALDAY2}}[b] 06
{{CURRENTDOW}} 3 {{LOCALDOW}} 3
{{CURRENTDAYNAME}} Wednesday {{LOCALDAYNAME}} Wednesday
{{CURRENTTIME}} 14:06 {{LOCALTIME}} 14:06
{{CURRENTHOUR}} 14 {{LOCALHOUR}} 14
{{CURRENTWEEK}} 32 {{LOCALWEEK}} 32
{{CURRENTTIMESTAMP}}[c] 20250806140655 {{LOCALTIMESTAMP}}[c] 20250806140655
Page revision data
Variable Output
{{REVISIONDAY}}[b] 26
{{REVISIONDAY2}}[b] 26
{{REVISIONMONTH}} 06
{{REVISIONYEAR}} 2025
{{REVISIONTIMESTAMP}}[c] 20250626124102
{{REVISIONUSER}}[d] GhostInTheMachine
Wiki statistics
{{NUMBEROFPAGES}} 63,681,169
{{NUMBEROFARTICLES}} 7,035,047
{{NUMBEROFFILES}} 944,343
{{NUMBEROFEDITS}} 1,299,760,625
{{NUMBEROFUSERS}} 49,502,971
{{NUMBEROFADMINS}} 838
{{NUMBEROFACTIVEUSERS}} 107,267

Parser functions

Metadata

Function Description
{{PAGEID}} Unique page identifier number (for example, this page's ID is 3235121).
{{PAGESIZE:fullpagename}}[e] Size of named page in bytes (for example, this page is 36,413 bytes).
{{PROTECTIONLEVEL:action|fullpagename}} Protection level assigned to action ("edit", "move", etc.) on named page (this page's protection level for "edit" is autoconfirmed).
{{PROTECTIONEXPIRY:action|fullpagename}} Protection expiry assigned to action ("edit", "move", etc.) on named page (this page's protection expiry is infinity).
{{PENDINGCHANGELEVEL:fullpagename}} Protection level for pending changes on the named page (this page, which doesn't have one, is).
{{PAGESINCATEGORY:categoryname}} Number of pages in the category named categoryname. Each subcategory is counted as one item.
{{NUMBERINGROUP:groupname}} Number of users in the user group named groupname.

Page IDs can be associated with articles via wikilinks (i.e. Special:Redirect/page/3235121 goes to this page). To output numbers without comma separators (for example, as "123456789" rather than "123,456,789"), append the parameter |R.

Formatting

Function Description
{{lc:string}} Converts all characters in string to lower case.
{{lcfirst:string}} Converts first character of string to lower case.
{{uc:string}} Converts all characters in string to upper case.
{{ucfirst:string}} Converts first character of string to upper case.
{{formatnum:unformatted_number}}
{{formatnum:formatted_num |R}}
Adds comma separators to an unformatted_number (e.g. 123456789 becomes 123,456,789). To remove such formatting, use {{formatnum:formatted_number|R}} (i.e. {{formatnum:7,654,321|R}}, for example, produces 7654321).
{{#dateformat:date|format}}
{{#formatdate:date|format}}
Formats a date according to user preferences; a default can be given as an optional case-sensitive second parameter for users without date preference; can convert a date from an existing format to any of dmy, mdy, ymd, or ISO 8601 formats, with the user's preference overriding the specified format.
{{padleft:xyz|stringlength}}
{{padright:xyz|stringlength}}

{{padleft:xyz|length|padstr}}
{{padright:xyz|length|padstr}}
Pad with zeroes '0' to the right or left, to fill the given length; an alternative padding string can be given as a third parameter; the repeated padding string (padstr) will be truncated if its length does not evenly divide the required number of characters.
{{plural:N|singular|plural}} Outputs singular if N is equal to 1, otherwise outputs plural. See the documentation at mediawiki.org for more details.
{{#time:format|object}}
{{#timel:format|object}}

{{#time:d F Y|date|langcode}}

{{#timef:object|format type|langcode}}
Used to format dates and times, for ISO format, dots or English month names. #timel and #timefl are based on local time as defined for each wiki; for English Wikipedia, this is identical to #time and #timef.
The optional 3rd parameter is the output language code (French, German, Swedish: fr, de, sv, etc.). Example Finnish: {{#time:d F Y|June 30, 2016|fi}} shows: 30 kes?kuu 2016 (June). ISO to German: {{#time:d. M Y|2025-08-06|de}} shows: 31. Okt. 1987.
For format codes, see: mw:Help:Extension:ParserFunctions##time. Use the format {{#time: H:i, j F Y (e)|...}} to match the format used by timestamps in signatures.
#timef formats a date using a standard format for the selected language, see: mw:Help:Extension:ParserFunctions##timef.
{{gender:user|m_out|f_out|u_out}} Outputs m_out, f_out or u_out according to whether the gender specified in user?'s preferences is, respectively, male, female or unspecified. Other parameter permutations are available, see mw:Help:Magic words#gender and translatewiki:Gender.
{{#tag:tagname|content with magic}} Only way to evaluate magic words inside a tag, in order to generate <tagname>magic</tagname>. Also handles tag attributes. Details at mw:Help:Magic words#tag.

Paths

Function Description
{{localurl:fullpagename |query}} Relative path to page name. The query parameter is optional.
{{fullurl:fullpagename |query}} Absolute path, without protocol prefix (i.e. without "?http:?" etc.), to page name. The query parameter is optional.
{{canonicalurl:fullpagename |query}} Absolute path, including protocol prefix, to page name. The query parameter is optional.
{{filepath:filename}} Absolute path to the media file filename.
{{urlencode:string}} Encodes string for use in URL query strings; {{urlencode:test string}}, for example, produces: test+string. To encode string for use in URL paths or MediaWiki page names, append, respectively, |PATH or |WIKI (to produce "test%20string" or "test_string").
{{anchorencode:string}} Input encoded for use in MediaWiki URL section anchors.
{{ns:n}} Returns the name of the namespace whose index is the number n. For MediaWiki URLs, use {{nse:}}.
{{#rel2abs:path}} Converts a relative file path to an absolute path.
{{#titleparts:fullpagename|number|first segment}} Splits the fullpagename (title) into that number of segments.

Conditional

Function Description
{{#expr:expression}} Evaluates expression (see mw:Manual:Expr parser function syntax).
{{#if:string |result1 |result2}} Outputs result2 if string is empty, otherwise outputs result1.
{{#ifeq:string1|string2 |result1 |result2}} Outputs result1 if string1 and string2 are equal (alphabetically or numerically), otherwise outputs result2.
{{#iferror:test_string |result1 |result2}} Outputs result1 if test_string generates a parsing error, otherwise outputs result2.
{{#ifexpr:expression |result1 |result2}} Outputs result1 if expression? is true, otherwise outputs result2.
{{#ifexist:pagetitle |result1 |result2}}[e] Outputs result1 if the page [[pagetitle]] exists, otherwise outputs result2. Note that underscores are needed for spaces in namespaces.
{{#switch:string |c1=r1 |c2=r2 ... |default}} Outputs r1 if string is c1, r2 if string is c2, etc., otherwise outputs default (if provided).

If, in these conditional functions, empty unnamed parameters are to be parsed as empty rather than as text (i.e. as empty rather than as the text "{{{1}}}", "{{{2}}}", etc.), they will require trailing pipes (i.e. {{{1|}}}, {{{2|}}}, etc., rather than {{{1}}}, {{{2}}}, etc.).

Other

Function Description
{{#babel:code1|code2|...}} Render userboxes telling your language skills. Improves upon {{Babel}} (an alternative).
{{#categorytree:category|...}} List pages in a category, recursively.
{{#coordinates:arg1|arg2|...}} Save the GeoData coordinates of the subject to the page's database. Used in {{coord}}.
{{#invoke:module|function|arg1|...}} Use Scribunto to transclude a lua template, e.g. function replace in module String.
{{#language:code1|code2}} Print the name represented by the language code, e.g. enEnglish. Print in language 2 if given, e.g. {{#language:en|zh}} prints 英语
{{#lst:}}, {{#lsth:}}, {{#lstx:}} Three ways to transclude a section of a page.
{{#mentor:Username}} Display the currently assigned mentor for target Username, if set.
{{#property:arg1|arg2|...}} Include a property (Wikidata) from a named entity, instead of the default on the page.
{{#related:...}} Links to similar topics, to engage readers. (Beta feature.)
{{#section:}}, {{#section-h:}}, {{#section-x:}} Aliases for {{#lst:}}, {{#lsth}}, {{#lstx}} (above).
{{#statements:arg1|...}} Display the value of any statement (Wikidata) included in an item.
{{#target:fullpagename}} Send a message to a list of talk pages on the fullpagename, using the MassMessage function.
{{int:pagename}} Transclude an interface message, i.e. a pagename in MediaWiki namespace
{{!}} Used to include a pipe character as part of a template argument or table cell contents. Before this was added as a magic word, many wikis implemented this by creating Template:! with | as the content.
{{=}} Used to include an equal sign as part of a template argument or table cell contents. Before this was added as a magic word, many wikis implemented this by creating Template:= with = as the content.

Substituting and nesting

Magic words can sometimes behave weirdly when substituted or nested. It's possible to subst some magic words (so that the page stops being updated if the value of the word changes). Here are some examples of how this works:

Blue question mark? Code Output
Red X symbolN {{PAGESIZE}} 0
Green checkmarkY {{PAGESIZE:Help:Magic words}} 36,413
Green checkmarkY {{subst:PAGESIZE:Help:Magic words}} 36,413
Green checkmarkY {{PAGESIZE:{{FULLPAGENAME}}}} 36,413
Red X symbolN {{subst:PAGESIZE:{{FULLPAGENAME}}}} 0
Green checkmarkY {{PAGESIZE:{{subst:FULLPAGENAME}}}} 36,413
Green checkmarkY {{subst:PAGESIZE:{{subst:FULLPAGENAME}}}} 36,413

See also

Notes

  1. ^ If {{FULLPAGENAME}} is used in a page that is transcluded from another page, it will return the name of the target. {{#invoke:TEMPLATENAME|main}} can be used to determine the name of the template itself.
  2. ^ a b c d e f {{CURRENTDAY}}, {{LOCALDAY}} and {{REVISIONDAY}} return the day (e.g. "6"), whilst {{CURRENTDAY2}}, {{LOCALDAY2}} and {{REVISIONDAY2}} return the day with zero-padding (e.g. "06"). For all two-digit days (i.e. 10 to 31), these are the same.
  3. ^ a b c These timestamp outputs can be formatted with {{Format revisiontimestamp}} (aka {{FRTS}}). For example, {{FRTS|{{REVISIONTIMESTAMP}}}} turns "20250626124102" into "2025-08-06 12:41:02".
  4. ^ This shows the last user to edit the page. There is no way to show the user viewing the page with magic words due to technical restrictions.
  5. ^ a b This function is an expensive parser function.
贱货是什么意思 心率失常是什么意思 乙肝第二针最晚什么时候打 吃什么流产最快 老鼠为什么怕猫
廷字五行属什么 五大三粗是什么意思 佛法的真谛是什么 肾结石用什么药最好 华为最新款手机是什么型号
鸟屎掉头上有什么预兆 尿液发白是什么原因 一什么田野 69年出生属什么 朝三暮四是什么生肖
天灾人祸什么意思 性格好是什么意思 派出所传唤是什么意思 肺部结节灶是什么意思啊 天妇罗是什么意思
结晶高是什么原因hcv8jop6ns4r.cn 可爱是什么意思hcv8jop0ns0r.cn 力五行属什么hcv9jop5ns5r.cn 头伏二伏三伏吃什么hcv9jop6ns1r.cn 天王星是什么颜色hcv7jop5ns0r.cn
开车撞死猫有什么预兆hcv8jop1ns7r.cn 造诣是什么意思hcv8jop0ns1r.cn 梦到怀孕生孩子是什么意思naasee.com 5D电影是什么效果hcv8jop8ns3r.cn 断更是什么意思hcv9jop0ns9r.cn
嗓子痒咳嗽是什么原因hcv9jop3ns2r.cn 燕窝是什么hcv9jop2ns1r.cn 肺部结节灶是什么意思啊hcv8jop7ns8r.cn 蹒跚什么意思hcv8jop7ns7r.cn 木羽念什么hcv8jop3ns1r.cn
什么是矿物质hcv8jop0ns2r.cn 公仆是什么意思hcv8jop0ns8r.cn 一月10号是什么星座hcv8jop3ns2r.cn 女人吃洋葱有什么好处hcv8jop6ns3r.cn 神是什么hcv8jop3ns5r.cn
百度