2,743
edits
[checked revision] | [checked revision] |
mNo edit summary |
Lightyears (talk | contribs) (Changed template for QuranX) |
||
Line 1: | Line 1: | ||
{{#if: {{{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)] | |||
| [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/USC-MSA/Volume-{{#expr:{{{1|1}}}}}/Book-{{#expr:{{{2|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Sahih Bukhari {{{1|1}}}:{{{2|1}}}:{{{3|1}}}] | |||
}} | |||
<!--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)--> | |||
<noinclude> | |||
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. | |||
Note that all of Bukhari is Sahih.<BR> | Note that all of Bukhari is Sahih.<BR> | ||
Line 8: | Line 18: | ||
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 Verse Number.<BR> | ||
Forth Parameter (optional) is for the alternative, in-book reference system (default is USC-MSA) | |||
To use this type with USC-MSA numbering: <tt><nowiki>{{Bukhari|###|###|###}}</nowiki></tt> | |||
To use this type with In-book numbering: <tt><nowiki>{{Bukhari||###|###|in-book}}</nowiki></tt> (note the empty first parameter) | |||
;Example for hadiths | ;Example for hadiths using MSA-USC numbering: | ||
:<nowiki> | :<nowiki>{{Bukhari|3|27|8}}</nowiki> | ||
Produces: | Produces: | ||
: | :{{Bukhari|3|27|8|}} | ||
;Example for the same hadith using in-book numbering: | |||
:<nowiki>{{Bukhari||26|8|in-book}}</nowiki> | |||
Produces: | |||
:{{Bukhari||26|8|in-book}} | |||
</noinclude> | </noinclude> |