Template:CiteHadith/doc

A Template to makes citations of the Hadiths, linking to pages of https://sunnah.com.

Usage
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:

Advance Code format:

Hadith Collection Code

 * for Sahih al-Bukhari
 * for Sahih Muslim
 * for Sunan an-Nasa'i
 * for Sunan Abu Dawood
 * for Jamiʽ al-Tirmidhi
 * for Sunan ibn Majah
 * for Riyad as-Salihin

Example

 * Output:


 * Output:


 * Output:


 * Output:


 * Output:


 * Output:


 * Output:

TemplateData
{	"params": { "1": {			"label": "Hadith Collection Code", "description": "Enter Hadith Collection Code e.g. bukhari, muslim, nasai", "example": " bukhari, muslim, nasai", "type": "string", "suggestedvalues": [ "bukhari", "muslim", "nasai", "abudawud", "tirmidhi", "ibnmajah", "rsalihin" ],			"required": true },		"2": {			"label": "Hadith Number", "description": "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", "type": "string", "required": true },		"s": { "label": "Superscript (Optional)", "description": "It add cites in superscript style. To add, type ' y ' to superscript only reference number and type 'ya' to superscript all output.", "example": "y or ya", "type": "string", "suggestedvalues": [ "y", "ya" ],			"suggested": true },		"b": { "label": "Add Hadith Collection Name (Optional)", "description": "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.", "example": "y or yl", "type": "string", "suggestedvalues": [ "y", "yl" ],			"suggested": true },		"In-book": { "aliases": [ "In-book Reference" ],			"label": "In-book Reference", "example": "Book 78, Hadith 157", "type": "line", "suggested": true }	},	"paramOrder": [ "1",		"2",		"b", "s", "In-book" ],	"description": "Cite Hadiths from sunnah.com. This Template will create a link of hadiths for references. This is CiteHadith Template." }