Template:Muslim: Difference between revisions

Changed template for QuranX.com
[checked revision][checked revision]
mNo edit summary
(Changed template for QuranX.com)
Line 1: Line 1:
[[Compendium of Muslim Texts|Sahih Muslim]] [{{Compendium-of-muslim-texts-base-url}}/hadith/muslim/{{three digit|{{{1|1}}}}}-smt.php#{{three digit|{{{1|1}}}}}.{{Four digit|{{{2|1}}}}} {{{1|1}}}:{{{2|1}}}]<noinclude>
{{#if: {{{3|}}}  |
  {{ #switch: {{lc: {{{3|}}} }}
    | in-book = [http://quranx.com/Hadith/Muslim/ByIndex/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sahih Muslim {{{1|1}}}:{{{2|1}}} (In-Book Ref)]
    | [http://quranx.com/Hadith/Muslim/ByIndex/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sahih Muslim {{{1|1}}}:{{{2|1}}} (3rd parameter error)]
  }}|
  [http://quranx.com/Hadith/Muslim/ByIndex/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sahih Muslim {{{1|1}}}:{{{2|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 Sahih Muslim references. 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 references to the Hadith of Sahih Muslim from USC-MSA.
Note that all of Muslim is Sahih.<BR>


Note that all of Muslim is Sahih.<BR>
==Usage==
==Usage==
First Parameter is the Book Number.<BR>
First Parameter is the Book Number.<BR>
Second Parameter is the Verse Number.<BR>
Second Parameter is the Verse Number.<BR>
To use the template type: <tt><nowiki>{{Muslim|###|###}}</nowiki></tt>
Third Parameter (optional) is for the alternative, in-book reference system (default is USC-MSA)
 
To use this template with USC-MSA numbering:    <tt><nowiki>{{Muslim|###|###}}</nowiki></tt>
 
To use this template with In-book numbering:     <tt><nowiki>{{Muslim|###|###|in-book}}</nowiki></tt>
 
 
 
;Example for hadiths using MSA-USC numbering:
:<nowiki>{{Muslim|7|2650}}</nowiki>
 
Produces:
:{{Muslim|7|2650}}
 
;Example for the same hadith using in-book numbering:
:<nowiki>{{Muslim|15|4|in-book}}</nowiki>
 
Produces:
:{{Muslim|15|4|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
2,743

edits