Template:Abu Dawud: Difference between revisions

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Compendium of Muslim Texts|Abu Dawud]] [{{Compendium-of-muslim-texts-base-url}}/hadith/abudawud/{{three digit|{{{1|1}}}}}-sat.php#{{three digit|{{{1|1}}}}}.{{Four digit|{{{2|1}}}}} {{{1|1}}}:{{{2|1}}}] <noinclude>
{{#if: {{{3|}}}  |
  {{ #switch: {{lc: {{{3|}}} }}
    | darussalam= [https://quranx.com/Hadith/AbuDawud/DarusSalam/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (Dar-us-Salam Ref)]
    | hasan = [https://quranx.com/Hadith/AbuDawud/Hasan/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (Ahmad Hasan Ref)]
    | [https://quranx.com/Hadith/AbuDawud/Reference/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (3rd parameter error)]
  }}|
  [https://quranx.com/Hadith/AbuDawud/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}}]
}}<noinclude>
<!--The noinclude tag must be right at the end of the template on the same line or you will get new lines after its use in some situations-->
<!--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)-->


This template is used to provide sources for Sunan Abu Dawud references from USC-MSA.
<templatedata>
{
"description": "This template will create a link to the specified hadith in Sunan Abu Dawud. Please visit its template page or read the Citing Sources page for instructions on its use with alternative hadith reference systems.",
"params": {
"1": {
"label": "Book number",
"description": "The Book number when using the USC-MSA reference system",
"required": false,
"suggested": true,
"type": "number",
"default": "1",
"example": "33"
},
"2": {
"label": "Hadith number",
"description": "The hadith number",
"required": true,
"type": "number",
"default": "1",
"example": "4166"
},
"3": {
"label": "Alternative reference system",
"description": "Enter darussalam when you are using the Dar-us-Salam reference system or enter hasan when using the Ahmad Hasan reference system (leave blank if using the USC-MSA reference system)",
"required": false,
"suggested": true,
"type": "string",
"default": "",
"example": "hasan"
}
}
}
</templatedata>
 
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 Verse Number.<BR>
Second Parameter is the Hadith Number.<BR>
To use the template type: <tt><nowiki>{{Abu Dawud|###|####}}</nowiki></tt>
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, only a hadith number is specified, and is the same as in 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. Hasan's book numbering is not used as it changed depending on the edition (hadiths were divided into 36 books, or into 41 books).
 
 
To use this template with USC-MSA numbering:     <tt><nowiki>{{Abu Dawud|#|#}}</nowiki></tt>
 
To use this template with Dar-us-Salam Reference numbering:    <tt><nowiki>{{Abu Dawud||#|darussalam}}</nowiki></tt> (note the empty first parameter)
 
To use this template with Ahmad Hasan numbering:    <tt><nowiki>{{Abu Dawud||#|hasan}}</nowiki></tt> (note the empty first parameter)
 
 
 
;Example for hadiths using USC-MSA numbering:
:<nowiki>{{Abu Dawud|33|4166}}</nowiki>
 
Produces:
:{{Abu Dawud|33|4166}}
 
;Example for the same hadith using Dar-us-Salam Reference numbering:
:<nowiki>{{Abu Dawud||4178|darussalam}}</nowiki>
 
Produces:
:{{Abu Dawud||4178|darussalam}}
 
;Example for the same hadith using Ahmad Hasan numbering:
:<nowiki>{{Abu Dawud||4166|hasan}}</nowiki>
 
Produces:
:{{Abu Dawud||4166|hasan}}


[[Category:Islamic text templates|Abu Dawud]]
[[Category:Islamic text templates|Muslim-usc]]
[[Category:External link templates|Abu Dawud]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 01:25, 22 December 2018

Sunan Abu Dawud 1:1

This template will create a link to the specified hadith in Sunan Abu Dawud. Please visit its template page or read the Citing Sources page for instructions on its use with alternative hadith reference systems.

Template parameters

ParameterDescriptionTypeStatus
Book number1

The Book number when using the USC-MSA reference system

Default
1
Example
33
Numbersuggested
Hadith number2

The hadith number

Default
1
Example
4166
Numberrequired
Alternative reference system3

Enter darussalam when you are using the Dar-us-Salam reference system or enter hasan when using the Ahmad Hasan reference system (leave blank if using the USC-MSA reference system)

Default
Example
hasan
Stringsuggested

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, only a hadith number is specified, and is the same as in 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. Hasan's book numbering is not used as it changed depending on the edition (hadiths were divided into 36 books, or into 41 books).


To use this template with USC-MSA numbering: {{Abu Dawud|#|#}}

To use this template with Dar-us-Salam Reference numbering: {{Abu Dawud||#|darussalam}} (note the empty first parameter)

To use this template with Ahmad Hasan numbering: {{Abu Dawud||#|hasan}} (note the empty first parameter)


Example for hadiths using USC-MSA numbering
{{Abu Dawud|33|4166}}

Produces:

Sunan Abu Dawud 33:4166
Example for the same hadith using Dar-us-Salam Reference numbering
{{Abu Dawud||4178|darussalam}}

Produces:

Sunan Abu Dawud 4178 (Dar-us-Salam Ref)
Example for the same hadith using Ahmad Hasan numbering
{{Abu Dawud||4166|hasan}}

Produces:

Sunan Abu Dawud 4166 (Ahmad Hasan Ref)