Template:Bukhari: Difference between revisions
[checked revision] | [checked revision] |
No edit summary |
Lightyears (talk | contribs) No edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{4|}}} | | |||
{{ #switch: {{lc: {{{4|}}} }} | |||
| in-book = [https://quranx.com/Hadith/Bukhari/In-Book/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{2|1}}}:{{{3|1}}} (In-Book Ref)] | |||
| darussalam= [https://quranx.com/Hadith/Bukhari/DarusSalam/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (Dar-us-Salam Ref)] | |||
| [https://quranx.com/Hadith/Bukhari/Reference/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{3|1}}} (4th parameter error)] | |||
}}| | |||
[https://quranx.com/Hadith/Bukhari/USC-MSA/Volume-{{#expr:{{{1|1}}}}}/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{1|1}}}:{{{2|1}}}:{{{3|1}}}] | |||
}}<noinclude> | |||
<!--The noinclude tag must be right at the end of the template on the same line or you will get new lines after its use in some situations--> | |||
<!--The <nowiki>{{#expr: }}</nowiki> function in the template is used to trim any leading zeros in the numbers.--> | |||
<!--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. | <templatedata> | ||
{ | |||
"description": "This template will create a link to the specified hadith in Sahih Bukhari. Please visit its template page or read the Citing Sources page for instructions on its use with alternative hadith reference systems.", | |||
"params": { | |||
"1": { | |||
"label": "Volume number", | |||
"description": "The Volume number when using the USC-MSA reference system", | |||
"required": false, | |||
"suggested": true, | |||
"type": "number", | |||
"default": "1", | |||
"example": "3" | |||
}, | |||
"2": { | |||
"label": "Book number", | |||
"description": "The Book number when using the USC-MSA or In-book reference system", | |||
"required": false, | |||
"suggested": true, | |||
"type": "number", | |||
"default": "1", | |||
"example": "27" | |||
}, | |||
"3": { | |||
"label": "Hadith number", | |||
"description": "The hadith number", | |||
"required": true, | |||
"type": "number", | |||
"default": "1", | |||
"example": "8" | |||
}, | |||
"4": { | |||
"label": "Alternative reference system", | |||
"description": "Enter darussalam when you are using the Dar-us-Salam reference system or in-book when using the In-book reference system (leave blank if using the USC-MSA reference system)", | |||
"required": false, | |||
"suggested": true, | |||
"type": "string", | |||
"default": "", | |||
"example": "darussalam" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
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> | |||
==Usage== | ==Usage== | ||
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 | Third Parameter is the Hadith Number.<BR> | ||
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). | |||
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. | |||
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|||#|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) | |||
;Example for hadiths using MSA-USC numbering: | |||
:<nowiki>{{Bukhari|3|27|8}}</nowiki> | |||
Produces: | |||
:{{Bukhari|3|27|8}} | |||
;Example for the same hadith using Dar-us-Salam Reference numbering: | |||
:<nowiki>{{Bukhari|||1780|darussalam}}</nowiki> | |||
Produces: | |||
:{{Bukhari|||1780|darussalam}} | |||
;Example for | ;Example for the same hadith using In-book reference numbering: | ||
:<nowiki> | :<nowiki>{{Bukhari||26|8|in-book}}</nowiki> | ||
Produces: | Produces: | ||
: | :{{Bukhari||26|8|in-book}} | ||
[[Category:Islamic text templates| | [[Category:Islamic text templates|Muslim-usc]] | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 01:19, 22 December 2018
This template will create a link to the specified hadith in Sahih Bukhari. Please visit its template page or read the Citing Sources page for instructions on its use with alternative hadith reference systems.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Volume number | 1 | The Volume number when using the USC-MSA reference system
| Number | suggested |
Book number | 2 | The Book number when using the USC-MSA or In-book reference system
| Number | suggested |
Hadith number | 3 | The hadith number
| Number | required |
Alternative reference system | 4 | Enter darussalam when you are using the Dar-us-Salam reference system or in-book when using the In-book reference system (leave blank if using the USC-MSA reference system)
| String | suggested |
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.
Usage
First Parameter is the Volume Number.
Second Parameter is the Book Number.
Third Parameter is the Hadith Number.
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).
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.
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: {{Bukhari|#|#|#}}
To cite a hadith with Dar-us-Salam Reference numbering: {{Bukhari|||#|darussalam}} (note the empty first and second parameters)
To cite a hadith with In-book numbering: {{Bukhari||#|#|in-book}} (note the empty first parameter)
- Example for hadiths using MSA-USC numbering
- {{Bukhari|3|27|8}}
Produces:
- Example for the same hadith using Dar-us-Salam Reference numbering
- {{Bukhari|||1780|darussalam}}
Produces:
- Example for the same hadith using In-book reference numbering
- {{Bukhari||26|8|in-book}}
Produces: