Template:Ibn Majah: Difference between revisions

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
(Forgot that noinclude must be on same line as the template to avoid creating new lines)
No edit summary
Line 1: Line 1:
[http://quranx.com/Hadith/IbnMajah/DarusSalam/Volume-{{#expr:{{{2|1}}}}}/Book-{{#expr:{{{3|1}}}}}/Hadith-{{#expr:{{{4|1}}}}}/ Sunan Ibn Majah {{{2|1}}}:{{{3|1}}}:{{{4|1}}}]<noinclude>
[https://quranx.com/Hadith/IbnMajah/DarusSalam/Volume-{{#expr:{{{2|1}}}}}/Book-{{#expr:{{{3|1}}}}}/Hadith-{{#expr:{{{4|1}}}}}/ Sunan Ibn Majah {{{2|1}}}:{{{3|1}}}:{{{4|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 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 <nowiki>{{#expr: }}</nowiki> function in the template is used to trim any leading zeros in the numbers.-->

Revision as of 16:14, 3 August 2018

Sunan Ibn Majah 1:1:1

This template is used to provide sources for Ibn Majah references as found in the Dar-us-Salam print edition (called "English translation" on sunnah.com). It formerly produced links to webcitation archives of the relevant book page on the sunnah.com website. The user then had to find the hadith in the book. We are currently using QuranX.com instead, which is able to handle Dar-us-Salam, In-book, and reference conventions to link to specific hadiths.


Usage

First Parameter is the Book Number in the url on sunnah.com (this can be left blank now that we are using Quranx).
Second Parameter is the Volume Number in the Dar-us-Salam edition.
Third Parameter is the Book Number in the Dar-us-Salam edition.
Forth Parameter is the Hadith Number in the Dar-us-Salam edition.

The first parameter is retained for the sake of citations that used the old template linking to archives of the sunnah.com books. It can be left blank and is currently ignored by the template. In any case for Ibn Majah it was always the same as the 3rd parameter.

To cite a hadith: {{Ibn Majah||#|#|#}} (note the empty 1st parameter).

Example
{{Ibn Majah||2|6|1477}}

Produces:

Sunan Ibn Majah 2:6:1477