Jump to content

Template:CiteHadith/doc

From Wikipedia, the free encyclopedia

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]

Example

[edit]
  • {{href|bukhari|256}} Output: 256


  • {{href|bukhari|256|b=y}} Output: Sahih al-Bukhari 256


  • {{href|muslim|224a}} Output: 224a



  • {{href|tirmidhi|255|b=y|s=y}} Output: Jamiʽ al-Tirmidhi [255]



See Also

[edit]


TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:CiteHadith in articles based on its TemplateData.

TemplateData for CiteHadith

Cite Hadiths from sunnah.com. This Template will create a link of hadiths for references. This is '''CiteHadith''' Template.

Template parameters

ParameterDescriptionTypeStatus
Hadith Collection Code1

Enter Hadith Collection Code e.g. bukhari, muslim, nasai

Suggested values
bukhari muslim nasai abudawud tirmidhi ibnmajah rsalihin
Example
bukhari, muslim, nasai
Stringrequired
Hadith Number2

Enter Hadith Number e.g. 112, 56. For Sahih Muslim, which contain a, b, c section in a single hadith. Type 226a, 226a

Example
1023, 226a, or 378c
Stringrequired
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.

Suggested values
y yl
Example
y or yl
Stringsuggested
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.

Suggested values
y ya
Example
y or ya
Stringsuggested
In-book ReferenceIn-book In-book Reference

no description

Example
Book 78, Hadith 157
Linesuggested