Permanently protected template

Difference between revisions of "Template:Reference Hadith"

From islamWiki...
Jump to: navigation, search
(Reference name addition, bug resolution.)
m (Remove newline which was causing problems when template was used inline.)
 
Line 77: Line 77:
 
   }}
 
   }}
 
  }}
 
  }}
}}
+
}}<noinclude>
<noinclude>
 
 
<references />
 
<references />
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 17:54, 1 November 2019

[1]

  1. Sahih al-Bukhari 1, Book 1, Hadith 1 (Arabic Reference), Book 1, Hadith 1 (In-book reference), Vol. 1, Book 1, Hadith 1 (English Reference)
Documentation icon Template documentation[view] [edit] [history] [purge]
  • It is recommended that Hadith translations and its references are quoted from Sunnah.com
  • The parameter Grade may be unnecessary for the Sahih al-Bukhari and Sahih Muslim Hadith compilations.

Usage

{{Reference Hadith| hadith collection = Sunan Abi Dawud| hadith number = 2564| book = Book of Jihad (Kitab Al-Jihad)| arabic reference =| in-book reference = Book 15, Hadith 88| english reference = Book 14, Hadith 2558| url = https://sunnah.com/abudawud/15/88| grade = Sahih (Al-Albani)|ref name=sadtfsfbojkaj}}

Source code

In order to allow reuse of cited references, the name parameter had to be included for {{#tag:ref|refcontent|name=name|group=groupname}}. However, {{#if:condition|true|false}} couldn't diretly be used inside #tag:ref for the name parameter, therefore the check for it had to be included outside. A similar method is employed in Template:Refn. The integer parameter aliases start from "2", so as to allow "1" to be used for the text parameter in Template:Quote Hadith.

TemplateData

islamWiki template for referencing Hadiths.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Hadith collectionhadith collection2

Name of Hadith collection which includes the Hadith being referenced.

Default
Provide hadith collection name
Example
Sahih al-Bukhari
Auto value
empty
Stringrequired
Hadith numberhadith number3

If the Hadith collection ascribes a separate single number to the Hadith being referenced, without the use of a volume or chapter.

Default
empty
Example
1
Auto value
empty
Numbersuggested
URLurl4

Link to an online copy of the referenced Hadith

Default
empty
Example
https://sunnah.com/bukhari/1/1
Auto value
empty
URLsuggested
Book/Chapter namebook5

Some Hadith collections include a name of book or chapter under which a particular Hadith is written down.

Default
empty
Example
Book of Revelation
Auto value
empty
Stringsuggested
Arabic referencearabic reference6

In case an Arabic reference for the referenced Hadith is included in the source.

Default
empty
Example
Book 1, Hadith 1
Auto value
empty
Stringsuggested
In-book referencein-book reference7

In case an In-book reference for the quoted Hadith is included in the source.

Default
empty
Example
in-book reference
Auto value
empty
Stringsuggested
English referenceenglish reference8

References such as those used in USC-MSA web (English) references

Default
empty
Example
Vol. 1, Book 1, Hadith 1
Auto value
empty
Stringsuggested
Gradegrade9

The reliability grade for the Hadith. Sahih Muslim and Bukhari's grade may not be necessary.

Default
empty
Example
Sahih (Darussalam)
Auto value
empty
Stringsuggested
Reference namereference nameref name

When the Hadith reference is to be reused later on in the article, include a name for the reference.

Default
empty
Example
sadtfsfbojkaj
Auto value
empty
Stringsuggested
Orange trademark.svg
islamWiki
This template page is, or contains, an islamWiki original asset and its use is subject to additional original asset policy restrictions, and may require permission.
IslamWiki-logo-v2.svg