Template:Abudawud: Difference between revisions
[checked revision] | [checked revision] |
Lightyears (talk | contribs) No edit summary |
Lightyears (talk | contribs) (Updated for new Quranx features) |
||
Line 1: | Line 1: | ||
{{#if: {{{3|}}} | | {{#if: {{{3|}}} | | ||
{{ #switch: {{lc: {{{3|}}} }} | {{ #switch: {{lc: {{{3|}}} }} | ||
| | | reference = [http://quranx.com/Hadith/AbuDawud/ByIndex/Reference/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (Dar-us-Salam Ref)] | ||
| [http://quranx.com/Hadith/AbuDawud/ByIndex/ | | hasan = [http://quranx.com/Hadith/AbuDawud/ByIndex/Hasan/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}} (Ahmad Hasan Ref)] | ||
| [http://quranx.com/Hadith/AbuDawud/ByIndex/Reference/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (3rd parameter error)] | |||
}}| | }}| | ||
[http://quranx.com/Hadith/AbuDawud/ByIndex/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}}] | [http://quranx.com/Hadith/AbuDawud/ByIndex/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}}] | ||
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 Sunan Abu Dawud 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 Sunan Abu Dawud 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, Dar-us-Salam, and Ahmad Hasan reference conventions.<BR> | ||
==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 Hasan (default is USC-MSA). | ||
To use this template with | 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 Ahmad Hasan referencing system, the book and hadith number are the same as in the 1993 print edition of Ahmad Hasan's translation (this is the English translation used for Abu Dawud on Quranx and other popular sites). The hadith numbers and translation are the same as was used by USC-MSA for their partial Abu Dawud collection, though the book numbering differs in many cases. | |||
To use this template with USC-MSA numbering: <tt><nowiki>{{Abudawud|#|#}}</nowiki></tt> | |||
To use this template with Dar-us-Salam Reference numbering: <tt><nowiki>{{Abudawud||#|reference}}</nowiki></tt> (note the empty second parameter) | |||
To use this template with Ahmad Hasan numbering: <tt><nowiki>{{Abudawud|#|#|hasan}}</nowiki></tt> | |||
;Example for hadiths using USC-MSA numbering: | ;Example for hadiths using USC-MSA numbering: | ||
:<nowiki>{{Abudawud| | :<nowiki>{{Abudawud|33|4166}}</nowiki> | ||
Produces: | |||
:{{Abudawud|33|4166}} | |||
;Example for the same hadith using Dar-us-Salam Reference numbering: | |||
:<nowiki>{{Abudawud||4178|reference}}</nowiki> | |||
Produces: | Produces: | ||
:{{Abudawud| | :{{Abudawud||4178|reference}} | ||
;Example for the same hadith using | ;Example for the same hadith using Ahmad Hasan numbering: | ||
:<nowiki>{{Abudawud| | :<nowiki>{{Abudawud|34|4166|hasan}}</nowiki> | ||
Produces: | Produces: | ||
:{{Abudawud| | :{{Abudawud|34|4166|hasan}} | ||
[[Category:Islamic text templates|Muslim-usc]] | [[Category:Islamic text templates|Muslim-usc]] | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 02:15, 29 January 2017
This template is used to provide sources for Sunan Abu Dawud 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, Dar-us-Salam, and Ahmad Hasan reference conventions.
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 Hasan (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 Ahmad Hasan referencing system, the book and hadith number are the same as in the 1993 print edition of Ahmad Hasan's translation (this is the English translation used for Abu Dawud on Quranx and other popular sites). The hadith numbers and translation are the same as was used by USC-MSA for their partial Abu Dawud collection, though the book numbering differs in many cases.
To use this template with USC-MSA numbering: {{Abudawud|#|#}}
To use this template with Dar-us-Salam Reference numbering: {{Abudawud||#|reference}} (note the empty second parameter)
To use this template with Ahmad Hasan numbering: {{Abudawud|#|#|hasan}}
- Example for hadiths using USC-MSA numbering
- {{Abudawud|33|4166}}
Produces:
- Example for the same hadith using Dar-us-Salam Reference numbering
- {{Abudawud||4178|reference}}
Produces:
- Example for the same hadith using Ahmad Hasan numbering
- {{Abudawud|34|4166|hasan}}
Produces: