Help:Magic words/fa
واژههای جادوئی رشتههای از متن هستند که در نرمافزار مدیاویکی با بازگشت یک مقدار و تابع از جمله زمان، جزئیات تارنما و یا نامهای صفحه همراه است. این صفحه راهنمای کاربرد واژههای جادوئی استاندارد است؛ برای جزئیات فنی Manual:Magic words را ببینید.
| نامهای جادوئی فارسی فقط در ویکیهای فارسی اعمال میشوند، در عین حال نامهای جادوئی انگلیسی را میتوان در تمامی ویکیها به کار برد. |
سه نوع عمومی از واژههای جادوئی وجود دارد:
- تغییر دهندههای رفتار:' این نوع واژههای جادوئی در زبان انگلیسی با حروف بزرگ نوشته میشوند و با دو زیرخط احاطه شدهاند، __مثال__.
- متغیرها: این نوع واژههای جادوئی در زبان انگلیسی با حروف بزرگ نوشته میشوند و با دو آکولاد احاطه میشوند،
{{مثال}}. و همانند الگوها به نظر میرسند. - توابع تجزیهگر: ایم نوع واژههای جادوئی به یکی از حالتهای
{{مثال:...}}یا{{#مثال:...}}وجود دارند. همچنین Help:Extension:ParserFunctions را ببینید.
واژههای جادوئی مربوط به صفحهها، تاثیر یا مقداری برای صفحهٔ کنونی (به طور پیشفرض) بر میگردانند. حتی اگر واژه به صورت یک الگو اضافه شود و یا شامل یک پیام نرمافزاری باشد.
Contents |
تغییردهندههای رفتار [edit]
تغییردهندههای رفتار، طرح و یا رفتار یک صفحه را کنترل میکنند و اغلب برای مشخص کردن اجزا و یا حذفیات مورد نظر به کار میروند.
| واژهها | توضیحها | نسخهها |
|---|---|---|
| جدول محتویات | ||
__بیفهرست____NOTOC__ |
مخفی کردن جدول محتویات (Table Of Contents). | |
__بافهرست____FORCETOC__ |
مجبور کردن جدول محتوا برای نمایش به حالت عادی (در بالای اولین سر عنوان). | |
__فهرست____TOC__ |
قرار دادن جدول محتوا در موقعیت فعلی واژه (اگر چندین واژه استفاده شده باشد در موقعیت اولین واژه قرار میگیرد). | |
| ویرایش | ||
__بیبخش____NOEDITSECTION__ |
پیوندهای ویرایش بخش را در کنار سر عنوانها مخفی میکند | |
__بخشجدید____NEWSECTIONLINK__ |
یک پیوند (به طور پیشفرض «+») در کنار سربرگ «ویرایش» برای افزودن بخش جدید در صفحههای غیر بحث میافزاید (افزودن یک بخش در پایان را ببینید). | +۱/۷ |
__بیپیوندبخش____بیپیوندبخشجدید____NONEWSECTIONLINK__ |
پیوند بخش جدید کنار سربرگ «ویرایش» را در صفحههای بحث، حذف میکند. | +۱/۱۵ |
| ردهها | ||
__بینگارخانه____NOGALLERY__ |
در ردهها به کار میرود و تصاویر بدانگشتی را با پیوندهای عادی جایگزین میکند. | +۱/۷ |
__ردهپنهان____HIDDENCAT__ |
در ردهها به کار میرود و رده را پنهان نگه میدارد (در صفحهٔ ترجیحات کاربری گزینهای برای نمایش آن وجود دارد). | +۱/۱۳ |
| تبدیل زبان | ||
__محتواتبدیلنشده____NOCONTENTCONVERT____NOCC__ |
On wikis with language variants, don't perform any content language conversion (character and phase) in article display; for example, only show Chinese (zh) instead of variants like zh_cn, zh_tw, zh_sg, or zh_hk. | |
__عنوانتبدیلنشده____NOTITLECONVERT__ |
On wikis with language variants, don't perform language conversion on the title (all other content is converted). | |
| دیگر | ||
__START____شروع__ |
بدون تأثیر. | |
__END____پایان__ |
Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace. Removed in 19213. | ۱/۱ تا ۱/۸ |
__نمایه____INDEX__ |
Tell search engines to index the page (overrides $wgArticleRobotPolicies, but not robots.txt). | +۱/۱۴ |
__بینمایه____NOINDEX__ |
Tell search engines not to index the page (ie, do not list in search engines' results). | +۱/۱۴ |
__تغییرمسیرثابت____STATICREDIRECT__ |
On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "Update any redirects that point to the original title". | +۱/۱۳ |
متغیرها [edit]
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 Template:PAGENAME you would need to write {{Template:PAGENAME}}). In some cases, adding parameters will force the parser to invoke a template; for example, {{CURRENTDAYNAME|x}} transcludes Template:CURRENTDAYNAME, not the variable.
تاریخ و زمان [edit]
متغیرهای مقابل زمان و تاریخ فعلی را برحسب زمان یوتیسی برمیگردانند.
به خاطر حافظه نهان مرورگر و مدیاویکی، این متغیرها اغلب زمانی را نشان میدهند که صفحه در حافظه ذخیره شده است به جای آنکه زمان فعلی را نمایش دهند.
| متغیر | خروجی | توضیحها | نسخهها |
|---|---|---|---|
| سال | |||
{{CURRENTYEAR}}{{سالکنونی}}{{سال}}{{سال_کنونی}} |
2013 | سال | |
| ماه | |||
{{CURRENTMONTH}}{{ماه}}{{ماهکنونی}}{{ماه_کنونی}} |
05 | شماره ماه (با صفر اضافه) | |
{{CURRENTMONTHNAME}}{{نامماه}}{{نام_ماه}}{{نامماهکنونی}}{{نام_ماه_کنونی}} |
May | نام ماه | |
{{CURRENTMONTHNAMEGEN}}{{نامماهاضافه}}{{نام_ماه_اضافه}}{{نامماهکنونیاضافه}}{{نام_ماه_کنونی_اضافه}} |
May | نام ماه (حالت اضافه) | |
{{CURRENTMONTHABBREV}}{{مخففنامماه}}{{مخفف_نام_ماه}} |
May | نام ماه (مخفف) | +۱/۵ |
| روز | |||
{{CURRENTDAY}}{{روز}}{{روزکنونی}}{{روز_کنونی}} |
20 | شماره روز ماه (بدون صفر اضافه) | |
{{CURRENTDAY2}}{{روز۲}}{{روز_۲}} |
20 | شماره روز ماه (با صفر اضافه) | +۱/۶ |
{{CURRENTDOW}}{{روزهفته}}{{روز_هفته}} |
1 | شماره روز هفته (بدون صفر اضافه) | |
{{CURRENTDAYNAME}}{{نامروز}}{{نام_روز}} |
Monday | روز هفته (نام) | |
| ساعت | |||
{{CURRENTTIME}}{{زمانکنونی}}{{زمان_کنونی}} |
22:03 | زمان (۲۴ساعت به حالت HH:mm) | |
{{CURRENTHOUR}}{{ساعت}}{{ساعتکنونی}}{{ساعت_کنونی}} |
22 | ساعت (۲۴-ساعت با صفر اضافه) | |
| دیگر | |||
{{CURRENTWEEK}}{{هفته}} |
21 | هفته (عدد) | |
{{CURRENTTIMESTAMP}}{{زمانیونیکسی}}{{زمان_یونیکسی}} |
20130520220352 | برچسب زمان به حالت YYYYMMDDHHmmss | +۱/۷ |
متغیرهای مقابل نیز همانند متغیرهای بالا کار میکنند، با این تفاوت از پیکربندی خدماتدهندهٔ تارنما یا $wgLocaltimezone استفاده میکنند.
{{LOCALYEAR}}،{{سالمحلی}}،{{سال_محلی}}{{LOCALMONTH}}،{{ماهمحلی}}،{{ماه_محلی}}{{LOCALMONTHNAME}}،{{نامماهمحلی}}،{{نام_ماه_محلی}}{{LOCALMONTHNAMEGEN}}،{{نامماهمحلیاضافه}}،{{نام_ماه_محلی_اضافه}}{{LOCALMONTHABBREV}}،{{مخففماهمحلی}}،{{مخفف_ماه_محلی}}{{LOCALDAY}}،{{روزمحلی}}،{{روز_محلی}}{{LOCALDAY2}}،{{روزمحلی۲}}،{{روز_محلی_۲}}{{LOCALDOW}}،{{روزهفتهمحلی}}،{{روز_هفته_محلی}}{{LOCALDAYNAME}}،{{نامروزمحلی}}،{{نام_روز_محلی}}{{LOCALTIME}}،{{زمانمحلی}}،{{زمان_محلی}}{{LOCALHOUR}}،{{ساعتمحلی}}،{{ساعت_محلی}}{{LOCALWEEK}}،{{هفتهمحلی}}،{{هفته_محلی}}{{LOCALTIMESTAMP}}،{{زمانیونیکسیمحلی}}،{{زمان_یونیکسی_محلی}}
- برای توابع قالببندی زمانی بیشتر باید افزونه توابع تجزیهگر بر روی ویکی نصب باشد تا بتوانید از توابع تجزیهگر زمان استفاده کنید.
فرادادههای فنی [edit]
توجه: متغیرهای مربوط به نسخه، اطلاعات مربوط به آخرین نسخهٔ صفحهٔ فعلی را برمیگردانند، حتی اگر در حال مشاهدهٔ نسخههای قدیمیتر صفحه باشیم.
| متغیر | خروجی | توضیحها | نسخهها |
|---|---|---|---|
| تارنما | |||
{{SITENAME}}{{ناموبگاه}}{{نام_وبگاه}} |
MediaWiki | نام تارنمای ویکی ($wgSitename). | |
{{SERVER}}{{سرور}}{{کارساز}} |
//www.mediawiki.org | نشانی دامنه ($wgServer) | |
{{SERVERNAME}}{{نامکارساز}}{{نام_کارساز}}{{نامسرور}}{{نام_سرور}} |
www.mediawiki.org | نام دامنه (دیگر وابسته به $wgServerName نیست، از نسخهٔ ۱/۱۷ به بعد) | |
{{DIRMARK}}{{DIRECTIONMARK}}{{علامتجهت}}{{علامت_جهت}} |
|
Outputs a unicode-directional mark that matches the wiki's default language's direction (‎ on left-to-right wikis, ‏ on right-to-left wikis), useful in text with multi-directional text. |
+۱/۷ |
{{SCRIPTPATH}}{{مسیرسند}}{{مسیر_سند}} |
/w | relative script path ($wgScriptPath) | |
{{STYLEPATH}}{{مسیرسبک}}{{مسیر_سبک}} |
//bits.wikimedia.org/static-1.22wmf4/skins | relative style path ($wgStylePath) | +۱/۶ |
{{CURRENTVERSION}}{{نسخهکنونی}}{{نسخه_کنونی}} |
1.22wmf4 (8ee5f21) | The wiki's MediaWiki version. | +۱/۷ |
{{CONTENTLANGUAGE}}{{CONTENTLANG}}{{زبانمحتوا}}{{زبان_محتوا}} |
en en |
The wiki's default interface language ($wgLanguageCode) | +۱/۷ |
| آخرین نسخهٔ صفحه | |||
{{REVISIONID}}{{نسخه}}{{شمارهنسخه}}{{شماره_نسخه}} |
492205 | Unique revision ID | +۱/۵ |
{{REVISIONDAY}}{{روزنسخه}}{{روز_نسخه}} |
30 | Day edit was made (unpadded number) | +۱/۸ |
{{REVISIONDAY2}}{{روزنسخه۲}}{{روز_نسخه۲}}{{روز_نسخه_۲}} |
30 | Day edit was made (zero-padded number) | +۱/۸ |
{{REVISIONMONTH}}{{ماهنسخه}}{{ماه_نسخه}} |
01 | Month edit was made (zero-padded number as of +۱/۱۷, unpadded number in prior versions) | +۱/۸ |
{{REVISIONMONTH1}}{{ماهنسخه۱}}{{ماه_نسخه_۱}} |
1 | Month edit was made (unpadded number) | +۱/۱۷ |
{{REVISIONYEAR}}{{سالنسخه}}{{سال_نسخه}} |
2012 | Year edit was made | +۱/۸ |
{{REVISIONTIMESTAMP}}{{زمانیونیکسینسخه}}{{زماننسخه}}{{زمان_یونیکسی_نسخه}}{{زمان_نسخه}} |
20120130165009 | Timestamp as of time of edit | +۱/۸ |
{{REVISIONUSER}}{{کاربرنسخه}}{{کاربر_نسخه}} |
Fg68at | The username of the user who made the most recent edit to the page, or the current user when previewing an edit | +۱/۱۵ |
{{PAGESIZE:نام صفحه}}{{اندازهصفحه:نام صفحه}}{{اندازه_صفحه:نام صفحه}}{{PAGESIZE:نام صفحه|ن}} |
47,434 47434 |
[expensive] Returns the byte size of the specified page. Use "|R" to get raw numbers. |
+۱/۱۳ |
{{PROTECTIONLEVEL:action}}{{سطححفاطت:فعالیت}}{{سطح_حفاظت:فعالیت}} |
سطح حفاظت | Outputs the protection level (e.g. 'autoconfirmed', 'sysop') for a given action (e.g. 'edit', 'move') on the current page or an empty string if not protected. | +۱/۱۵ |
| تأثیرها در محتوای صفحهها | |||
{{DISPLAYTITLE:عنوان}}{{عنوانظاهری:عنوان}}{{عنوان_ظاهری:عنوان}} |
Format the current page's title header. The value must be equivalent to the default title: only capitalization changes and replacing spaces with underscores. It can be disabled or enabled by $wgAllowDisplayTitle; disabled by default before 1.10+, enabled by default thereafter. | +۱/۷ | |
{{DEFAULTSORT:کلید جور سازی}}{{DEFAULTSORTKEY:کلید جور سازی}}{{DEFAULTCATEGORYSORT:کلید جور سازی}}{{ترتیب:کلید جور سازی}}{{ترتیبپیشفرض:کلید جور سازی}}{{ترتیب_پیش_فرض:کلید جور سازی}} |
Used for categorizing pages, sets a default category sort key. For example if you put {{DEFAULTSORT:Smith, John}} at the end of John Smith, the page would be sorted under "S" by default in categories. |
+۱/۱۰ | |
آمار [edit]
Numbers returned by these variables normally contain separators (commas or spaces, depending on the local language), but can return raw numbers with the ":R" flag (for example, {{NUMBEROFPAGES}} → 90,156 and {{NUMBEROFPAGES:R}} → 90156). Use "|R" for magic words that require a parameter like PAGESINCATEGORY (for example {{PAGESINCATEGORY:Help}} and {{PAGESINCATEGORY:Help|R}}). Also applicable to {{PAGESIZE:page name}} above.
| متغیر | خروجی | توضیحها | نسخهها |
|---|---|---|---|
| سراسر ویکی | |||
{{NUMBEROFPAGES}}{{تعدادصفحهها}} |
90,156 | تعداد صفحههای ویکی | +۱/۷ |
{{NUMBEROFARTICLES}}{{تعدادمقالهها}} |
10,489 | تعداد صفحهها در فضای نامی محتوا. | |
{{NUMBEROFFILES}}{{تعدادپروندهها}} |
2,087 | تعداد پروندههای بارگذاری شده | +۱/۵ |
{{NUMBEROFEDITS}}{{تعدادویرایشها}} |
736,550 | تعداد ویرایشهای صفحهها | +۱/۱۰ |
{{NUMBEROFVIEWS}}{{تعدادبازدید}} |
Number of page views. Usually useless on a wiki using caching. | +۱/۱۴ | |
{{NUMBEROFUSERS}}{{تعدادکاربران}} |
906,646 | تعداد کاربران ثبت نام کرده | +۱/۷ |
{{NUMBEROFADMINS}}{{تعدادمدیران}} |
125 | تعداد کاربران در گروه مدیران. | +۱/۷ |
{{NUMBEROFACTIVEUSERS}}{{کاربرانفعال}}{{کاربران_فعال}} |
928 | Number of active users, based on the criteria used in Special:Statistics. | +۱/۱۵ |
{{PAGESINCATEGORY:نام رده}}{{صفحهدررده:نام رده}}{{صفحه_در_رده:نام رده}}{{PAGESINCAT:Help}} |
77 | [expensive] Number of pages in the given category. | +۱/۱۳ |
{{NUMBERINGROUP:نام گروه}}{{NUMINGROUP:نام گروه}}{{تعداددرگروه:نام گروه}} |
27 (اینجا {{NUMBERINGROUP:bureaucrat}} به کار رفته است) |
Number of users in a specific group. | +۱/۱۴ |
{{PAGESINNS:شماره فضای نام}}{{PAGESINNAMESPACE:شماره فضای نام}}{{صفحهدرفضاینام:شماره فضای نام}}{{صفحه_در_فضای_نام:شماره فضای نام}} |
فعال نشده است | Number of pages in the given namespace (replace index with the relevant namespace index). For instance, {{PAGESINNAMESPACE:14}} will output the number of category pages. {{PAGESINNS:0}} differs from {{NUMBEROFARTICLES}} in that the former includes redirects and disambiguation pages. Disabled by default, enable with $wgAllowSlowParserFunctions. |
+۱/۷ |
نامهای صفحهها [edit]
| متغیر | خروجی | توضیحها | نسخهها |
|---|---|---|---|
{{FULLPAGENAME}}{{نامکاملصفحه}}{{نام_کامل_صفحه}} |
Help:Magic words/fa | فضای نامی و عنوان صفحه. | +۱/۶ |
{{PAGENAME}}{{نامصفحه}}{{نام_صفحه}} |
Magic words/fa | عنوان صفحه. | |
{{BASEPAGENAME}}{{نامصفحهمبنا}}{{نام_صفحه_مبنا}} |
Magic words | Page title excluding the current subpage and namespace ("Title/foo" on "Title/foo/bar").
For more complex splitting, use |
+۱/۷ |
{{SUBPAGENAME}}{{نامزیرصفحه}}{{نام_زیرصفحه}} |
fa | The subpage title ("foo" on "Title/foo"). | +۱/۶ |
{{SUBJECTPAGENAME}}{{ARTICLEPAGENAME}}{{نامصفحهموضوع}}{{نام_صفحه_موضوع}} |
Help:Magic words/fa | The namespace and title of the associated subject page. | +۱/۷ |
{{TALKPAGENAME}}{{نامصفحهبحث}}{{نام_صفحه_بحث}} |
Help talk:Magic words/fa | The namespace and title of the associated talk page. | +۱/۷ |
The {{BASEPAGENAME}} and {{SUBPAGENAME}} magic words only work in namespaces that have subpages enabled. See Manual:$wgNamespacesWithSubpages for information on enabling subpages.
The following are equivalents encoded for use in MediaWiki URLs (i.e. spaces replaced with underscores and some characters percent-encoded):
{{FULLPAGENAMEE}}
{{نامکاملصفحهکد}}
{{نام_کامل_صفحه_کد}}{{PAGENAMEE}}
{{نامصفحهکد}}
{{نام_صفحه_کد}}{{BASEPAGENAMEE}}
{{نامصفحهمبناکد}}
{{نام_صفحه_مبنا_کد}}{{SUBPAGENAMEE}}
{{نامزیرصفحهکد}}
{{نام_زیرصفحه_کد}}{{SUBJECTPAGENAMEE}}
{{ARTICLEPAGENAMEE}}
{{نامصفحهموضوعکد}}
{{نام_صفحه_موضوع_کد}}{{TALKPAGENAMEE}}
{{نامصفحهبحثکد}}
{{نام_صفحه_بحث_کد}}
As of +۱/۱۵, these can all take a parameter, allowing specification of the page to be operated on, instead of just the current page:
{{PAGENAME:Template:Main Page}}→ Main Page
Page titles containing certain characters, such as single quotes (') or asterisks *, may produce unexpected results when handled with these magic words, e.g. {{PAGESINCATEGORY:{{PAGENAME}}}}. See bugs 14779, 16474. |
Note that {{PAGENAME}}, {{PAGENAMEE}} and {{urlencode:}} have distinct implementations. See Manual:PAGENAMEE encoding for details.
فضاهای نامی [edit]
| متغیر | خروجی | توضیحها | نسخهها |
|---|---|---|---|
{{NAMESPACE}}{{فضاینام}}{{فضای_نام}} |
Help | نام فضای نامی صفحه | |
{{SUBJECTSPACE}}{{ARTICLESPACE}}{{فضایموضوع}}{{فضایمقاله}}{{فضای_موضوع}}{{فضای_مقاله}} |
Help | نام فضای نامی محتوای مرتبط | +۱/۷ |
{{TALKSPACE}}{{فضایبحث}}{{فضای_بحث}} |
Help talk | نام فضای نامی بحث مرتبط | +۱/۷ |
The following are equivalents encoded for use in MediaWiki URLs (spaces replaced with underscores and some characters percent-encoded):
{{NAMESPACEE}}
{{فضاینامکد}}
{{فضای_نام_کد}}{{SUBJECTSPACEE}}
{{فضایموضوعکد}}
{{فضای_موضوع_کد}}{{TALKSPACEE}}
{{فضایبحثکد}}
{{فضای_بحث_کد}}
As of +۱/۱۵, these can take a page name parameter and will return the namespace of the page name parameter, instead of the current page's:
{{NAMESPACE:Template:Main Page}}→ Template{{SUBJECTSPACE:Template:Main Page}}→ Template{{TALKSPACE:Template:Main Page}}→ Template talk
توابع تجزیهگر [edit]
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 ParserFunctions extension. For those see Help:Extension:ParserFunctions.
دادههای نشانیها [edit]
| تابع تجزیهگر | ورودی ← خروجی | توضیحها | نسخهها |
|---|---|---|---|
{{localurl:page name}}{{localurl:page name|query_string}} |
{{localurl:MediaWiki}} → /wiki/MediaWiki{{localurl:MediaWiki|printable=yes}} → /w/index.php?title=MediaWiki&printable=yes |
The relative path to the title. | |
{{fullurl:page name}}{{fullurl:page name|query_string}}{{fullurl:interwiki:remote page name|query_string}} |
{{fullurl:Category:Top level}} → //www.mediawiki.org/wiki/Category:Top_level
|
The absolute path to the title. This will also resolve Interwiki prefixes. | +۱/۵ |
{{filepath:file name}}{{filepath:file name|nowiki}} |
{{filepath:Wiki.png}} → //upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png
|
The absolute URL to the full size or thumbnail (1.18+) of a media file. | +۱/۱۲ +۱/۱۸ |
{{urlencode:string}} (or {{urlencode:string|QUERY}}){{urlencode:string|WIKI}}{{urlencode:string|PATH}} |
{{urlencode:x y z á é}} (or {{urlencode:x y z á é|QUERY}}) → x+y+z+%C3%A1+%C3%A9{{urlencode:x y z á é|WIKI}} → x_y_z_%C3%A1_%C3%A9{{urlencode:x y z á é|PATH}} → x%20y%20z%20%C3%A1%20%C3%A9
Note that the default changed from |
The input encoded for use in URLs. Note that there is no urldecode function like there is in the obsolete Extension:StringFunctions. | +۱/۷ (یا +۱/۱۷) +۱/۱۷ +۱/۱۷ |
{{anchorencode:string}} |
{{anchorencode:x y z á é}} → x_y_z_.C3.A1_.C3.A9 |
The input encoded for use in URL section anchors (after the '#' symbol in a URL). | +۱/۸ |
فضاهای نامی [edit]
{{ns:}} returns the current localized name for the namespace with that index, canonical name, locale alias or former namespace name. It does not recognize foreign aliases as parameter. {{nse:}} is the equivalent encoded for MediaWiki URLs. It does the same, but it replaces spaces with underscores, making it usable in external links.
| فضاهای نامی محتوا | فضاهای نامی بحث | |||
|---|---|---|---|---|
| کاربرد | خروجی | کاربرد | خروجی | |
{{ns:-2}} or {{ns:Media}} |
Media | |||
{{ns:-1}} or {{ns:Special}} |
Special | |||
{{ns:0}} or {{ns:}} |
{{ns:1}} or {{ns:Talk}} |
Talk | ||
{{ns:2}} or {{ns:User}} |
User | {{ns:3}} or {{ns:User talk}} |
User talk | |
{{ns:4}} or {{ns:Project}} |
Project | {{ns:5}} or {{ns:Project talk}} |
Project talk | |
{{ns:6}} or {{ns:File}} or {{ns:Image}} |
File | {{ns:7}} or {{ns:File talk}} or {{ns:Image talk}} |
File talk | |
{{ns:8}} or {{ns:MediaWiki}} |
MediaWiki | {{ns:9}} or {{ns:MediaWiki talk}} |
MediaWiki talk | |
{{ns:10}} or {{ns:Template}} |
Template | {{ns:11}} or {{ns:Template talk}} |
Template talk | |
{{ns:12}} or {{ns:Help}} |
Help | {{ns:13}} or {{ns:Help talk}} |
Help talk | |
{{ns:14}} or {{ns:Category}} |
Category | {{ns:15}} or {{ns:Category talk}} |
Category talk | |
قالب بندی [edit]
| کاربرد | ورودی ← خروجی | توضیحها | نسخهها |
|---|---|---|---|
{{lc:string}} |
{{lc:DATA CENTER}} → data center |
The lowercase input. | +۱/۵ |
{{lcfirst:string}} |
{{lcfirst:DATA center}} → dATA center |
The input with the very first character lowercase. | +۱/۵ |
{{uc:string}} |
{{uc:text transform}} → TEXT TRANSFORM |
The uppercase input. | +۱/۵ |
{{ucfirst:string}} |
{{ucfirst:text TRANSFORM}} → Text TRANSFORM |
The input with the very first character uppercase. | +۱/۵ |
{{formatnum:unformatted num}}{{formatnum:formatted num|R}} |
{{formatnum:987654321.654321}}→ 987,654,321.654321 {{formatnum:987,654,321.654321|R}}→ 987654321.654321 {{formatnum:00001}}→ 00,001 |
The input with decimal and decimal group separators, and localized digit script, according to the wiki's default locale. The |R parameter can be used to unformat a number, for use in mathematical situations.
|
+۱/۷ +۱/۱۳ |
|
|
|
Formats an unlinked date based on user "Date format" preference, and adds metadata tagging it as a formatted date. For logged-out users and those who have not set a date format in their preferences, dates can be given a default: mdy, dmy, ymd, ISO 8601 (all case sensitive). If only the month and day are given, only mdy and dmy are valid. If a format is not specified or is invalid, the input format is used as a default. If the supplied date is not recognized as a valid date (specifically, if it contains any metadata such as from a nested use of these or similar templates), it is rendered unchanged, and no (additional) metadata is generated.
|
+۱/۱۵ |
{{padleft:xyz|stringlength}}{{padleft:xyz|strlen|char}}{{padleft:xyz|strlen|string}} |
{{padleft:xyz|5}} → 00xyz{{padleft:xyz|5|_}} → __xyz {{padleft:xyz|5|abc}} → abxyz {{padleft:xyz|2}} → xyz{{padleft:|1|xyz}} → x (first character of the string) |
Inserts a string of padding characters (character chosen in third parameter; default '0') of a specified length (second parameter) next to a chosen base character or variable (first parameter). The final digits or characters in the base replace the final characters in the padding; i.e. {{padleft:44|3|0}} produces 044. The padding string may be truncated if its length does not evenly divide the required number of characters.bug (fixed in r45734): multibyte characters are interpreted as two characters, which can skew width. These also cannot be used as padding characters. |
+۱/۸ |
{{padright:xyz|stringlength}}{{padright:xyz|strlen|char}}{{padright:xyz|strlen|string}} |
{{padright:xyz|5}} → xyz00
|
Identical to padleft, but adds padding characters to the right side. | |
{{plural:2|is|are}} |
{{plural:0|is|are}} → are{{plural:1*1|is|are}} → is{{plural:21 mod 10|is|are}} → are{{plural:{{#expr:21 mod 10}}|is|are}} → is{{plural:1|is|are}} → is{{plural:2|is|are}} → are(for Polish): {{plural:2|milion|miliony|milionów}} → miliony |
Outputs the singular form (second parameter) if the first parameter is an expression equalling one; the plural form (third parameter) otherwise. Plural transformations are used for languages like Russian based on "count mod 10". You should not expect this to handle fractions (like 44.5) — see bug 28128. | |
{{grammar:N|noun}} |
Outputs the correct inflected form of the given word described by the inflection code after the colon (language-dependent). Grammar transformations are used for inflected languages like Polish. See also Manual:$wgGrammarForms. | +۱/۷ |
متفرقه [edit]
| کاربرد | خروجی | توضیحها | نسخهها |
|---|---|---|---|
{{int:message name}} |
{{int:edit}} → Edit(depends on user language, try: fr •ja) |
Internationalizes (translates) the given interface (MediaWiki namespace) message into the user language. Note that this can damage/confuse cache consistency, see bug 14404. | |
{{#language:language code}}
|
language code العربية language code Arabic |
The full name of the language for the given language code: native name by default, name translated in target language if a target language code is specified. Codes are in accordance with ISO 639. | +۱/۷
+۱/۹ (ترجمه) |
{{#special:special page name}} |
No such special page Special:UserLogin |
The localized name for the given canonical Special: page. | +۱/۹ |
{{#tag:tagname |
(depends on parser tag) | Alias for XML-style parser or extension tags, but parsing wiki code. Inner content can be passed as first parameter, and attributes as subsequent ones:
هشدار : You must write |
+۱/۱۲ |
{{gender:username |
(depends on the named user's gender) | A switch for the gender set in Special:Preferences Note: If 3rd parameter is omitted and user hasn't defined his/her gender, then |
+۱/۱۵ |
| :زبان | English • dansk • Deutsch • Zazaki • español • فارسی • français • Bahasa Indonesia • 日本語 • 한국어 • मराठी • português • português do Brasil • русский • slovenčina • Türkçe |
|---|