सहाय्य:विस्तार:पृथकककारके
- मूळ पान mw:Help:Extension:ParserFunctions/mr येथे असते.
The पृथकक कारकांचा (पार्सर फंक्शन्स) विस्तार(एक्सटेंशन) [विशिष्ट अर्थ पहा] provides ten additional parser functions to supplement the "जादुई शब्द", which are already present in मिडियाविकि. All the पृथकक कारके provided by this विस्तार take the form:
- {{ #functionname: argument 1 | argument 2 | argument 3 ... }}
#expr: #करण:
[संपादन]प्रकार | Operators[मराठी शब्द सुचवा] |
---|---|
Grouping (parentheses)[मराठी शब्द सुचवा] | ( ) |
Numbers | 1234.5 2.4E5 e (2.718) pi (3.142) |
Logic[मराठी शब्द सुचवा] | or |
and | |
= != <> > < <= >= | |
Round [मराठी शब्द सुचवा] | round |
Binary[मराठी शब्द सुचवा] | + - mod |
* / div | |
^ | |
Unary[मराठी शब्द सुचवा] | not ceil trunc floor abs ln sin cos tan acos asin atan |
e + - |
This function evaluates a mathematical expression आणि returns the calculated value.
- {{#करण: expression }}
The available operators are listed to the right, in order of precedence. पहा Help:Calculation for more details of the function of each operator. The accuracy आणि format of the result returned will vary depending on the operating system of the server running the wiki, आणि the number format of the site language.
When evaluating using boolean algebra, zero evaluates to false आणि any nonzero value, positive or negative, evaluates to true:
- {{#करण: 1 and -1 }} → 1
- {{#करण: 1 and 0 }} → 0
An empty input expression returns an empty string. Invalid expressions return one of several error messages, which can be caught using the #जरत्रुटी: function:
- {{#करण: }} →
- {{#करण: 1+ }} → एक्स्प्रेशन त्रुटी: + चा घटक सापडला नाही
- {{#करण: 1 foo 2 }} → अभिव्यक्ती त्रुटी: अनोळखी शब्द "foo"
Warning: | Some expressions may invoke floating-point errors when used with very large or very small numbers:
{{#करण: 20060618093259 mod 10000}} → 3259 in most cases, but may occasionally give -6357. This varies with the specification आणि configuration of the server running the wiki. पहा bug 6356. |
#if: #जर:
[संपादन]- {{#जर: test string | value if true | value if false }}
This function tests whether the first parameter is 'non-empty'. It evaluates to false if the test string is empty or contains only whitespace characters (space, newline, etc).
- {{#जर: | yes | no}} → no
- {{#जर: string | yes | no}} → yes
- {{#जर: | yes | no}} → no
- {{#जर:
| yes | no}} → no
The test string is always interpreted as pure text, so mathematical expressions are not evaluated:
- {{#जर: 1==2 | yes | no}} → yes
Either or both the return values may be omitted:
- {{#जर: foo | yes }} → yes
- {{#जर: | yes }} →
- {{#जर: foo | | no}} →
पहा mw:Help:Parser functions in templates for more examples of this parser function.
#ifeq: #जरसम:
[संपादन]This parser function compares two strings आणि determines whether they are identical.
- {{#जरसम: string 1 | string 2 | value if true | value if false }}
If both strings are valid numerical values, the strings are compared numerically:
- {{#जरसम: 01 | 1 | yes | no}} → yes
- {{#जरसम: 0 | -0 | yes | no}} → yes
Otherwise the comparison is made as text; this comparison is case sensitive:
- {{#जरसम: foo | bar | yes | no}} → no
- {{#जरसम: foo | Foo | yes | no}} → no
- {{#जरसम: "01" | "1" | yes | no}} → no
Warning: | Text inside <nowiki> tags is hashed within parser functions, resulting in errors:
{{#जरसम: <nowiki>foo</nowiki> | <nowiki>foo</nowiki> | yes | no}} → no |
#iferror: #जरत्रुटी:
[संपादन]This function takes an input string आणि returns one of two results; the function evaluates to true if the input string contains an HTML object with class="error", as generated by other पृथकक कारके such as #करण:, #वेळ: आणि #rel2abs:, template errors such as loops आणि recursions, आणि other 'failsoft' parser errors.
- {{#जरत्रुटी: test string | value if error | value if correct }}
One or both of the return strings can be omitted. If the correct string is omitted, the test string is returned if it is not erroneous. If the error string is also omitted, an empty string is returned on an error:
- {{#जरत्रुटी: {{#करण: 1 + 2 }} | error | correct }} → correct
- {{#जरत्रुटी: {{#करण: 1 + X }} | error | correct }} → error
- {{#जरत्रुटी: {{#करण: 1 + 2 }} | error }} → 3
- {{#जरत्रुटी: {{#करण: 1 + X }} | error }} → error
- {{#जरत्रुटी: {{#करण: 1 + 2 }} }} → 3
- {{#जरत्रुटी: {{#करण: 1 + X }} }} →
#ifexpr: #जरकरण:
[संपादन]This function evaluates a mathematical expression आणि returns one of two strings depending on the boolean value of the result:
- {{#जरकरण: expression | value if true | value if false }}
The expression input is evaluated exactly as for #करण: above, with the same operators being available. The output is then evaluated as a boolean expression. This function is equivalent to one using #जरसम: आणि #करण: only:
- {{#जरसम: {{#करण: expression }} | 0 | value if false | value if true }}
An empty input expression evaluates to false:
- {{#जरकरण: | yes | no}} → no
Either or both the return values may be omitted; no output is given when the appropriate branch is left empty:
- {{#जरकरण: 1 > 0 | yes }} → yes
- {{#जरकरण: 1 < 0 | yes }} →
- {{#जरकरण: 1 > 0 | | no}} →
- {{#जरकरण: 1 > 0 }} →
#ifexist: #जरअसेल: #जरआहे:
[संपादन]This function takes an input string, interprets it as a page title, आणि returns one of two values depending on whether or not the page exists on the local wiki.
- {{#जरअसेल: page title | value if exists | value if doesn't exist }}
The function evaluates to true if the page exists, whether it contains content, is visibly blank (contains meta-data such as category links or जादुई शब्द, but no visible content), is blank, or is a redirect. Only pages that are redlinked evaluate to false, including if the page used to exist but has been deleted.
- {{#जरअसेल: सहाय्य:विस्तार:पृथकककारके | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात आहे
- {{#जरअसेल: XXXसहाय्य:विस्तार:पृथकककारकेXXX | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात नाही
The function evaluates to true for system messages that have been customised, आणि for special pages that are defined by the software.
- {{#जरअसेल: विशेष:नित्य पहाण्याची सूची | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात आहे
- {{#जरअसेल: विशेष:सदस्यतपासनिस | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात आहे (because the CheckUser विस्तार is installed on this wiki)
- {{#जरअसेल: MediaWiki:Copyright | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात नाही (because मिडियाविकी:Copyright has not been customised)
#जरअसेल: is considered an "expensive parser function", only a limited number of which can be included on any one page (including functions inside transcluded templates). When this limit is exceeded, the page is categorised into Category:खूप सारे खर्चीक पार्सर क्रिया कॉल्स असणारी पाने, आणि any further #जरअसेल: functions automatically return false, whether the target page अस्तित्वात आहे or not.
Tip for wiki admins: Configure the maximum number of allowed expensive parser functions using the $wgExpensiveParserFunctionLimit variable. |
If a page checks a target using #जरअसेल:, then that page will appear in the विशेष:येथे काय जोडले आहे list for the target page. So if the code {{#जरअसेल:Foo}} were included live on this page (सहाय्य:विस्तार:पृथकककारके), विशेष:येथे काय जोडले आहे/Foo will list सहाय्य:विस्तार:पृथकककारके.
On wikis using a shared media repository, #जरअसेल: can be used to check if a file has been uploaded to the repository, but not to the wiki itself:
- {{#जरअसेल: चित्र:Example.png | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात नाही
- {{#जरअसेल: Image:Example.png | अस्तित्वात आहे | अस्तित्वात नाही }} → doesn't exist
- {{#जरअसेल: मिडिया:Example.png | अस्तित्वात आहे | अस्तित्वात नाही }} → अस्तित्वात आहे
If a local description page has been created for the file, the result is अस्तित्वात आहे for all of the above.
#rel2abs:
[संपादन]- rel2abs:[मराठी शब्द सुचवा]
This function converts a relative file path into an absolute filepath.
- {{#rel2abs: path }}
- {{#rel2abs: path | base path }}
Within the path input, the following syntax is valid:
.
→ the current level..
→ "go up one level"/foo
→ "go down one level into the subdirectory /foo"
If the base path is not specified, the full page name of the page will be used instead:
- {{#rel2abs: /quok | सहाय्य:Foo/bar/baz }} → सहाय्य:Foo/bar/baz/quok
- {{#rel2abs: ./quok | सहाय्य:Foo/bar/baz }} → सहाय्य:Foo/bar/baz/quok
- {{#rel2abs: ../quok | सहाय्य:Foo/bar/baz }} → सहाय्य:Foo/bar/quok
- {{#rel2abs: ../. | सहाय्य:Foo/bar/baz }} → सहाय्य:Foo/bar
Invalid syntax, such as /. or /./, is ignored. Since no more than two consecutive full stops are permitted, sequences such as these can be used to separate successive statements:
- {{#rel2abs: ../quok/. | सहाय्य:Foo/bar/baz }} → सहाय्य:Foo/bar/quok
- {{#rel2abs: ../../quok | सहाय्य:Foo/bar/baz }} → सहाय्य:Foo/quok
- {{#rel2abs: ../../../quok | सहाय्य:Foo/bar/baz }} → quok
- {{#rel2abs: ../../../../quok | सहाय्य:Foo/bar/baz }} → त्रुटी: मार्गामध्ये चुकीची गहनता: "सहाय्य:Foo/bar/baz/../../../../quok" (रूट नोडच्या वरील नोड शोधायचा प्रयत्न केला)
#switch: #कळ:, #सांगकळ:, #असेलतरसांग:, #असलेतरसांग:, #स्वीच:,
[संपादन]This function compares one input value against several test cases, returning an associated string if a match is found.
{{#असेलतरसांग: comparison string | case = result | case = result | ... | case = result | default result }}
The default result is returned if no case string matches the comparison string. In this syntax, the default result must be the last parameter आणि must not contain a raw equals sign. Alternatively, the default result may be explicitly declared with a case string of "#default"; default results declared in this way may be placed anywhere within the function:
- {{#असेलतरसांग: test | foo = Foo | #default = Bar | baz = Baz }} → Bar
If no match is made, no content is added. It is possible to have 'fall through' values, where several case strings return the same result string. This minimises duplication.
{{#असेलतरसांग: comparison string | case1 = result1 | case2 | case3 | case4 = result2 | case5 = result3 | case6 | case7 = result4 | default result }}
Here cases 2, 3 आणि 4 all return result2; cases 6 आणि 7 both return result4
As with #जरसम:, the comparison is made numerically if both the comparison string आणि the case string being tested are numeric; or as case-sensitive string otherwise. A case string may be empty:
- {{#असेलतरसांग: | = Nothing | foo = Foo | Something }} → Nothing
Once a match is found, subsequent cases are ignored:
- {{#असेलतरसांग: b | f = Foo | b = Bar | b = Baz | }} → Bar
Warning: | "Case" strings cannot contain raw equals signs; instead, create a template at {{=}} with =: {{#असेलतरसांग: 1=2 | 1=2 = raw | 1<nowiki>=</nowiki>2 = nowiki | 1=2 = html | 1{{=}}2 = template | foo }} → html |
#time: वेळ
[संपादन]Code संकेत | Description वर्णन | Current output सद्य आऊटपूट |
---|---|---|
वर्ष | ||
Y | 4-digit year. | २०२४ |
y | 2-digit year. | २४ |
L | 1 or 0 whether it's a leap year or not | १ |
o ¹ | ISO-8601 year number. ² | २०२४ ³ |
¹ Requires PHP 5.1.0 आणि newer आणि rev:45208 | ||
महिना | ||
n | Month index, not zero-padded. | ११ |
m | Month index, zero-padded. | ११ |
M | An abbreviation of the month name, in the site language. | नोव्हेंबर |
F | The full month name in the site language. | नोव्हेंबर |
आठवडा | ||
W | ISO 8601 week number, zero-padded. | ४७ |
दिवस | ||
j | Day of the month, not zero-padded. | २२ |
d | Day of the month, zero-padded. | २२ |
z | Day of the year (January 1 = 0) | ३२६ |
D | An abbreviation for the day of the week. Rarely internationalised. | शुक्र |
l | The full weekday name. Rarely internationalised. | शुक्रवार |
N | ISO 8601 day of the week. | ५ |
w | number of the day of the week (Monday = 1). | ५ |
तास | ||
a | "am" during the morning (00:00:00 → 11:59:59), "pm" otherwise (12:00:00 → 23:59:59) | am |
A | Uppercase version of a above. | AM |
g | Hour in 12-hour format, not zero-padded. | ७ |
h | Hour in 12-hour format, zero-padded. | ०७ |
G | Hour in 24-hour format, not zero-padded. | ७ |
H | Hour in 24-hour format, zero-padded. | ०७ |
मिनीट आणि सेकंड | ||
i | Minutes past the hour, zero-padded. | ३३ |
s | Seconds past the minute, zero-padded. | २८ |
U | Seconds since January 1 1970 00:00:00 GMT. | १७३२२६०८०८ |
विवीध | ||
L | 1 if this year is a leap year in the Gregorian calendar, 0 otherwise | १ |
t | Number of days in the current month. | ३० |
c | ISO 8601 formatted date, equivalent to Y-m-dTH:i:s+00:00. | 2024-11-22T07:33:28+00:00 |
r | RFC 2822 formatted date, equivalent to D, j M Y H:i:s +0000, with weekday name आणि month name not internationalised. | Fri, 22 Nov 2024 07:33:28 +0000 |
विना-ग्रेगोरियन कॅलेंडर | ||
इराणियन | ||
xij | Day of the month | २ |
xiF | Full month name | Azar |
xin | Month index | ९ |
xiY | Full year | १४०३ |
हिब्रू | ||
xjj | Day of the month | २१ |
xjF | Full month name | Cheshvan |
xjx | Genitive form of the month name | Cheshvan |
xjn | Month number | २ |
xjY | Full year | ५७८५ |
थाई सोलार | ||
xkY | Full year | २५६७ |
Flags झेंडे | ||
xn | Format the next numeric code as a raw ASCII number. | In the Hindi language, {{#वेळ:H, xnH}} produces ०६, 06 |
xN | Like xn, but as a toggled flag, which endures until the end of the string or until the next appearance of xN in the string. | |
xr | Format the next number as a roman numeral. Only works for numbers up to 3000. | {{#वेळ:xrY}} → MMXXIV |
xg | Before a month flag (n, m, M, F), output the genitive form if the site language distinguishes between genitive आणि nominative forms. |
This parser function takes a date आणि/or वेळ construct आणि formats it according to the syntax given. A date/वेळ object can be specified; the default is the value of the जादुई शब्द {{सद्यकालमुद्रा}} – that is, the time the page was last rendered into HTML.
- {{#वेळ: format string }}
- {{#वेळ: format string | date/time object }}
The list of accepted formatting codes is given in the table to the right. Any character in the formatting string that is not recognised is passed through unaltered. There are also two ways to escape characters within the formatting string:
- A backslash followed by a formatting character is interpreted as a single literal character
- characters enclosed in double quotes are considered literal characters, आणि the quotes are removed
In addition, the digraph xx is interpreted as a single literal "x".
- {{#वेळ: Y-m-d }} → २०२४-११-२२
- {{#वेळ: [[Y]] m d }} → २०२४ ११ २२
- {{#वेळ: [[Y (year)]] }} → २०२४ (२४UTCamFri, 22 Nov 2024 07:33:28 +0000)
- {{#वेळ: [[Y "(year)"]] }} → २०२४ (year)
- {{#वेळ: i's" }} → ३३'२८"
The date/वेळ object can be in any format accepted by PHP's strtotime() function. Both absolute (eg 20 December 2000) आणि relative (eg +20 hours) times are accepted.
Full or partial absolute dates can be specified; the function will 'fill in' parts of the date that are not specified using the current values:
- {{#वेळ: Y | January 1 }} → २०२४
A four-digit number is interpreted as hours आणि minutes if possible, आणि otherwise as year:
{{#वेळ: Y m d H:i:s | 1959 }} → १९५९ ११ २२ ००:००:०० Input is treated as a वेळ rather than a year.
{{#वेळ: Y m d H:i:s | 1960 }} → १९६० ११ २२ ००:००:०० Since 19:60 is no valid वेळ, 1960 is treated as a year.
A six-digit number is interpreted as hours, minutes आणि seconds if possible, but otherwise as an error (not, for instance, a year आणि month):
{{#वेळ: Y m d H:i:s | 195909 }} → २०२४ ११ २२ १९:५९:०९ Input is treated as a वेळ rather than a year+month code.
{{#वेळ: Y m d H:i:s | 196009 }} → त्रुटी: चुकीचा वेळ Although 19:60:09 is no valid वेळ, 196009 is not interpreted as September 1960.
The function performs a certain amount of date mathematics:
- {{#वेळ: d F Y | January 0 2008 }} → ३१ डिसेंबर २००७
- {{#वेळ: d F | January 32 }} → त्रुटी: चुकीचा वेळ
- {{#वेळ: d F | February 29 2008 }} → २९ फेब्रुवारी
- {{#वेळ: d F | February 29 2007 }} → ०१ मार्च
#timel: वेळस्था
[संपादन]This function is identical to {{#वेळ: ... }}, except that it uses the local वेळ of the wiki (as set in $wgLocaltimezone) when no date is given.
- {{#वेळ: Y-m-d }} → २०२४-११-२२
- {{#वेळस्था: Y-m-d }} → २०२४-११-२२
- {{#वेळ: Y F d h:i:s}} → २०२४ नोव्हेंबर २२ ०७:३३:२८
- {{#वेळस्था: Y F d h:i:s}} → २०२४ नोव्हेंबर २२ ०७:३३:२८
#titleparts: शीर्षकखंड, टाइटलपार्ट्स
[संपादन]हे कारक पानशीर्षकाचे slashes नूसार विभागणी करते, आणि त्यातीलच काही विभाग output म्हणून परत देते.
- {{#शीर्षकखंड: लेखनाव | परत द्यावयाच्या विभागांची संख्या | परत द्यावयाचा पहिला विभाग }}
जर विभागांची संख्या प्रचल नमुद केलेले नसेल किंवा, ती "0"ने अविचल होते, तेव्हा सर्व विभाग परत दिले जातात. जर पहिला विभाग प्रचल नमुद केलेले नसेल किंवा "0" असेल, तर ती "1" ने अविचल होते:
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok }} → चर्चा:Foo/bar/baz/quok
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok | 1 }} → चर्चा:Foo
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok | 2 }} → चर्चा:Foo/bar
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok | 2 | 2 }} → bar/baz
Negative values are accepted for both values. Negative values for number of segments effectively 'strips' segments from the end of the string. Negative values for first segment translates to "add this value to the total number of segments", loosely equivalent to "count from the right":
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok | -1 }} → चर्चा:Foo/bar/baz
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok | | -1 }} → quok
- {{#शीर्षकखंड: चर्चा:Foo/bar/baz/quok | -1 | 2 }} → bar/baz Strips one segment from the end of the string, then returns the second segment आणि beyond
The string is split a maximum of 25 times; further slashes are ignored. The string is also limited to 255 characters, as it is treated as a page title:
- {{#शीर्षकखंड: a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/aa/bb/cc/dd/ee | 1 | 25 }} → y/z/aa/bb/cc/dd/ee
सर्वसाधारण मुद्दे
[संपादन]Substitution पर्यायिता
[संपादन]पृथकक कारके can be substituted by prefixing the hash character with पर्याय::
- {{पर्याय:#जरअसेल: सहाय्य:विस्तार:पृथकककारके | [[सहाय्य:विस्तार:पृथकककारके]] | सहाय्य:विस्तार:पृथकककारके }} → संकेतन [[सहाय्य:विस्तार:पृथकककारके]] सहाय्य:विस्तार:पृथकककारके अस्तित्वात आहे तेव्हापासूनविकिमजकूरात insert केले जाईल.
Warning: | जरका करणात अपर्यायित volatile संकेतन जसेकी चर किंवा इतर पृथकक कारके असतील तर पर्यायित पृथकक कारकांचे results undefined राहतील. consistent results करिता, evaluate करावयाच्या करणामधील सर्व संकेतन पर्यायित (साचोद्घाटीत) केलेच पाहिजे . पहा सहाय्य:पर्यायिता. |
Tables सारण्या
[संपादन]पृथकक कारके will mangle विकिटेबल विधानांशी सरमिसळ होऊ शकते, treating all the raw pipe characters as parameter divisors. To avoid this, most wikis create the template साचा:! with its contents only a raw pipe character. पानावरले सर्व साचे आणि variables expand करून होई पर्यंत ते गृहीत धरले जाणार नाही याची दक्षता घेतली जाते,अशाने मिडियाविकि पृथकक पासून पाईप ’लपविला’जातो . पर्यायाने ,जरी हे कमी आकलनक्षम आणि अधिक त्रुटी-शक्य असले, raw HTML सारणी विधान वापरले जाऊ शकते.
Tip for wiki admins: HTML tidy वापरून HTML सारणी संकेतन (आणि इतर raw HTML input) ची विश्वासार्हता तुम्ही वाढवु शकता. पहा Installing Tidy आणि $wgUseTidy. |
Tip for wiki admins: पाईप अक्षरचिन्हास हाताळणे सोपे जाण्याकरिता तुम्हीPipe Escape विस्तारसुद्धा वापरू शकता . |
Stripping whitespace व्हाईटस्पेस स्ट्रिपींग
[संपादन]Whitespace, including newlines, tabs, आणि spaces, is stripped from the beginning आणि end of all the parameters of these पृथकक कारके. If this is not desirable, adding any non-whitespace characters (including the HTML encoding for a whitespace character, invisible Unicode characters such as the zero-width space or direction marks, or sequences recognised आणि stripped by the मिडियाविकि parser such as <nowiki/>) will prevent further stripping:
{{#जरसम: foo | foo | समान | अ समान }}
- → समान
{{#जरसम:  foo   |   foo  | समान | अ समान }}
- → समान
{{#जरसम: <nowiki/>foo <nowiki/> | <nowiki/> foo<nowiki/> | समान | अ समान }}
- → अ समान
हेसुद्धा पहा
[संपादन]लेखात प्रयूक्त संज्ञा
[संपादन]शब्दाचा विशेष संदर्भ/अर्थ छटा
[संपादन]प्रयूक्त शब्द | विशेष संदर्भ/अर्थ छटा | व्याख्या |
Extension | विस्तार | |
:Parser | पृथकक | |
Functions | कारक | A routine that receives zero or more arguments and may return a result. |
syntax | विधान | The formal rules of formulating the statements of a computer language. |
string | सूत्र | sequence of characters in computing |
Application | उपयोगिता | |
routine | परिपाठ | A set of instructions designed to perform a specific task; a subroutine |
argument | हेतू/प्रयोजन | A value, or reference to a value, passed to a function.; A parameter in a function definition; a formal argument. |
parameter | प्रचल-हेतुक/योजक | A name in a function or subroutine definition that is replaced by, or bound to, the corresponding actual argument when the function or subroutine is called. |
value | मोलमूल्य/मुल्यांक | numerical quantity measured or assigned or computed |
default | अविचल | |
static | ||
आज्ञावली | ||
Code | संकेतन) | |
Configuration | स्वरूपण | |
Constant | अचल | |
variable | चर/चल | |
slashes | ||
Operator | चालक | (mathematics) a symbol or function representing a mathematical operation ;A function or other mapping that carries variables defined on a domain into another variable or set of variables in a defined range. |
boolean | दुवद | (logic, computing) Pertaining to data items that can have “true” and “false” (or, equivalently, 1 and 0 respectively) as their only possible values and to operations on such values.; of or relating to a combinatorial system devised by George Boole that combines propositions with the logical operators AND and OR and IF THEN andand EXCEPT and NOT |
boolean value | In computer science, the Boolean data type, sometimes called logical data type, is a primitive data type having one of two values: true or false. | |
इंग्रजी मराठी संज्ञा
[संपादन]येथे कृपया मुळ इंग्रजी वाक्ये टाका.भाषांतरात चुकुन गाळल्या गेलीत.provides ten additional parser functions to supplement the which are already present in . All the... provided by this take the form: | पृथकक कारकांचा (पार्सर फंक्शन्स) विस्तार(एक्सटेंशन) [विशीष्ट अर्थ पहा] हा जादुई शब्दास मिडियाविकि मध्ये सध्या अस्तित्वात असलेल्या पृथकक कारकांस जोड म्हणुन, दहा अतिरिक्त पृथकक कारके प्रस्तुत करतो.या विस्ताराद्वारे प्रस्तुत ही सर्व पृथकक कारके या प्रमाणे रुप घेतात: |
This function evaluates a mathematical expression returns the calculated value. | ही क्रिया गणितीय विधानाची ची किंमत ठरवुन आणि आकडेमोड करून काढलेली किंमत परत देते. |
The available operators are listed to the right, in order of precedence. See Help:Calculation for more details of the function of each operator. The accuracy and format of the result returned will vary depending on the operating system of the server running the wiki, and the number format of the site language. | उपलब्ध चालकांची उजव्या बाजुस यादी दिलेली आहे.प्रत्येक चालकांच्या कारकांची अधिक माहिती जाणण्यासाठी:मदत पहा.मिळालेल्या प्रत्येक निकालाची अचुकता व पद्धत विकि चालवणार्या सर्व्हरच्या चालक प्रणाली नुसार आणि त्यावर स्थित भाषेने अंगीकारलेल्या अंकपद्धतीनुसार बदलते. |
When evaluating using boolean algebra, zero evaluates to false आणि any nonzero value, positive or negative, evaluates to true: | बूलियन बीजगणित वापरुन किंमत काढण्यात, शुन्य टाकल्यास ते असत्य आणि कोणतीही शुन्याव्यतिरिक्त किंमत (अधिक वा उणे) टाकल्यास ते सत्य विधान ठरते. |
An empty input expression returns an empty string. Invalid expressions return one of several error messages, which can be caught using the #जरत्रुटी: function: | टाकलेले रिक्त विधान हे रिक्त सुत्र परत देते.किंमतशुन्य विधान हे चुकिमुळे उत्पन्न होणार्या संदेशांपैकी एक संदेश देते ज्यास, #जरत्रुटी: कारकाने चुक शोधता येते. |
Warning: Some expressions may invoke floating-point errors when used with very large or very small numbers: | ताकिद: काही विधाने, जर ती अति मोठ्या वा अति लहान आकड्यांसह वापरल्या गेल्यास, तरंग बिंदु चुकास उद्युक्त करु शकतात. |
3259 in most cases, but may occasionally give -6357. This varies with the specification आणि configuration of the server running the wiki. पहा bug 6356. | बहुतेक प्रकरणात,(चुक क्र.)३२५९,परंतु कधीकधी,(चुक क्र.)६३५७. विकि चालविणार्या सर्व्हरच्या मानके आणि स्वरुपण(मेळवणी?) नुसार ती बदलु शकतात. |
This function tests whether the first parameter is 'non-empty'. It evaluates to false if the test string is empty or contains only whitespace characters (space, newline, etc). | हा कारक, प्रथम योजक हे अरिक्त आहे काय हे तपासतो. जर तपास सुत्र रिक्त असल्यास वा फक्त श्वेतजागा characters (रिक्तजागा,नवीओळ इत्यादी) तेथे असल्यास असत्य मुल्यांकन करतो. |
The test string is always interpreted as pure text, so mathematical expressions are not evaluated: | तपास सुत्रास नेहमी शुद्ध मसुदा म्हणुनच निर्धारण केल्या जाते. यात अंकगणितीय विधाने म्हणुनच मुल्यांकित होत नाहीत. |
Either or both the return values may be omitted: | त्यापैकी वा दोन्हीही परतीच्या किंमती गाळल्या जाउ शकतात. |
for more examples of this parser function. | या पृथकक कारकांवरील उदाहरणांसाठी |
This parser function compares two strings आणि determines whether they are identical. | हे पृथकक कारक दोन सुत्रांची तुलना करते आणि त्यात काही साम्य आहे काय याचे निर्धारण करते. |
If both strings are valid numerical values, the strings are compared numerically: | यात दोन्ही सुत्रात जर अंक वा आकडे असल्यास,त्याची त्यानुसार तुलना होते. |
Otherwise the comparison is made as text; this comparison is case sensitive: | नसल्यास त्याची मसुदा म्हणुनच तुलना होते. ही तुलना ही ठळक संवेदनशील? असते. |
Warning: Text inside <nowiki> tags is hashed within parser functions, resulting in errors: | ताकिदः <nowiki> यामधील ओळखपट्ट्या या.........म्हणुन दिसतात. त्याचा निकाल चुकाम्हणुन दिसतो. |
This function takes an input string आणि returns one of two results; the function evaluates to true if the input string contains an HTML object with class="error", as generated by other पृथकक कारके such as #करण:, #वेळ: आणि #rel2abs:, template errors such as loops आणि recursions, आणि other 'failsoft' parser errors. | हे कारक स्थापन सुत्र(आंतर्ठेव सुत्र)? घेते व या दोहोंपैकी एक निकाल परतविते............ |
This function evaluates a mathematical expression आणि returns one of two strings depending on the boolean value of the result: | हे कारक गणिती ’करण’ म्हणुन मुल्यांकित करते आणि परिणामाच्या boolean value वर आधारीत दोहोंपैकी एक सूत्र (स्ट्रीग) परत देते. |
The expression input is evaluated exactly as for #करण: above, with the same operators being available. The output is then evaluated as a boolean expression. This function is equivalent to one using #जरसम: आणि #करण: only: | मराठी |
An empty input expression evaluates to false: | रिक्त आंतर्ठेव विधान हे असत्य म्हणुन मुल्यांकित होते. |
Either or both the return values may be omitted; no output is given when the appropriate branch is left empty: | यापैकी एक वा दोन्हीही परत किंमती या गाळल्या जाउ शकतात. जर विशिष्ट शाखा रिक्त सोडली तर,काहीच प्रसुत होत नाही. |
This function takes an input string, interprets it as a page title, आणि returns one of two values depending on whether or not the page exists on the local wiki. | मराठी |
The function evaluates to true if the page exists, whether it contains content, is visibly blank (contains meta-data such as category links or जादुई शब्द, but no visible content), is blank, or is a redirect. Only pages that are redlinked evaluate to false, including if the page used to exist but has been deleted. | मराठी |
The function evaluates to true for system messages that have been customised, आणि for special pages that are defined by the software. | मराठी |
#जरअसेल: is considered an "expensive parser function", only a limited number of which can be included on any one page (including functions inside transcluded templates). When this limit is exceeded, the page is categorised into Category:खूप सारे खर्चिक पार्सर क्रिया कॉल्स असणारी पाने, आणि any further #जरअसेल: functions automatically return false, whether the target page अस्तित्वात आहे or not. | मराठी |
Tip for wiki admins: Configure the maximum number of allowed expensive parser functions using the $wgExpensiveParserFunctionLimit variable. | विकिप्रचालकांकरीता सुचना: |
If a page checks a target using #जरअसेल:, then that page will appear in the विशेष:येथे काय जोडले आहे list for the target page. So if the code were included live on this page (सहाय्य:विस्तार:पृथकककारके), विशेष:येथे काय जोडले आहे/Foo will list सहाय्य:विस्तार:पृथकककारके. | मराठी |
On wikis using a shared media repository, #जरअसेल: can be used to check if a file has been uploaded to the repository, but not to the wiki itself: | मराठी |
If a local description page has been created for the file, the result is अस्तित्वात आहे for all of the above. | मराठी |
This function converts a relative file path into an absolute filepath. | मराठी |
Within the path input, the following syntax is valid: | मराठी |
If the base path is not specified, the full page name of the page will be used instead: | मराठी |
Invalid syntax, such as /. or /./, is ignored. Since no more than two consecutive full stops are permitted, sequences such as these can be used to separate successive statements: | मराठी |
This function compares one input value against several test cases, returning an associated string if a match is found. | मराठी |
The default result is returned if no case string matches the comparison string. In this syntax, the default result must be the last parameter आणि must not contain a raw equals sign. Alternatively, the default result may be explicitly declared with a case string of "#default"; default results declared in this way may be placed anywhere within the function: | मराठी |
If no match is made, no content is added. It is possible to have 'fall through' values, where several case strings return the same result string. This minimises duplication. | मराठी |
Here cases 2, 3 आणि 4 all return result2; cases 6 आणि 7 both return result4 | मराठी |
As with #जरसम:, the comparison is made numerically if both the comparison string आणि the case string being tested are numeric; or as case-sensitive string otherwise. A case string may be empty: | मराठी |
Once a match is found, subsequent cases are ignored: | मराठी |
Warning: "Case" strings cannot contain raw equals signs; instead, create a template at = | ताकिद: |
This parser function takes a date आणि/or वेळ construct आणि formats it according to the syntax given. A date/वेळ object can be specified; the default is the value of the जादुई शब्द 20241122073328 – that is, the time the page was last rendered into HTML. | मराठी |
The list of accepted formatting codes is given in the table to the right. Any character in the formatting string that is not recognised is passed through unaltered. There are also two ways to escape characters within the formatting string: | मराठी |
A backslash followed by a formatting character is interpreted as a single literal character | मराठी |
characters enclosed in double quotes are considered literal characters, आणि the quotes are removed | मराठी |
In addition, the digraph xx is interpreted as a single literal "x". | मराठी |
The date/वेळ object can be in any format accepted by PHP's strtotime() function. Both absolute (eg 20 December 2000) आणि relative (eg +20 hours) times are accepted. | मराठी |
Warning: The range of acceptable input is January 1 0100 → December 31 9999. Values outside this range will be misinterpreted: | मराठी |
Full or partial absolute dates can be specified; the function will 'fill in' parts of the date that are not specified using the current values: | मराठी |
A four-digit number is interpreted as hours आणि minutes if possible, आणि otherwise as year: | मराठी |
A six-digit number is interpreted as hours, minutes आणि seconds if possible, but otherwise as an error (not, for instance, a year आणि month): | मराठी |
Warning: The fill-in feature is not consistent; some parts are filled in using the current values, others are not: | मराठी |
This function is identical to ..., except that it uses the local वेळ of the wiki (as set in $wgLocaltimezone) when no date is given. | मराठी |
हे कारक पानशीर्षकाचे slashes नूसार विभागणी करते, आणि त्यातीलच काही विभाग output म्हणून परत देते. | मराठी |
Negative values are accepted for both values. Negative values for number of segments effectively 'strips' segments from the end of the string. Negative values for first segment translates to "add this value to the total number of segments", loosely equivalent to "count from the right": | मराठी |
The string is split a maximum of 25 times; further slashes are ignored. The string is also limited to 255 characters, as it is treated as a page title: | सूत्रिका जास्तितजास्त २५ वेळा विभागली जाऊ शकते,त्यापुढील slashes ignore केले जातात.सूत्रिका पान शिर्षक गृहीत धरली गेल्यामूळे २५५ कॅरेक्टर पर्यंत मर्यादित केलेल्या आहेत. |
Whitespace, including newlines, tabs, आणि spaces, is stripped from the beginning आणि end of all the parameters of these पृथकक कारके. If this is not desirable, adding any non-whitespace characters (including the HTML encoding for a whitespace character, invisible Unicode characters such as the zero-width space or direction marks, or sequences recognised आणि stripped by the मिडियाविकि parser such as ) will prevent further stripping: | मराठी |
इंग्रजी | मराठी |
इंग्रजी | मराठी |
इंग्रजी | मराठी |
इंग्रजी | मराठी |