الفرق بين المراجعتين لصفحة: «قالب:الموطأ»

لا يوجد ملخص تحرير
[مراجعة منقحة][مراجعة منقحة]
(أنشأ الصفحة ب'{{#vardefine:Clean4thParameter|}} <!--If parameter 4 exists, set the variable to the number at the start of it (1-4 digits) if there is one due to misuse by some editors...')
 
لا ملخص تعديل
سطر ١٢: سطر ١٢:
}}<!--If parameter 5 exists and is not erroneously mistyped, create an In-book reference url with 1st and 3rd parameters. If no 5th parameter, create a USC-MSA ref url, using parameters 2 and 4 for cases where the old template was misused (i.e. 4 contains a number), or otherwise with parameters 1 and 3-->{{#if: {{{5|}}}  |  
}}<!--If parameter 5 exists and is not erroneously mistyped, create an In-book reference url with 1st and 3rd parameters. If no 5th parameter, create a USC-MSA ref url, using parameters 2 and 4 for cases where the old template was misused (i.e. 4 contains a number), or otherwise with parameters 1 and 3-->{{#if: {{{5|}}}  |  
   {{ #switch: {{lc: {{{5|}}} }}  
   {{ #switch: {{lc: {{{5|}}} }}  
     | arabic = [https://quranx.com/Hadith/Malik/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ الموطأ {{{1|1}}}:{{{3|1}}} (Arabic Ref)]
     | عربي = [https://quranx.com/Hadith/Malik/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ الموطأ {{{1|1}}}:{{{3|1}}} (عربي Ref)]
     | [https://quranx.com/Hadith/Malik/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ الموطأ {{{1|1}}}:{{{3|1}}} (5th parameter error)]
     | [https://quranx.com/Hadith/Malik/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ الموطأ {{{1|1}}}:{{{3|1}}} (5th parameter error)]
   }}|
   }}|
سطر ٩٠: سطر ٩٠:


;Example for the same hadith using Arabic reference numbering:
;Example for the same hadith using Arabic reference numbering:
:<nowiki>{{الموطأ|14||465||arabic}}</nowiki> (note the empty 2nd and 4th parameters)
:<nowiki>{{الموطأ|14||465||عربي}}</nowiki> (note the empty 2nd and 4th parameters)


Produces:
Produces:
:{{الموطأ|14||465||arabic}}
:{{الموطأ|14||465||عربي}}