پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
ویکیهزاره
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:Main other/توضیحات
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
{{documentation subpage}} {{high-risk| 2,000,000+ }} {{template shortcut|ns0}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is the {{tl|main other}} meta-template. This template helps other templates detect if they are on a main space (article) page or some "other" type of page. === Basic usage === This template usually takes two parameters, like this: <pre> {{main other | Article text | Other pages text }} </pre> If the template is on a main space (article) page, it will return this: :{{main other | demospace=main | Article text | Other pages text }} If the template is on any other page, it will return this: :{{main other | Article text | Other pages text }} A typical usage case could be to make it so that a template only adds a category when on an article. Thus not adding other pages that just show the template. Like this: <pre> {{main other | [[Category:Some article maintenance category]] }} </pre> Or to warn that a template should not be used on other pages: <pre> {{main other | | This template should only be used in articles. }} </pre> Note that in the first case above the "other" parameter was not used, and in the second example the "main" parameter was left empty. === Demospace === For testing and demonstration purposes this template can take a parameter named '''demospace'''. * If it has the value '''main''' it returns the article text. * It if has the value '''other''' or any other value such as the name of some other namespace it returns the other pages text. * If the parameter is empty or undefined, the actual page type determines the result. Like this: <pre> {{main other | Article text | Other pages text | demospace = main }} </pre> No matter on what kind of page the code above is used it will return this: :{{main other | Article text | Other pages text | demospace = main }} You can make it so your template also understands the '''demospace''' parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this: <pre> {{main other | Article text | Other pages text | demospace = {{{demospace|}}} }} </pre> === Technical details === This template detects article "Talk:" pages as type '''other'''. This template works like {{tl|main talk other}}, for more examples and technical details see full documentation there. === See also === {{namespace detect see also}} <includeonly> <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> [[رده:الگو:دستکاری فضای نام]] </includeonly>
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ویکیهزاره ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ویکیهزاره:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
صفحههای گنحاندهشده در این صفحه:
الگو:Documentation subpage
(
ویرایش
)
الگو:High-risk
(
ویرایش
)
الگو:Main other
(
ویرایش
)
الگو:Mbox
(
ویرایش
)
الگو:Namespace detect see also
(
ویرایش
)
الگو:Template shortcut
(
ویرایش
)
الگو:Tl
(
ویرایش
)
الگو:الگو
(
ویرایش
)
الگو:تغییرمسیر ممنوع
(
ویرایش
)
الگو:زیرصفحه توضیحات
(
ویرایش
)
الگو:فهرست ساده/styles.css
(
ویرایش
)
الگو:میانبر/styles.css
(
ویرایش
)
الگو:میانبر الگو
(
ویرایش
)
الگو:پراستفاده
(
ویرایش
)
پودمان:Arguments
(
ویرایش
)
پودمان:High-use
(
ویرایش
)
پودمان:List
(
ویرایش
)
پودمان:Message box
(
ویرایش
)
پودمان:Message box/configuration
(
ویرایش
)
پودمان:Message box/ombox.css
(
ویرایش
)
پودمان:Numeral converter
(
ویرایش
)
پودمان:Shortcut
(
ویرایش
)
پودمان:Shortcut/config
(
ویرایش
)
پودمان:TableTools
(
ویرایش
)
پودمان:Transclusion count
(
ویرایش
)
پودمان:Transclusion count/data/M
(
ویرایش
)
پودمان:Yesno
(
ویرایش
)
جستجو
جستجو
در حال ویرایش
الگو:Main other/توضیحات
افزودن مبحث