Template:CiteHadith
A Template to makes citations of the Hadiths, linking to pages of https://sunnah.com .
Usage
[edit]This template is used to provide reference of Hadiths from Sahih al-Bukhari, Sahih Muslim, Sunan an-Nasa'i, Sunan Abu Dawood, Jamiʽ al-Tirmidhi , Sunan ibn Majah and Riyad as-Salihin.
Basic Code format:
{{CiteHadith|HadithCollectionCode|HadithNumber}}
Advance Code format:
{{CiteHadith|HadithCollectionCode|HadithNumber||s=y/ya|b=y/yl}}
Hadith Collection Code
[edit]bukhari
for Sahih al-Bukharimuslim
for Sahih Muslimnasai
for Sunan an-Nasa'iabudawud
for Sunan Abu Dawoodtirmidhi
for Jamiʽ al-Tirmidhiibnmajah
for Sunan ibn Majahrsalihin
for Riyad as-Salihin
Example
[edit]{{href|bukhari|256}}
Output: 256
{{href|bukhari|256|b=y}}
Output: Sahih al-Bukhari 256
{{href|muslim|224a}}
Output: 224a
{{href|abudawud|396|b=yl}}
Output: Sunan Abu Dawood 396
{{href|tirmidhi|255|b=y|s=y}}
Output: Jamiʽ al-Tirmidhi [255]
{{href|ibnmajah|256|b=yl|s=ya}}
Output: [Sunan ibn Majah 256]
{{href|rsalihin|693|b=yl}}
Output: Riyad as-Salihin 693
See Also
[edit]- {{CiteQuran Ayah}}
- {{Cite Tafsir}}
TemplateData
[edit]TemplateData for CiteHadith
Cite Hadiths from sunnah.com. This Template will create a link of hadiths for references. This is '''CiteHadith''' Template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hadith Collection Code | 1 | Enter Hadith Collection Code e.g. bukhari, muslim, nasai
| String | required |
Hadith Number | 2 | Enter Hadith Number e.g. 112, 56. For Sahih Muslim, which contain a, b, c section in a single hadith. Type 226a, 226a
| String | required |
Add Hadith Collection Name (Optional) | b | It make the cite to begin with the Hadith Collection Name. Type ' y ' to add and begin with the Hadith Collection Name which show as 'Sahih al-Bukhari 225'. Type ' yl ' to add the Hadith Collection Name with link of these collections to it's Wikipedia page. Avoid use of yl , more than once in a single article as per MOS:REPEATLINK.
| String | suggested |
Superscript (Optional) | s | It add cites in superscript style. To add, type ' y ' to superscript only reference number and type 'ya' to superscript all output.
| String | suggested |
In-book Reference | In-book In-book Reference | no description
| Line | suggested |