Template:Bukhari: Difference between revisions

Jump to navigation Jump to search
Changed template for QuranX
[checked revision][checked revision]
mNo edit summary
(Changed template for QuranX)
Line 1: Line 1:
[[Compendium of Muslim Texts|Sahih Bukhari]] [{{Compendium-of-muslim-texts-base-url}}/hadith/bukhari/{{three digit|{{{2|1}}}}}-sbt.php#{{three digit|{{{1|1}}}}}.{{three digit|{{{2|1}}}}}.{{three digit|{{{3|1}}}}} {{{1|1}}}:{{{2|1}}}:{{{3|1}}}]<noinclude>
{{#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.


This template is used to provide sources for Bukhari references from USC-MSA.
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)


To use this type:    <tt><nowiki>{{Bukhari|###|###|###}}</nowiki></tt>


;Example for hadiths with letters in the URL, for example:
;Example for hadiths using MSA-USC numbering:
:<nowiki>[{{Bukhari-url-only|3|38|505}}t Sahih Bukhari 3:38:505t]</nowiki>
:<nowiki>{{Bukhari|3|27|8}}</nowiki>


Produces:
Produces:
:[{{Bukhari-url-only|3|38|505}}t Sahih Bukhari 3:38:505t]
:{{Bukhari|3|27|8|}}


[[Category:Islamic text templates|Bukhari-usc]]
;Example for the same hadith using in-book numbering:
[[Category:Templates]]
:<nowiki>{{Bukhari||26|8|in-book}}</nowiki>
 
Produces:
:{{Bukhari||26|8|in-book}}
</noinclude>
</noinclude>
Editors, em-bypass-2, Reviewers, rollback, Administrators
2,743

edits

Navigation menu