Template:Muslim: Difference between revisions
[checked revision] | [checked revision] |
Lightyears (talk | contribs) No edit summary |
Lightyears (talk | contribs) (Updated for new Quranx features) |
||
Line 2: | Line 2: | ||
{{ #switch: {{lc: {{{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)] | | 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)] | ||
| reference = [http://quranx.com/Hadith/Muslim/ByIndex/Reference/Hadith-{{#expr:{{{2|1}}}}}/ Sahih Muslim {{{2|1}}} (Dar-us-Salam 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/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sahih Muslim {{{1|1}}}:{{{2|1}}} (3rd parameter error)] | ||
}}| | }}| | ||
Line 10: | Line 11: | ||
<!--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)--> | ||
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 | This template is used to provide sources for Sahih Muslim 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 Muslim is Sahih.<BR> | Note that all of Muslim is Sahih.<BR> | ||
Line 16: | Line 17: | ||
==Usage== | ==Usage== | ||
First Parameter is the Book Number.<BR> | First Parameter is the Book Number.<BR> | ||
Second Parameter is the | Second Parameter is the Hadith Number.<BR> | ||
Third Parameter (optional) is | Third 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. | |||
To use this template with | 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 use this template with USC-MSA numbering: <tt><nowiki>{{Muslim|#|#}}</nowiki></tt> | |||
To use this template with Dar-us-Salam Reference numbering: <tt><nowiki>{{Muslim||#|reference}}</nowiki></tt> (note the empty first parameter) | |||
To use this template with In-book numbering: <tt><nowiki>{{Muslim|#|#|in-book}}</nowiki></tt> | |||
Line 30: | Line 38: | ||
Produces: | Produces: | ||
:{{Muslim|7|2650}} | :{{Muslim|7|2650}} | ||
;Example for the same hadith using Dar-us-Salam Reference numbering: | |||
:<nowiki>{{Muslim||1178|reference}}</nowiki> | |||
Produces: | |||
:{{Muslim||1178|reference}} | |||
;Example for the same hadith using in-book numbering: | ;Example for the same hadith using in-book numbering: |
Revision as of 01:31, 29 January 2017
This template is used to provide sources for Sahih Muslim 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 Muslim is Sahih.
Usage
First Parameter is the Book Number.
Second Parameter is the Hadith Number.
Third 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 use this template with USC-MSA numbering: {{Muslim|#|#}}
To use this template with Dar-us-Salam Reference numbering: {{Muslim||#|reference}} (note the empty first parameter)
To use this template with In-book numbering: {{Muslim|#|#|in-book}}
- Example for hadiths using MSA-USC numbering
- {{Muslim|7|2650}}
Produces:
- Example for the same hadith using Dar-us-Salam Reference numbering
- {{Muslim||1178|reference}}
Produces:
- Example for the same hadith using in-book numbering
- {{Muslim|15|4|in-book}}
Produces: