Help:Magic words/fa

Magic words are strings of text that MediaWiki associates with a return value or function, such as time, site details, or page names. This page explains only the standard magic words; for a technical reference, see.

سه نوع عمومی از واژه‌های جادوئی وجود دارد:


 * Behavior switches: these are uppercase words surrounded by double underscores, e.g. __FOO__.


 * Variables: these are uppercase words surrounded by double braces, e.g.  . As such, they look a lot like templates.


 * Parser functions: these take parameters and are either of the form   or  . See also.

اژه‌های جادوئی مربوط به صفحه‌ها، تاثیر یا مقداری برای صفحهٔ کنونی (به طور پیش‌فرض) بر می‌گردانند. حتی اگر واژه به صورت یک الگو اضافه شود و یا شامل یک پیام نرم‌افزاری باشد.

تغییردهنده‌های رفتار
تغییردهنده‌های رفتار، طرح و یا رفتار یک صفحه را کنترل می‌کنند و اغلب برای مشخص کردن اجزا و یا حذفیات مورد نظر به کار می‌روند.

متغیرها
Variables return information about the current page, wiki, or date. Their syntax is similar to templates. Variables marked as " [expensive] " are tracked by the software, and the number that can be included on a page is limited.

If a template name conflicts with a variable, the variable will be used (so to transclude the template    :PAGENAME you would need to write  ). In some cases, adding parameters will force the parser to invoke a template; for example,  transcludes     :CURRENTDAYNAME, not the variable.

تاریخ و زمان
متغیرهای مقابل زمان و تاریخ فعلی را برحسب زمان یوتی‌سی برمی‌گردانند.

به خاطر حافظه نهان مرورگر و مدیاویکی، این متغیرها اغلب زمانی را نشان می‌دهند که صفحه در حافظه ذخیره شده است به جای آنکه زمان فعلی را نمایش دهند.

The date and time magic words are formatted in the wiki content language. Since, they depend on the page content language.

متغیرهای مقابل نیز همانند متغیرهای بالا کار می‌کنند، با این تفاوت از پیکربندی خدمات‌دهندهٔ تارنما یا $wgLocaltimezone استفاده می‌کنند.

For more thorough time formatting, you may want to install to use the #time parser function.

فراداده‌های فنی
توجه: متغیرهای مربوط به نسخه، اطلاعات مربوط به آخرین نسخهٔ صفحهٔ فعلی را برمی‌گردانند، حتی اگر در حال مشاهدهٔ نسخه‌های قدیمی‌تر صفحه باشیم.

آمار
Numbers returned by these variables normally contain separators (commas, dots or spaces, depending on the local language), but can return raw numbers with the ":R" flag (for example,  &rarr;  and   &rarr; ).

Use "|R" for magic words that require a parameter like PAGESINCATEGORY (for example  and , or   and  ). Also applicable to  hereinbefore.

The number magic words are formatted in the wiki content language. Since, it depends on the page content language.

نام‌های صفحه‌ها
The  and   magic words only work in namespaces that have subpages enabled. See for information on enabling subpages.

As of, these can all take a parameter, allowing specification of the page to be operated on, instead of just the current page:
 * &rarr; 

Page titles containing certain characters, such as apostrophes  or asterisks , may produce unexpected results when handled with these magic words, e.g.  . See bugs , , , and. One simple way to fix this is wrapping the pagename in  from the ParserFunctions extension.

For example, if page name is "L'Aquila", the following code will produce the string "Numeric char encoding":

URL encoded page names
The following are equivalents encoded for use in MediaWiki URLs (i.e. spaces replaced with underscores and some characters HTML escaped using numeric character encoding):



Note that,   and   have distinct implementations. See Manual:PAGENAMEE encoding for details.

فضاهای نامی
The following are equivalents encoded for use in MediaWiki URLs (spaces replaced with underscores and some characters percent-encoded):



As of, these can take a full-page-name parameter and will return the requested namespace associated with that page, instead of with the current page:

Parameter must not be a namespace name:
 * &rarr; 
 * &rarr; 
 * &rarr; 
 * &rarr;   (Empty)

توابع تجزیه‌گر
Parser functions are very similar to variables, but take one or more parameters (technically, any magic word that takes a parameter is a parser function), and the name is sometimes prefixed with a hash to distinguish them from templates.

This page only describes parser functions that are integral to the MediaWiki software. Other parser functions may be added by MediaWiki extensions such as the. For those see.

فضاهای نامی
returns the current localized name for the namespace with that index, canonical name, or local alias. Thus,  , and   (an old name for the File namespace) all return "    ". On a wiki where the content language is French,  is also valid, but   (the localisation of "File" in German) is not.

is the equivalent encoded for MediaWiki URLs. It does the same, but it replaces spaces with underscores, making it usable in external links.

Don't confuse localised namespaces with custom namespaces.

قالب بندی
See also:.

Localization
Here are the magic words which are used as main localisation tools. Other magic words will often depend on the wiki's locale and configuration or on the chosen language: see in particular #Date and time, #Formatting, #Miscellaneous. More magic words are added by the.

The usage of these magic words can be very complex, and the documentation is currently incomplete; there's some more info on PLURAL, GRAMMAR, GENDER.

Transclusion modifiers
usually transcludes another page, by default from the Template:namespace. These magic words modify that behavior.