پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
ویکیهزاره
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:Hands/numdisp/frac
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
<noinclude>{{Pp-template|small=yes}}<!-- --============================================================ -- Process fraction parts by negative/zero/positive (-1,0,1) --============================================================ -- (see NOTES below) --></noinclude>{{hands/numdisp/frac{{ #expr:( {{{2|-6-3}}}*0>0 or {{#ifeq: 0+ |{{padleft:|2|{{{2|-6-3}}}x }} |1 |0}} ) - ( {{{2|-6-3}}}*0<0) }} |{{{2|-6-3}}}|{{#expr:{{{2|-6-3}}}*0}}|{{#expr:0*{{{2|-6-3}}}}}|{{{3|8}}}}}<noinclude><!-- -------------------------------------------------------------- --NOTES: -- [ These comments are skipped by <noinclude> and not sent -- in formatted Internet pages, only during edit. ] -- --NOTE A1: This template handles a number+fraction, for display, -- based on amount as negative/0/positive, using -1/0/1 as -- suffix: #expr:( {{{2|6+3}}}*0>0) - ( {{{2|6+3}}}*0<0) so -- positives are /frac1, zero as /frac0, negatives /frac-1 -- without using a nested if-statement to choose 1/0/-1. -- During 2009-2010 templates were restricted to if-logic -- nested within depth of only a 40-level limit. -- --NOTE P2: The parameters, as fraction parts, expect input like -- #titleparts splitting a number at "/" (slash), where -- parameter 1 - is the original number (like 6+3/8) -- parameter 2 - is left of slash (6+3) -- parameter 3 - is after slash (8) as the denominator. -- --NOTE S3: Parameters here should NOT have spaces or split on -- separate lines: {{hands/numdisp/fracparts|0|6+3 |8}} -- would put a space after 3, as "3 /8" in the displayed -- fraction. The MediaWiki parser appends a newline ending -- a parameter when "|" is on the next line (in 2010). -- -- WARNING: *** DO NOT DELETE COMMENTS FROM THIS TEMPLATE *** -- Unless these comments are readily available, people -- might tinker with the coding (or rename templates), -- in hopes to clarify operation because these comments -- were not nearby to explain the issues. Having these -- comments only on a doc-page increases the danger of -- explanations no longer matching the current coding. -- UPDATE these comments to match changes to the template. -- UPDATE the HISTORY during major changes (not typos). -- -------------------------------------------------------------- --HISTORY: --19Nov10 Created from {{Convert/numdisp/frac}} of User:Jimp. --19Nov10 Changed for titleparts at "/" (like {2}=6+3 & {3}=8). --19Nov10 Put NOTES comments to explain template coding. --19Nov10 Put HISTORY comments to log major changes. --28Jun11 Merge back to {{Convert/numdisp/frac}} --04Jun14 Changed to allow "0+" as whole-number portion. --04Jun14 Moved doc text to bottom as normal format. -- -- ** Add interwiki links on docpage to limit changes here ** --> {{توضیحات|content= This subtemplate is called by {{الگو|hands/numdisp}} <!-- and by {{الگو|convert/and/frn1}} --> to process fractions according to whether the whole number part (i.e. the ''a'' in {{تقسیم|''a''|''b''|''c''}}) is positive, negative or zero calling {{الگو|hands/numdisp/frac1}}, {{الگو|hands/numdisp/frac-1}} or {{الگو|hands/numdisp/frac0}} respectively. [[رده:زیرصفحههای الگوی تبدیل]] }} [[or:ଟେମ୍ପଲେଟ:Convert/numdisp/frac]] </noinclude>
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ویکیهزاره ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ویکیهزاره:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
صفحههای گنحاندهشده در این صفحه:
الگو:Hands/numdisp/frac-1
(
ویرایش
)
الگو:Pp-template
(
ویرایش
)
الگو:الگو
(
ویرایش
)
الگو:تقسیم
(
ویرایش
)
الگو:توضیحات
(
ویرایش
)
الگو:حص-الگو
(
ویرایش
)
پودمان:Arguments
(
ویرایش
)
پودمان:Documentation
(
ویرایش
)
پودمان:Documentation/config
(
ویرایش
)
پودمان:Documentation/styles.css
(
ویرایش
)
پودمان:Effective protection expiry
(
ویرایش
)
پودمان:Effective protection level
(
ویرایش
)
پودمان:File link
(
ویرایش
)
پودمان:No globals
(
ویرایش
)
پودمان:Numeral converter
(
ویرایش
)
پودمان:Protection banner
(
ویرایش
)
پودمان:Protection banner/config
(
ویرایش
)
پودمان:Yesno
(
ویرایش
)
این صفحه عضوی از یک ردهٔ پنهان است:
رده:صفحههای دارای خطاهای اسکریپتی
جستجو
جستجو
در حال ویرایش
الگو:Hands/numdisp/frac
افزودن مبحث