Template:Bukhari: Difference between revisions

Jump to navigation Jump to search
Updated for new Quranx features
[checked revision][checked revision]
No edit summary
(Updated for new Quranx features)
Line 2: Line 2:
   {{ #switch: {{lc: {{{4|}}} }}  
   {{ #switch: {{lc: {{{4|}}} }}  
     | in-book = [http://quranx.com/Hadith/Bukhari/ByIndex/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/ByIndex/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/ByIndex/Reference/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (Dar-us-Salam Ref)]
     | [http://quranx.com/Hadith/Bukhari/ByIndex/In-Book/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{2|1}}}:{{{3|1}}} (4th parameter error)]
     | [http://quranx.com/Hadith/Bukhari/ByIndex/In-Book/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{2|1}}}:{{{3|1}}} (4th parameter error)]
   }}|
   }}|
Line 10: Line 11:
<!--the old cmje links were constructed making use of the <nowiki>{{three digit|}}</nowiki> function)-->
<!--the old cmje links were constructed making use of the <nowiki>{{three digit|}}</nowiki> function)-->


This template is used to provide sources for Bukhari references from USC-MSA. It formerly produced links to the cmje website, which no longer works. We are currently using QuranX.com instead, which is able to handle USC-MSA and in-book reference conventions.
This template is used to provide sources for Bukhari references from USC-MSA and other indexing conventions. It formerly produced links to the cmje website, which no longer works. We are currently using QuranX.com instead, which is able to handle USC-MSA, In-book, and Dar-us-Salam reference conventions.


Note that all of Bukhari is Sahih.<BR>
Note that all of Bukhari is Sahih.<BR>
Line 17: Line 18:
First Parameter is the Volume Number.<BR>
First Parameter is the Volume Number.<BR>
Second Parameter is the Book Number.<BR>
Second Parameter is the Book Number.<BR>
Third Parameter is the Verse Number.<BR>
Third Parameter is the Hadith Number.<BR>
Forth Parameter (optional) is for the alternative, in-book reference system (default is USC-MSA)
Forth Parameter (optional) is used to indicate that you are using one of the alternative referencing systems: Dar-us-Salam or In-book (default is USC-MSA).


To use this type with USC-MSA numbering:    <tt><nowiki>{{Bukhari|###|###|###}}</nowiki></tt>
With the Dar-us-Salam Reference system, only a hadith number is specified, and is the same as in the Dar-us-Salam print edition.


To use this type with In-book numbering:    <tt><nowiki>{{Bukhari||###|###|in-book}}</nowiki></tt> (note the empty first parameter)
With the In-book system, the book number for a hadith is the same as in the Dar-us-Salam print edition, and the hadith number is a simple incremental index starting at 1 for the first hadith in each book.


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 In-book numbering:    <tt><nowiki>{{Bukhari||#|#|in-book}}</nowiki></tt> (note the empty first parameter)


;Example for hadiths using MSA-USC numbering:
;Example for hadiths using MSA-USC numbering:
Line 32: Line 37:
:{{Bukhari|3|27|8}}
:{{Bukhari|3|27|8}}


;Example for the same hadith using in-book numbering:
;Example for the same hadith using Dar-us-Salam Reference numbering:
:<nowiki>{{Bukhari|||1780|reference}}</nowiki>
 
Produces:
:{{Bukhari|||1780|reference}}
 
;Example for the same hadith using In-book reference numbering:
:<nowiki>{{Bukhari||26|8|in-book}}</nowiki>
:<nowiki>{{Bukhari||26|8|in-book}}</nowiki>


Editors, em-bypass-2, Reviewers, rollback, Administrators
2,743

edits

Navigation menu