解尿支原体是什么| 胃在什么位置| 挺尸 是什么意思| 肝阴不足吃什么中成药| 下午两点属于什么时辰| 心率低是什么原因| 熬夜吃什么补回来| 什么是云| 天真是什么意思| 维生素d3什么时候吃最好| 7月23是什么星座| 豆沙馅可以做什么美食| 孕妇梦到蛇是什么意思| 相见恨晚是什么意思| 解脲支原体阳性吃什么药| 小路像什么| 易烊千玺原名叫什么| 头疼恶心是什么症状| 什么是眩晕症| 什么是慢性病| 梦见种树是什么兆头| 佝偻病是什么症状| 男士内裤什么材质的好| 头发掉什么原因| 吃酸的有什么好处| 功什么不什么| 拂是什么生肖| 风寒感冒用什么药| 食用香精是什么| 阴道放气是什么原因| 什么的鸽子| 一座什么| 酒后头疼什么原因| 傲慢什么意思| 什么是物理| 大黄泡水喝有什么功效| 淋巴细胞降低说明什么| 杏仁吃了有什么好处| 甲状腺结节挂什么科室| 九月二十是什么星座| 女人纵欲过度会有什么症状| 牙齿掉了一小块是什么原因| 维生素什么时候吃效果最好| 镜检白细胞高是什么原因| 电风扇什么牌子质量好| 什么是高情商| 肺部肿瘤切除后吃什么| 土豆发芽到什么程度不能吃| 归来是什么意思| 肠炎吃什么药效果最好| 湖南有什么好玩的| 96年出生的属什么| 亲热是什么意思| 6月5日是什么日子| 3680是什么罩杯| 当是什么意思| 山竹什么样的好| 95年属什么生肖| 1222是什么星座| 荷叶茶有什么作用| 哀鸿遍野是什么意思| 977是什么意思| 眼袋肿了是什么原因| 肌肉代偿是什么意思| 欲生欲死是什么意思| 阴囊潮湿吃什么| romoss是什么牌子| 筋膜是什么| 麦冬不能和什么一起吃| wing什么意思| 小腿浮肿吃什么药| e是什么牌子| 夏天肚子疼是什么原因| 手机壳什么材质最好| 蛇什么时候出来活动| 菩提树是什么树| 螺旋体感染是什么意思| 最小的一位数是什么| 五月一日是什么星座| 眼泪多是什么原因| polo villae是什么档次| 左胸上方隐痛什么原因| 什么叫点映| 达瓦里氏什么意思| 房早有什么危害| pr是什么职位| 日照香炉生紫烟的香炉是什么意思| 曹植字什么| 农历11月25日是什么星座| 纳呆是什么意思| 蒲公英和玫瑰花一起泡有什么功效| 什么地指挥| 促狭一笑是什么意思| 看舌头应该挂什么科| 眼底充血用什么眼药水| 什么叫天干| 萎缩性胃炎吃什么水果好| 手指甲没有月牙是什么原因| 莞式服务是什么| 男人吃什么可以增强性功能| 疥疮是什么原因造成的| 嗓子疼吃什么药最管用| 75年属什么的生肖| 桃子又什么又什么填空| 皮肤经常痒是什么原因| 三点水真读什么| 尖锐湿疣什么症状| 解酒的酶是什么酶| 扯证是什么意思| 封闭针是什么| 甘油三酯高有什么症状| 车厘子是什么季节的水果| 荨麻疹看什么科| 瘴气是什么| 6.16是什么星座| 痘痘破了涂什么药膏| 阴道流黄色分泌物是什么原因| 白咖啡是什么| 虾和什么蔬菜搭配最好| 为什么延迟退休| 查心电图挂什么科| 天下乌鸦一般黑是什么生肖| 结膜炎用什么眼药水效果好| 总是耳鸣是什么原因| 一什么睡莲| 血沉低是什么意思| 牛奶不能和什么东西一起吃| 莲蓬什么时候成熟| 稀盐酸是什么| 丁目是什么意思| 四个火读什么| 64年属什么生肖| 扁平息肉属于什么性质| 胎心停了是什么原因引起的| 障碍是什么意思| 04属什么生肖| 8月26日什么星座| 红颜什么意思| 海带排骨汤海带什么时候放| 什么是等位基因| 态生两靥之愁中靥指什么| min是什么| 布病是什么症状| 属鸡的适合干什么行业最赚钱| 非萎缩性胃炎伴糜烂是什么意思| 得乙肝的人有什么症状| 为什么怀孕了还会来月经| 痛什么什么痛| 午睡后头疼是什么原因| 极有家是什么意思| 鳞状上皮炎症反应性改变是什么意思| 12min是什么意思| 酒酿是什么| 蒸馏酒是什么酒| 梦见桥断了是什么意思| 人为什么会感冒| 蜈蚣长什么样子| 屎是什么味道| 正常白带是什么样子| ctp是什么意思| 滋阴润燥是什么意思| 青色是什么样的颜色| 梦到打架是什么意思| 坐怀不乱柳下惠什么意思| chip什么意思| 膝盖痛吃什么| 压迫感是什么意思| 黄鼠狼是什么科| 喝酒为什么会头疼| 周朝之后是什么朝代| 甘油三酯高是什么原因引起的| 大学挂科是什么意思| 突然和忽然有什么区别| 什么同道合| 咽炎咳嗽吃什么药| 生理期吃什么比较好| 拉肚子发烧是什么原因| 饱和什么意思| 阿胶烊化是什么意思| 什么是生粉| 起付线是什么意思| 献血有什么要求| 梦见吃水饺是什么预兆| 5月12日什么星座| 鼻息肉长什么样子图片| 长骨刺是什么原因导致的| 常喝红茶有什么好处| 台湾三小是什么意思| 螺子黛是什么| 县级以上医院是指什么| 每天半夜两三点醒是什么原因| 办护照照片有什么要求| 包皮长挂什么科| 女人吃鹿茸有什么好处| 什么的同学| 木命人五行缺什么| 海豹是什么动物| 大便干是什么原因| 瞌睡多什么原因| 以身相许是什么意思| edt是什么时间| 91是什么东西| 心慌是什么原因引起的| 愿力是什么意思| 嗓子疼吃什么水果好得快| 16是什么生肖| 红米有什么功效和作用| 眼袋大是什么原因| 看高血压挂什么科| 血压低会导致什么后果| 肾结石有什么表现症状| 眼角长脂肪粒是什么原因| 灰指甲是什么症状| 姜什么时候种植最好| 头孢和什么不能一起吃| 文胸36码是什么尺寸| 乌龟和鳖有什么区别| 梦见钓到大鱼是什么意思| 翻什么覆什么| 奇异是什么意思| 无花果什么味道| 为什么嘴里发苦| 桥本甲状腺炎是什么意思| 耳后有痣代表什么| 空调嗡嗡响是什么原因| 舌头紫色是什么原因| 酸奶什么时候喝最好| 放屁多是什么原因引起的| 合欢树为什么叫鬼树| 上海市长是什么级别| 复刻鞋是什么意思| spa是什么意思| 血压太低有什么危害| 9月24号是什么星座| 副脾结节是什么意思| 内蒙古简称什么| 乌龙茶属于什么茶| 得了便宜还卖乖是什么意思| 女人梦见老虎是什么预兆| 嘴巴长溃疡是什么原因| 腮腺炎吃什么食物| 没什么好怕| 蜱虫长什么样子| strange什么意思| 皮肤黄适合穿什么颜色的衣服| 小囡是什么意思| 吃什么通便| 人养玉三年玉养人一生是什么意思| 常乐我净是什么意思| 怀孕不到一个月有什么症状| 妇科千金片和三金片有什么区别| 豹子号是什么意思| 病毒性感冒咳嗽吃什么药效果好| 什么叫调剂| luky是什么意思| 拉拉是什么| 女人喝劲酒有什么好处| 老大是什么生肖| 肾不好吃什么| 阿胶烊化是什么意思| 美版苹果和国行有什么区别| 外阴瘙痒吃什么药| 梦见打碎碗是什么预兆| 肤色不均匀是什么原因| 百度Jump to content

亚冠周最佳阵容王永珀成中超独苗

?????????????
百度 中国将一以贯之地坚持对外开放的基本国策,构建全方位开放新格局,深度融入世界经济体系。

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 inside templates).
  • 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), 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 #magic and it is followed by an unspaced : and a required input parameter, p1. With a template, p1 is optional and it is preceded by a | (pipe) instead of a :, e.g. {{template|p1}}.

Behavior switches

[????????]

Switch Description
__TOC__ Places the page's table of contents (TOC) at the word's position.
__FORCETOC__ Forces the TOC to appear in its default position. Can be used anywhere on a page.
__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 ==?).
__NEWSECTIONLINK__ On non-talk pages, adds a "??? ????????" link as a means to add a new section to the page.
__NONEWSECTIONLINK__ Removes the "??? ????????" 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). Also instructs interwiki bots to treat the page as if an article.
__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.
{{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}} ?????:Magic words Canonical page name. Title line. Title unless letter-case is altered with {{DISPLAYTITLE}}.
{{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}} ?????: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}} ?????:Magic words
{{TALKPAGENAME}} ????? ??????: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}} ????? Namespace of the title.
{{ARTICLESPACE}} ????? On a talk page, the namespace part of the title of the associated subject page.
{{SUBJECTSPACE}} ?????
{{TALKSPACE}} ????? ?????? Namespace of the talk page associated with the current page.
{{FULLPAGENAMEE}},
{{PAGENAMEE}},
 (etc.)
%E0%AC%B8%E0%AC%B9%E0%AC%AF%E0%AD%8B%E0%AC%97: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#Implementation.

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. See meta:Help:Page name for more details of parser functions.

Note: In the "Category" and "Category talk" namespaces, to wikilink (some) page name variables may require prefixing a colon to avoid unwanted categorization.

Site variable Example Description
{{SITENAME}} ??????????
{{SERVER}} //or.wikipedia.org
{{SERVERNAME}} or.wikipedia.org
{{SCRIPTPATH}} /w
{{CURRENTVERSION}} 1.45.0-wmf.12 (4f0e620) Returns current MediaWiki version.

Other variables by type

[????????]
Date and time Revision data Statisticsa
Universal time
  • {{CURRENTYEAR}}
  • {{CURRENTMONTH}}
  • {{CURRENTMONTHNAME}}
  • {{CURRENTMONTHABBREV}}
  • {{CURRENTDAY}}
  • {{CURRENTDAY2}}
  • {{CURRENTDOW}}
  • {{CURRENTDAYNAME}}
  • {{CURRENTTIME}}
  • {{CURRENTHOUR}}
  • {{CURRENTWEEK}}
  • {{CURRENTTIMESTAMP}}
Local website time
  • {{LOCALYEAR}}
  • {{LOCALMONTH}}
  • {{LOCALMONTHNAME}}
  • {{LOCALMONTHABBREV}}
  • {{LOCALDAY}}
  • {{LOCALDAY2}}
  • {{LOCALDOW}}
  • {{LOCALDAYNAME}}
  • {{LOCALTIME}}
  • {{LOCALHOUR}}
  • {{LOCALWEEK}}
  • {{LOCALTIMESTAMP}}
  • {{REVISIONDAY}}
  • {{REVISIONDAY2}}
  • {{REVISIONMONTH}}
  • {{REVISIONYEAR}}
  • {{REVISIONTIMESTAMP}}
  • {{REVISIONUSER}}b
  • {{NUMBEROFPAGES}}
  • {{NUMBEROFARTICLES}}
  • {{NUMBEROFFILES}}
  • {{NUMBEROFEDITS}}
  • {{NUMBEROFUSERS}}
  • {{NUMBEROFADMINS}}
  • {{NUMBEROFACTIVEUSERS}}
a English Wikipedia.
b This shows the last user to edit the page. There is no way to show the user viewing the page due to technical restrictions.

Parser functions

[????????]

Metadata

[????????]
Function Description
{{PAGEID}} Unique page identifier number.
{{PAGESIZE:fullpagename}} Size of named page in bytes.
{{PROTECTIONLEVEL:action|fullpagename}} Protection level assigned to action ("edit", "move", etc.) on named page.
{{PROTECTIONEXPIRY:action|fullpagename}} Protection expiry assigned to action ("edit", "move", etc.) on named page.
{{PENDINGCHANGELEVEL}} Protection level for pending changes on the current page.
{{PAGESINCATEGORY:categoryname}} Number of pages in the category named categoryname.
{{NUMBERINGROUP:groupname}} Number of users in the user group named groupname.

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 ??,??,??,???). 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}}
Used to format dates and times, for ISO format, dots or English month names. #timel is based on local time as defined for each wiki; for English Wikipedia, this is identical to #time.
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-07|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.
{{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:tag|content with magic}} Only way to evaluate magic words inside a tag, in order to generate <tag>magic</tag>. Also handles tag attributes.

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 m:Help:Calculation).
{{#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}} 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.
{{#lst:}} {{#lsth:}} {{#lstx:}} Three ways to transclude a section of a page.
{{#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).
{{#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

See also

[????????]

?????:Wikipedia technical help

左耳朵痒代表什么预兆 老人吃什么水果对身体好 肠癌是什么原因造成的 阴茎插入阴道什么感觉 谢邀什么意思
孩子总爱哭是什么原因 没精打采是什么意思 阳历3月是什么星座 长湿疹是什么原因引起的 男性尿道痒吃什么药
吃什么可以治痔疮 天生一对成伴侣是什么生肖 让您费心了是什么意思 什么是音色 低度cin病变是什么意思
小脑萎缩吃什么药好 印尼用什么货币 来月经量少吃什么可以增加月经量 酸化是什么意思 左肺下叶钙化灶是什么意思
什么叫丁克hcv9jop1ns8r.cn 什么能让虱子卵脱落hcv7jop6ns1r.cn 肝吸虫病有什么症状hcv8jop3ns5r.cn 梦见买狗是什么意思imcecn.com 中级会计什么时候报名hcv8jop8ns5r.cn
土耳其说什么语言hcv7jop9ns0r.cn 小麦过敏可以用什么代替面食hcv9jop1ns9r.cn 孕妇便秘吃什么药hcv8jop9ns2r.cn 1930年属什么hcv8jop3ns8r.cn cdts什么意思hcv8jop1ns9r.cn
为什么腋下有异味hcv8jop6ns3r.cn 桃代表什么生肖hcv8jop8ns3r.cn 高血压喝什么茶hcv9jop5ns8r.cn 观音坐莲是什么姿势hcv8jop8ns4r.cn 盗汗吃什么药hcv8jop8ns8r.cn
结节影是什么意思sanhestory.com 冷冻跟冷藏有什么区别hcv7jop9ns1r.cn 结婚纪念日送什么花hkuteam.com 陆代表什么生肖hcv8jop5ns2r.cn 佬是什么意思hcv7jop7ns1r.cn
百度