Template:Bukhari: Difference between revisions

Reference parameter has been renamed darussalam and also on quranx
[checked revision][checked revision]
(updated for simplified quranx url)
(Reference parameter has been renamed darussalam and also on quranx)
Line 2: Line 2:
   {{ #switch: {{lc: {{{4|}}} }}  
   {{ #switch: {{lc: {{{4|}}} }}  
     | in-book = [http://quranx.com/Hadith/Bukhari/In-Book/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{2|1}}}:{{{3|1}}} (In-Book Ref)]
     | in-book = [http://quranx.com/Hadith/Bukhari/In-Book/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{2|1}}}:{{{3|1}}} (In-Book Ref)]
     | reference = [http://quranx.com/Hadith/Bukhari/Reference/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (Dar-us-Salam Ref)]
     | darussalam= [http://quranx.com/Hadith/Bukhari/DarusSalam/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (Dar-us-Salam Ref)]
     | [http://quranx.com/Hadith/Bukhari/Reference/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (4th parameter error)]
     | [http://quranx.com/Hadith/Bukhari/Reference/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (4th parameter error)]
   }}|
   }}|
Line 27: Line 27:
To cite a hadith with USC-MSA numbering:    <tt><nowiki>{{Bukhari|#|#|#}}</nowiki></tt>
To cite a hadith with USC-MSA numbering:    <tt><nowiki>{{Bukhari|#|#|#}}</nowiki></tt>


To cite a hadith with Dar-us-Salam Reference numbering:    <tt><nowiki>{{Bukhari|||#|reference}}</nowiki></tt> (note the empty first and second parameters)
To cite a hadith with Dar-us-Salam Reference numbering:    <tt><nowiki>{{Bukhari|||#|darussalam}}</nowiki></tt> (note the empty first and second parameters)


To cite a hadith with In-book numbering:    <tt><nowiki>{{Bukhari||#|#|in-book}}</nowiki></tt> (note the empty first parameter)
To cite a hadith with In-book numbering:    <tt><nowiki>{{Bukhari||#|#|in-book}}</nowiki></tt> (note the empty first parameter)
Line 38: Line 38:


;Example for the same hadith using Dar-us-Salam Reference numbering:
;Example for the same hadith using Dar-us-Salam Reference numbering:
:<nowiki>{{Bukhari|||1780|reference}}</nowiki>
:<nowiki>{{Bukhari|||1780|darussalam}}</nowiki>


Produces:
Produces:
:{{Bukhari|||1780|reference}}
:{{Bukhari|||1780|darussalam}}


;Example for the same hadith using In-book reference numbering:
;Example for the same hadith using In-book reference numbering:
Editors, em-bypass-2, Reviewers, rollback, Administrators
2,743

edits