Template:Bukhari: Difference between revisions

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
mNo edit summary
No edit summary
Line 6: Line 6:
   [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}}}]
   [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 <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)-->
<!--the old cmje links were constructed making use of the <nowiki>{{three digit|}}</nowiki> function)-->

Revision as of 20:10, 3 January 2017

Sahih Bukhari 1:1:1

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.

Usage

First Parameter is the Volume Number.
Second Parameter is the Book Number.
Third Parameter is the Verse Number.
Forth Parameter (optional) is for the alternative, in-book reference system (default is USC-MSA)

To use this type with USC-MSA numbering: {{Bukhari|###|###|###}}

To use this type with In-book numbering: {{Bukhari||###|###|in-book}} (note the empty first parameter)


Example for hadiths using MSA-USC numbering
{{Bukhari|3|27|8}}

Produces:

Sahih Bukhari 3:27:8


Example for the same hadith using in-book numbering
{{Bukhari||26|8|in-book}}

Produces:

Sahih Bukhari 26:8 (In-Book Ref)