సహాయం:చమత్కార పదాలు

వికీపీడియా నుండి
Jump to navigation Jump to search

ఇది మీడియావికీలో వాదే చమత్కార పదాల సూచిక.

A "magic word" is a symbol which is recognized by the MediaWiki software and which when seen in the non-commented text of the page, triggers the software to do something other than display that symbol, or transclude a page with that name, but instead to use the symbol directly. A magic word can be

  • an upper case word, preceded and followed by two underscores, e.g. __NOTOC__
  • an XML object, coded similar to HTML, preceded by "<" (and for the end tag "/") and followed by ">", as in <nowiki>...</nowiki>
  • a parser function: similar to a template, a word preceded by the symbols "{{" and followed by "}}", and optionally parameter definitions between pipe characters, except that the part before the first pipe (or without pipes, the text between the braces) contains a colon (":"), e.g. {{ns:3}} and {{#ifexpr:{{{1}}}>3|large|small}}
  • a variable: similar to a template without parameters, a word preceded by the symbols "{{" and followed by "}}", except the word used is in all upper case, e.g. {{CURRENTDAY}}
  • a template modifier
  • an image modifier


Tags which are used on this page such as "[MW1.5+]" indicate the version that first supported the magic word. "XYZ" indicates user input, which is used in the example.

జమిలి అండర్ స్కోర్ల మధ్య నుండే చమత్కార పదాలు[మార్చు]

విషయసూచిక[మార్చు]

వివరాలకు సహాయము:విభాగం చూడండి
పదం వివరణ
__NOTOC__ పేజీలో విషయసూచిక లేకుండా చేస్తుంది.
__FORCETOC__ విభాగాలు ఎన్నున్నప్పటికీ విషయ సూచిక కనబడేలా చేస్తుంది. పదాన్ని ఎక్కడ ఉంచినప్పటికీ, విషయసూచిక ఎల్లప్పుడూ మొట్టమొదటి విభాగానికంటే ముందు వచ్చి చేరుతుంది.
__TOC__ ఈ పదాన్ని పేజీలో ఎక్కడ ఉంచితే ఆ స్థానంలో విషయసూచిక కనబడేలా చేస్తుంది. (ఒకవేళ __NOTOC__ అనే పదం ఉంటే దాన్ని పక్కన పెట్టేస్తుంది). ఒకటి కంటే ఎక్కువ __TOC__ పదాలు వాడినా ప్రయోజనమేమీ ఉండదు. మొదటి పదం ఉన్న చోట విషయసూచిక కనబడుతుంది. మిగిలిన వాటిని పట్టించుకోదు.


ఇతరాలు[మార్చు]

పదం వివరణ
__NOEDITSECTION__ శీర్షికల పక్కన ఉండే మార్చు లింకులను దాస్తుంది.
__NEWSECTIONLINK__ [MW1.7+] మార్చు ట్యాబుకు పక్కన "+"- లింకును చేరుస్తుంది చర్చేతర పేజీల్లో విభాగాన్ని చేర్చేందుకు ఇది ఉపయోగపడుతుంది.
__NOCONTENTCONVERT__
__NOCC__
Don't perform the content language conversion (character and phase) in article display; for example, Chinese zh with zh_cn, zh_tw, zh_sg, zh_hk.
__NOGALLERY__ [MW1.7+] వర్గాల పేజీల్లోని బొమ్మలను చూపించకుండా కేవలం వాటి లింకులను మాత్రమే చూపిస్తుంది.
__NOTITLECONVERT__
__NOTC__
Like __NOCC__ but affecting article title only.
__END__ Allows for trailing whitespace to be included in the page save (does not seem to work anymore).
__START__ This magic word has no effect but an ID in MagicWord.php (MAG_START).


XML-శైలి పట్టీలు[మార్చు]

nowiki: <nowiki>...</nowiki>, disables expansion/interpretation of templates, link syntax, formatting syntax, etc.: <nowiki>'''[[{{tc}}]]'''</nowiki> gives '''[[{{tc}}]]'''

noinclude: <noinclude>...</noinclude>, specifies text to appear or function calls to apply only on the transcluded page, not on the transcluding page. E.g. categorizing of a template itself (and not the transcluding page) would use this tag.

includeonly: <includeonly>...</includeonly>, specifies text to appear or function calls to apply only on the transcluding page, not on the transcluded page (which usually is a template). E.g. a template which categorizes pages where it's applied, but not the template itself, into a certain category.

onlyinclude: <onlyinclude>...</onlyinclude>, specifies text to appear or function calls to apply only on the transcluding page, not on the transcluded page. This tag is distinguished from the <includeonly> tag in that text or code on the transcluded page not enveloped by the tag will not be transcluded, whether or not the <noinclude> tag is in use.

pre: <pre>...</pre>, ditto, also for multiple lines; it is rendered with a new paragraph at the start and end: a<pre>'''[[{{tc}}]]'''</pre> gives a

'''[[{{tc}}]]'''

math: <math>...</math>, e.g. <math>\sqrt{a^2+b^2}</math> gives ; see Help:Displaying a formula

hiero: <hiero>...</hiero>, e.g. <hiero>A1</hiero> gives:

A1

categorytree: <categorytree>...</categorytree> provides a dynamic view of the category structure specified as a tree. See mw:Extension:CategoryTree for optional attributes.

See also: Extending wiki markup.

చరరాశులు[మార్చు]

వివరాలకు సహాయము:చరరాశి చూడండి

కాలము[మార్చు]

The time in UTC. Note that if the page was displayed by the same user and has not changed (has not been edited) since the last time it was displayed, it is possible that the page may be cached (by the user's browser) and the displayed time or date may not change. Also, if a heavily used page, rather than freshly rendered by the software each time it is generated, is instead being retrieved from a caching system (such as the main page on Wikipedia) the date or time may not change from the last time the page was originally retrieved by the caching hardware or software.

పదం ఉదాహరణ వివరణ
{{CURRENTDAY}} 19 ప్రస్తుత రోజు యొక్క సంఖ్యను చూపిస్తుంది.
{{CURRENTDAY2}} 19 [MW1.6+] {{CURRENTDAY}} లాగానే, కాకపోతే ముందు సున్నా చేరుస్తుంది (01 .. 31).
{{CURRENTDAYNAME}} మంగళవారం రోజు పేరు
{{CURRENTDOW}} 2 {{CURRENTDAYNAME}} లాగానే కానీ అంకె రూపంలో (0=ఆదివారం, 1=సోమవారం...).
{{CURRENTMONTH}} 03 నెల సంఖ్య - 01 .. 12.
{{CURRENTMONTHABBREV}} మార్చి [MW1.5+] {{CURRENTMONTH}} లాగానే కానీ పొట్టిపదాలతో (జన.. డిసెం).
{{CURRENTMONTHNAME}} మార్చి {{CURRENTMONTH}} కానీ పేర్ల రూపంలో (జనవరి.. డిసెంబర్).
{{CURRENTTIME}} 04:46 ప్రస్తుత సమయం (00:00 .. 23:59).
{{CURRENTHOUR}} 04 ప్రస్తుత గంట (00 .. 23).
{{CURRENTMINUTE}} 46 ప్రస్తుత నిముషం (00 .. 59).
{{CURRENTSECOND}} 12 ప్రస్తుత సెకండు (00 .. 59).
{{CURRENTWEEK}} 12 ISO 8601 ప్రకారం ప్రస్తుత వారపు సంఖ్య (1-53) - ముందు సున్నాలు లేకుండా.
{{CURRENTYEAR}} 2024 ప్రస్తుత సంవత్సరం.
{{CURRENTTIMESTAMP}} 20240319044612 [MW1.7+] ISO 8601 టైముస్టాంపు.

స్థానిక సమయం[మార్చు]

The time depending on the local timezone of the wiki (not depending on the timezone in the user's preference settings). (All words [MW1.8+] )

పదం ఉదాహరణ వివరణ
{{LOCALDAY}} 19 Displays the local day of the month in numeric form.
{{LOCALDAY2}} 19 Same as {{LOCALDAY}}, but with a leading zero (01 .. 31).
{{LOCALDAYNAME}} మంగళవారం Name of the day in the language of the project or English.
{{LOCALDOW}} 2 Same as {{LOCALDAYNAME}}, but as a number (0=Sunday, 1=Monday...).
{{LOCALMONTH}} 03 The number 01 .. 12 of the month.
{{LOCALMONTHABBREV}} మార్చి Same as {{LOCALMONTH}}, but in abbreviated form as Jan .. Dec.
{{LOCALMONTHNAME}} మార్చి Same as {{LOCALMONTH}}, but in named form as January .. December.
{{LOCALTIME}} 04:46 The local time (00:00 .. 23:59).
{{LOCALHOUR}} 04 The local hour (00 .. 23).
{{LOCALWEEK}} 12 Number of the local week (1-53) according to ISO 8601 with no leading zero.
{{LOCALYEAR}} 2024 Returns the local year.
{{LOCALTIMESTAMP}} 20240319044612 ISO 8601 time stamp.

గణాంకాలు[మార్చు]

Statistics variables give thousands separators unless ":R" for "raw" is added (actually, these versions are parser functions).

పదం ఉదాహరణ వివరణ
{{CURRENTVERSION}} 1.42.0-wmf.22 (bd76262) [MW1.7+] మూస:H:mwg [1]
{{NUMBEROFEDITS}}
{{NUMBEROFEDITS:R}}
41,16,477
4116477
[MW1.10+ (r21319)] Returns the total number of page edits since MediaWiki, the software that runs this site, was installed.
{{NUMBEROFARTICLES}}
{{NUMBEROFARTICLES:R}}
93,060
93060
వికీలోని మొత్తం వ్యాసాల సంఖ్యను చూపించే చరరాశి
{{NUMBEROFPAGES}}
{{NUMBEROFPAGES:R}}
3,47,773
347773
[MW1.7+] మొత్తం పేజీల సంఖ్యను చూపిస్తుంది. [2]
{{NUMBEROFFILES}}
{{NUMBEROFFILES:R}}
14,505
14505
[MW1.5+] అప్‌లోడైన ఫైళ్ళ సంఖ్యను చూపిస్తుంది (ఇమేజి టేబులు లోని వరసల సంఖ్య).
{{NUMBEROFUSERS}}
{{NUMBEROFUSERS:R}}
1,27,463
127463
[MW1.7+] నమోదైన సభ్యుల సంఖ్యను చూపిస్తుంది (సభ్యుల టేబుల్లోని వరసల సంఖ్య).
{{NUMBEROFADMINS}}
{{NUMBEROFADMINS:R}}
12
12
[MW1.7+] నిర్వాహకుల సంఖ్యను చూపిస్తుంది (sysop గుంపు లోని సభ్యులు).
{{PAGESINNAMESPACE}}  disabled here Longer alias of PAGESINNS
{{PAGESINNS:ns}}
{{PAGESINNS:ns:R}}
{{PAGESINNS:2}} 
{{PAGESINNS:2:R}} 
disabled here
[MW1.7+] ఫలానా నేముస్పేసు లోని పేజీల సంఖ్యను చూపిస్తుంది. ఇది డిఫాల్టుగా అచేతనమై ఉంటుండి. మూస:H:mwg తో సచేతనం చేసుకోవచ్చు.

పేజీ పేర్లు, సంబంధిత సమాచారం[మార్చు]

పదం ఉదాహరణ వివరణ
{{PAGENAME}} చమత్కార పదాలు ప్రస్తుత పేజీ పేరును అన్ని స్థాయిలతో సహా చూపిస్తుంది (శిర్షిక/ఉపశీర్షిక).
{{PAGENAMEE}} %E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81 More URL-friendly percent encoded special characters (To use an articlename in an external link).
{{SUBPAGENAME}}
{{SUBPAGENAMEE}}
చమత్కార పదాలు
%E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81
[MW1.6+] Name of the current page, excluding parent pages ("Subtitle" on "Title/Other/Subtitle") in namespaces supporting subpages, see Help:Link.
{{BASEPAGENAME}}
{{BASEPAGENAMEE}}
చమత్కార పదాలు
%E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81
[MW1.7+] The basename of a subpage ("Title/Other" on "Title/Other/Subtitle"), see Help:Link.
{{NAMESPACE}}
{{NAMESPACEE}}
సహాయం
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82
Returns the name of the namespace the current page resides in.
{{FULLPAGENAME}}
{{FULLPAGENAMEE}}
సహాయం:చమత్కార పదాలు
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82:%E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81
[MW1.6+] Shorthands for NAMESPACE+PAGENAME
{{TALKSPACE}}
{{TALKSPACEE}}
సహాయం చర్చ
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82_%E0%B0%9A%E0%B0%B0%E0%B1%8D%E0%B0%9A
[MW1.7+] Name of next odd namespace (e.g. 4 => 5)
{{SUBJECTSPACE}}
{{SUBJECTSPACEE}}
సహాయం
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82
[MW1.7+] Name of last even namespace (e.g. 5 => 4)
{{ARTICLESPACE}}
{{ARTICLESPACEE}}
సహాయం
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82
[MW1.7+] An alias for SUBJECTSPACE(E)
{{TALKPAGENAME}}
{{TALKPAGENAMEE}}
సహాయం చర్చ:చమత్కార పదాలు
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82_%E0%B0%9A%E0%B0%B0%E0%B1%8D%E0%B0%9A:%E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81
[MW1.7+] FULLPAGENAME in its TALKSPACE
{{SUBJECTPAGENAME}}
{{SUBJECTPAGENAMEE}}
సహాయం:చమత్కార పదాలు
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82:%E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81
[MW1.7+] FULLPAGENAME in its SUBJECTSPACE
{{ARTICLEPAGENAME}}
{{ARTICLEPAGENAMEE}}
సహాయం:చమత్కార పదాలు
%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82:%E0%B0%9A%E0%B0%AE%E0%B0%A4%E0%B1%8D%E0%B0%95%E0%B0%BE%E0%B0%B0_%E0%B0%AA%E0%B0%A6%E0%B0%BE%E0%B0%B2%E0%B1%81
[MW1.7+] An alias for SUBJECTPAGENAME(E)
{{REVISIONID}} - [MW1.5+] The unique identifying number of a page, see Help:Diff. Note that when editing a page, this value is null.
{{REVISIONDAY}} 25 [MW1.8+] The day on which the page was last modified.
{{REVISIONDAY2}} 25 [MW1.8+] The day on which the page was last modified, but with a leading zero (01 .. 31).
{{REVISIONMONTH}} 04 [MW1.8+] The month in which the page was last modified.
{{REVISIONYEAR}} 2019 [MW1.8+] The year in which the page was last modified.
{{REVISIONTIMESTAMP}} 20190425090846 [MW1.8+] ISO 8601 time stamp, indicating when the page was last modified.
{{SITENAME}} వికీపీడియా Value of మూస:H:mwg.
{{SERVER}} //te.wikipedia.org Value of మూస:H:mwg
{{SCRIPTPATH}} /w [MW1.5+] మూస:H:mwg
{{SERVERNAME}} te.wikipedia.org [MW1.5+] మూస:H:mwg

పార్సరు ఫంక్షన్లు[మార్చు]

For details see Help:Parser function.

Not working at the position of the page where the tag is located but on the page header, and throughout the page, respectively (see below):

  • DISPLAYTITLE: allow the page header to be different from the page name.
  • DEFAULTSORT: Sets a default category sort key for the page.

Namespaces and URLs[మార్చు]

పదం ఉదాహరణ వివరణ
{{ns:}} {{ns:4}} = వికీపీడియా
{{ns:project}} = వికీపీడియా
Returns the name of a given namespace number.
{{localurl:x y @}}
{{localurle:x y @}}
{{localurl:a|b=c}}
{{localurl:Wikipedia:Category}}
/wiki/X_y_@
/wiki/X_y_@
/w/index.php?title=A&b=c
/wiki/%E0%B0%B5%E0%B0%BF%E0%B0%95%E0%B1%80%E0%B0%AA%E0%B1%80%E0%B0%A1%E0%B0%BF%E0%B0%AF%E0%B0%BE:Category
Returns the local URL of a page (might not exist). Optional query parameter, see Help:Variable.
{{urlencode:x y @}} x+y+%40 [MW1.7+] Encodes variable values for use in external links. [3]
{{anchorencode:x #y @}} x_#y_@ [MW1.8+] Encodes variable values for use in section anchors. [4]
{{fullurl:x y @}}
{{fullurle:x y @}}
{{fullurl:m:a|b=c}}
//te.wikipedia.org/wiki/X_y_@
//te.wikipedia.org/wiki/X_y_@
https://meta.wikimedia.org/wiki/a?b=c
[MW1.5+] Returns the full URL of a given page. Optional query parameter as for localurl:.

ఫార్మాటింగు[మార్చు]

పదం ఉదాహరణ వివరణ
{{#language:}} {{#language:da}} = dansk [MW1.7+] Native name of language code.
{{lc:}} {{lc:AbC dEf}} = abc def [MW1.5+] LowerCase
{{lcfirst:}} {{lcfirst:Ab Cd}} = ab Cd [MW1.5+] LC first char.
{{uc:}} {{uc:aBc DeF}} = ABC DEF [MW1.5+] UpperCase
{{ucfirst:}} {{ucfirst:aB cD}} = AB cD [MW1.5+] UC first char.
{{formatnum:}} {{formatnum:-299792458.56789}} = −29,97,92,458.56789 [MW1.7+] Add decimal separators according to the wiki's default locale. Leading minus and plus are recognized.
{{padleft:}}




{{padright:}}

{{padleft:7|3|0}} = 007

{{padleft:0|3|0}} = 000 (bug)

{{padleft:bcd|6|a}} = aaabcd
{{padleft:café|8|-}} = ----café(<==Bug effect)
{{padleft:cafe|8|-}} = ----cafe

{{padleft:bcd|6|{{!}}}} = |||bcd

{{padright:bcd|6|a}} = bcdaaa
{{padright:0|6|a}} = 0aaaaa (bug)


First case is, for example, applicable to years in a category... giving an ordered year to sort by pipetricks order, or any such ordering where left extended zeros allow a proper sorting.

[MW1.8+] Pads a string with a character to the specified width. Note that there's a little bug that interprets non-US-ASCII characters as two, instead of one character (see the difference in café and cafe in the examples.)

It does not seem possible to use padleft and padright for padding with characters with a multi-character code, such as &nbsp;, which would be useful with padleft for sorting tables with Javascript.

Padding "0" does not work, it returns the same. This seems to be a bug.[1]

With regard to #language and m:Template:n local (backlinks edit), see also:

మూస మార్పిడులు[మార్చు]

వాడుక వివరణ
{{:xyz}} A bare colon is not a template modifier, it's the prefix for the main namespace. Test e.g. article {{:UTC}} vs. template {{UTC}}.
Using this syntax you include the text of the main namespace article xyz in another article.
{{int:xyz}} Same as {{MediaWiki:xyz}}, except standard message translation is applied depending on subpages and content/user/uselang language. Rendered as ⧼xyz⧽ if MediaWiki:xyz doesn't exist. See also Help:System message.
{{msg:xyz}} Even if there is a magic word named "xyz", use template:xyz unless the template doesn't exist (equivalent to {{template:xyz}}). Normally, magic words have priority when there is a conflict.
{{msgnw:xyz}} The unevaluated wikitext is rendered. See msgnw.
{{raw:xyz}} [MW1.6+] Equivalent to {{msg:xyz}} above[2].
{{subst:xyz}} In the wikitext, the tag is substituted by the content (single-level evaluation only), see Help:Substitution.

బొమ్మ మార్పిడులు[మార్చు]

For details see w:en:Wikipedia:Extended image syntax.

These are image modifiers used in [[Image:title.ext|modifier|...|modifier]] links. Some are mutually exclusive, and then the last specified wins.

పరిమాణం[మార్చు]

The last unrecognized modifier is used as caption for framed images or together with thumbnails. It's also used as description alt=text.

పదం వాడుక వివరణ
framed
frame
enframed
[[Image:Mediawiki.png|framed]] Places an image in a frame with a description. Uses original size and stubbornly ignores width parameter if given.
In general, far better to use thumb, as is only suitable for small images.
border [[Image:Mediawiki.png|border]] Shows a 1px border around the image.
thumbnail
thumb
[[Image:Mediawiki.png|thumbnail]] Modifies image size, sets it dependent on user's favorite thumbnail size in one's preferences, or on the given width parameter (see below).
thumb=xyz [[Image:Mediawiki.png|thumb=Wiki.png]] Manualthumb: instead of displaying an automatically-sized thumbnail for Mediawiki.png, display the image Wiki.png.
width px
100x200px
[[Image:Mediawiki.png|40px]]
[[Image:Mediawiki.png|100x200px]]
Scales image to given width  in pixels
Scales image to no more than 100 pixels wide and no more than 200 high, but image scaled to retain its true aspect ratio within the boundary specified.

స్థానం[మార్చు]

For details see Help:Images and other uploaded files

The positions are mutually exclusive; the last specified wins. Template:- can stop floating. For inline images only modifier px (see above) is supported.

పదం వాడుక వివరణ
right [[Image:Mediawiki.png|right]] Modifies position, floats the image to the right.
left [[Image:Mediawiki.png|left]] Modifies position, floats the image to the left.
none [[Image:Mediawiki.png|none]] Explicitly states that the image should not float.
center
centre
[[Image:Mediawiki.png|center]] Modifies position, like none but centered.

ఇతరత్రా[మార్చు]

పదం ఉదాహరణ వివరణ
{{DISPLAYTITLE:xyz}} [MW 1.7+] Set the page's title [5], enabled in Wikimedia projects since June 2007 ([6]). Also see మూస:H:mwg.
{{DIRMARK}}
{{DIRECTIONMARK}}

[MW1.7+] u+200E left to right or u+200D right to left mark
{{CONTENTLANGUAGE}} te [MW1.7+] code of the site's default interface language (మూస:H:mwg)
{{DEFAULTSORT:xyz}} {{DEFAULTSORT:xyz}} [MW1.10+] Sets a default category sort key for the whole current page (also applying for category tags before this tag)[3].
#REDIRECT #REDIRECT [[target]]
at top of source page
Creates a redirect to another page.

భాషా సంబంధిత పద మార్పిడులు[మార్చు]

పదం ఉదాహరణ వివరణ
{{ CURRENTMONTHNAMEGEN }} మార్చి Genitive form of month name used for Czech, Polish, Ukrainian[7]
{{grammar:case | word }} {{grammar:7sg|Wikipedie}}
on cs: is Wikipedií.
Derived word forms in inflected languages like Czech [8]
{{plural:count |form1 |form2 }}
{{plural:count |1st | 2nd | 3rd }}
{{plural: 2 | is | are }}
outputs are
{{plural: 0 | this | these }}
outputs these
count 1 yields form1 (singular), plural transformations are used for languages like Russian [9] based on "count mod 10".

"Grammar" and "Plural" are language-dependent functions, defined in [10], [11], etc. (note that in PHP, the modulo operator is the percent sign).

"Grammar" can either be applied to predefined words only, or to arbitrary words, depending on whether the definition is just a 2D array, or involves string manipulations. See also cs:Šablona:Wikivar/GRAMMAR.

"Plural" is a site-language-dependent switch function, controlled by function convertPlural in Language.php (which distinguishes between 1 and "not 1"), for some languages overridden in Languagexx.php, e.g. for French (which distinguishes between <=1 and >1) and Russian (oddly, first option is 1, 21, 31,.., 91, 101, 121, .., second is 2, 3, 4, 22, 23, 24, 31, 32, 33, 41,.., 94, 102, 103, 104,.., 122, 123,.., and else the third).

As opposed to ParserFunctions, "plural" accepts points and commas in numbers and interprets them in a site-language-specific way (depending on $separatorTransformTable in Messagesxx.php); on this site:

  • {{plural:1.000|a|b|c}} gives a
  • {{plural:1,000|a|b|c}} gives b

(on e.g. the German and the Dutch sites reversed w.r.t. the result on English sites).

"Plural" is used in various system messages, e.g. మూస:Msg, where it uses interface language instead of site language.

ఇవి కూడా చూడండి[మార్చు]

గమనికలు, ఆకరాలు[మార్చు]

  1. Function pad in includes/CoreParserFunctions.php puts, oddly, the $string itself as a condition for the padding. To be reported as bug.
  2. Wikimedia SVN revision 12925
  3. "Technology report", en-Wikipedia Signpost, January 2007

మూస:H:f