Template:Bukhari: Difference between revisions

793 bytes removed ,  Yesterday at 17:56
no edit summary
[checked revision][checked revision]
No edit summary
No edit summary
 
Line 1: Line 1:
{{#if: {{{4|}}}  |  
{{#if: {{{4|}}}  |  
   {{ #switch: {{lc: {{{4|}}} }}  
   {{ #switch: {{lc: {{{4|}}} }}  
    | in-book = [https://quranx.com/Hadith/Bukhari/In-Book/Book-{{{2|1}}}/Hadith-{{{3|1}}}/ Sahih Bukhari {{{2|1}}}:{{{3|1}}} (In-Book Ref)]
     | darussalam= [https://quranx.com/Hadith/Bukhari/DarusSalam/Hadith-{{{3|1}}}/ Sahih Bukhari {{{3|1}}}]
     | darussalam= [https://quranx.com/Hadith/Bukhari/DarusSalam/Hadith-{{{3|1}}}/ Sahih Bukhari {{{3|1}}}]
     | [https://quranx.com/Hadith/Bukhari/DarusSalam/Hadith-{{{3|1}}}/ Sahih Bukhari {{{3|1}}} (4th parameter error)]
     | [https://quranx.com/Hadith/Bukhari/DarusSalam/Hadith-{{{3|1}}}/ Sahih Bukhari {{{3|1}}} (4th parameter error)]
Line 24: Line 23:
"2": {
"2": {
"label": "Book number",
"label": "Book number",
"description": "Enter a single space, or Book number when using the USC-MSA or In-book reference system",
"description": "Enter a single space, or Book number when using the USC-MSA reference system",
"required": false,
"required": false,
"suggested": true,
"suggested": true,
Line 41: Line 40:
"4": {
"4": {
"label": "Reference system",
"label": "Reference system",
"description": "Enter darussalam for the Dar-us-Salam reference system (preferred). Enter in-book when using the In-book reference system, or leave blank if using the USC-MSA reference system.",
"description": "Enter darussalam for the Dar-us-Salam reference system (preferred), or leave blank if using the USC-MSA reference system.",
"required": false,
"required": false,
"suggested": true,
"suggested": true,
Line 55: Line 54:


* USC-MSA (created by University of South Carolina)
* USC-MSA (created by University of South Carolina)
* In-book (a hybrid system created by sunnah.com)
* Dar-us-Salam (created by the mid 20th century scholar Fuad Abdul Baqi).  
* Dar-us-Salam (created by the mid 20th century scholar Fuad Abdul Baqi).  


Line 68: Line 66:
Second Parameter is the Book Number (optional).<BR>
Second Parameter is the Book Number (optional).<BR>
Third Parameter is the Hadith Number.<BR>
Third Parameter is the Hadith Number.<BR>
Fourth Parameter (optional) is used to indicate the referencing system: Dar-us-Salam or In-book (if left blank, the default is USC-MSA). The revised site policy is to use the Dar-us-Salam system.  
Fourth Parameter (optional) is used to indicate the referencing system: Dar-us-Salam, or if left blank, the default is USC-MSA. The revised site policy is to use the Dar-us-Salam system.  


With the Dar-us-Salam Reference system, the fourth parameter value must be darussalam and only a hadith number is specified, which is the same as in the Dar-us-Salam print editions (and is the number in bold on sunnah.com). '''When using Visual Editor''' (but not source editor), 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 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.
With the Dar-us-Salam Reference system, the fourth parameter value must be darussalam and only a hadith number is specified, which is the same as in the Dar-us-Salam print editions (and is the number in bold on sunnah.com). '''When using Visual Editor''' (but not source editor), 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 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.


With the USC-MSA system, the volume, book and hadith numbers are as in USC's CMJE database (retired).
With the USC-MSA system, the volume, book and hadith numbers are as in USC's CMJE database (retired).
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. The fourth parameter value must be in-book.


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 Dar-us-Salam Reference numbering:    <tt><nowiki>{{Bukhari|||#|darussalam}}</nowiki></tt> (note the empty first and second parameters)


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


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


[[Category:Islamic text templates|Muslim-usc]]
[[Category:Islamic text templates|Muslim-usc]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
Editors, em-bypass-2, Reviewers, rollback, Administrators
3,500

edits