WikiIslam:Source Editing: Difference between revisions

→‎Referencing Hadith: Sunnah.com's proprietory In-book ref system should never be used as they frequently change it with cascading effects. I have removed it from the Bukhari and Muslim templates and Quranx are also removing that system.
(→‎Referencing Hadith: Sunnah.com's proprietory In-book ref system should never be used as they frequently change it with cascading effects. I have removed it from the Bukhari and Muslim templates and Quranx are also removing that system.)
 
(One intermediate revision by the same user not shown)
Line 133: Line 133:
The first parameter is the chapter/surah number, while the second parameter is the verse number
The first parameter is the chapter/surah number, while the second parameter is the verse number
===Referencing Hadith===
===Referencing Hadith===
====When using Visual Editor====
The sections below describe the format for citing hadiths in the source editor. The same information applies also when using the Visual Editor, but with one additional requirement.
When using Visual Editor (but not source editor), a single space should be entered for any empty parameters that occur before a parameter which is given a value. For example, when using the Dar-us-Salam reference system for Bukhari (preferred), a single space should be entered for the Volume number and for the Book number so that the generated wikitext will have a pipe ("|") for the each of the empty parameters i.e. when saved it will generate for example <code><nowiki>{{Bukhari|||123|darussalam}}</nowiki></code> instead of <code><nowiki>{{Bukhari|3=123|4=darussalam}}</nowiki></code>. This is preferred in order to keep Visual Editor generated wikitext consistent with the existing wikitext across the site.
====Referencing Sahih Bukhari====
====Referencing Sahih Bukhari====
To cite a hadith in [[Template:Bukhari|Sahih Bukhari]] type: <code><nowiki>{{Bukhari|||#|darussalam}}</nowiki></code> Note that the first parameter for the volume number and second parameter for the book number are left empty for Dar-us-Salam Reference citations. The fourth parameter must be "darussalam".
To cite a hadith in [[Template:Bukhari|Sahih Bukhari]] type: <code><nowiki>{{Bukhari|||#|darussalam}}</nowiki></code> Note that the first parameter for the volume number and second parameter for the book number are left empty for Dar-us-Salam Reference citations. The fourth parameter must be "darussalam".  


This is the standard system for referencing Bukhari hadiths on this site. The Dar-us-Salam reference number as found in the Dar-us-Salam print editions of Bukhari was devised by the mid-20th century scholar Fuad Abdul Baqi. This has become the de facto standard in common and academic usage and is found on sites such as quranx.com and sunnah.com.
This is the standard system for referencing Bukhari hadiths on this site. The Dar-us-Salam reference number as found in the Dar-us-Salam print editions of Bukhari was devised by the mid-20th century scholar Fuad Abdul Baqi. This has become the de facto standard in common and academic usage and is found on sites such as quranx.com and sunnah.com.
Line 142: Line 147:


To do so type: <code><nowiki>{{Bukhari|#|#|#}}</nowiki></code> The first parameter is the volume number, the second parameter is the book number and the third parameter is the narration number.
To do so type: <code><nowiki>{{Bukhari|#|#|#}}</nowiki></code> The first parameter is the volume number, the second parameter is the book number and the third parameter is the narration number.
You can also cite a Bukhari hadith using the In-book reference convention (a hybrid system created by sunnah.com) by adding an additional parameter with the value "in-book".
To do so type: <code><nowiki>{{Bukhari||#|#|in-book}}</nowiki></code> (note that the first parameter for the volume is left empty for in-book citations)
The book number in the In-book reference system corresponds with the book number in the Dar-us-Salam print edition of Bukhari, and the hadith number is an incremental number which starts at 1 for the first hadith in each book.


Note that if using the USC-MSA system, this will sometimes not allow a specific hadith to be cited when there are multiple hadiths with the same USC-MSA number (a link using the default USC-MSA referencing system would display a list of hadiths in that situation on QuranX
Note that if using the USC-MSA system, this will sometimes not allow a specific hadith to be cited when there are multiple hadiths with the same USC-MSA number (a link using the default USC-MSA referencing system would display a list of hadiths in that situation on QuranX
Line 162: Line 161:


The first parameter is the book number and the second parameter is the narration number.
The first parameter is the book number and the second parameter is the narration number.
You can also cite a Sahih Muslim hadith using the In-book reference convention (a hybrid system created by sunnah.com) by adding an additional parameter with the value "in-book".
To do so type: <code><nowiki>{{Muslim|#|#|in-book}}</nowiki></code>
The book number in the In-book reference system corresponds with the book number in the Dar-us-Salam print edition of Sahih Muslim, and the hadith number is an incremental number which starts at 1 for the first hadith in each book.


Note that if using the USC-MSA system, this will sometimes not allow a specific hadith to be cited when there are multiple hadiths with the same USC-MSA number (a link using the default USC-MSA referencing system would display a list of hadiths in that situation on QuranX).
Note that if using the USC-MSA system, this will sometimes not allow a specific hadith to be cited when there are multiple hadiths with the same USC-MSA number (a link using the default USC-MSA referencing system would display a list of hadiths in that situation on QuranX).
Editors, em-bypass-2, Reviewers, rollback, Administrators
3,528

edits