Template:Al Tirmidhi: Difference between revisions
| [checked revision] | [checked revision] |
Lightyears (talk | contribs) No edit summary |
Lightyears (talk | contribs) No edit summary |
||
| Line 10: | Line 10: | ||
"1": { | "1": { | ||
"label": "Book number on sunnah.com", | "label": "Book number on sunnah.com", | ||
"description": " | "description": "Enter a single empty space (obsolete parameter)", | ||
"required": false, | "required": false, | ||
"suggested": true, | "suggested": true, | ||
| Line 49: | Line 49: | ||
==Usage== | ==Usage== | ||
First Parameter is the Book Number in the url on sunnah.com ( | First Parameter is the Book Number in the url on sunnah.com (now that we are using Quranx, this is obsolete and can be left blank, but enter a single empty space if using Visual Editor).<BR> | ||
Second Parameter is the Volume Number in the Dar-us-Salam edition.<BR> | Second Parameter is the Volume Number in the Dar-us-Salam edition.<BR> | ||
Third Parameter is the Book Number in the Dar-us-Salam edition.<BR> | Third Parameter is the Book Number in the Dar-us-Salam edition.<BR> | ||
Forth Parameter is the Hadith 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, | 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. However, '''if using Visual Editor''', enter an empty space so that the generated wikitext will have a pipe ("|") for that first empty parameter i.e. when saved it will generate for example <code><nowiki>{{al Tirmidhi||1|2|150}}</nowiki></code> instead of <code><nowiki>{{al Tirmidhi|2=1|3=2|4=150}}</nowiki></code>. This is preferred in order to keep Visual Editor generated wikitext consistent with the existing wikitext across the site. | ||
To cite a hadith: <tt><nowiki>{{Al Tirmidhi||#|#|#}}</nowiki></tt> (note the empty 1st parameter). | To cite a hadith: <tt><nowiki>{{Al Tirmidhi||#|#|#}}</nowiki></tt> (note the empty 1st parameter). | ||
Latest revision as of 01:22, 13 November 2025
This template will create a link to the specified hadith in Jami` at-Tirmidhi. Please visit its template page or read the Citing Sources page for instructions on its use.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Book number on sunnah.com | 1 | Enter a single empty space (obsolete parameter)
| Number | suggested |
| Volume number | 2 | The volume number in the Dar-us-Salam print edition (called English translation on sunnah.com)
| Number | required |
| Book number | 3 | The book number in the Dar-us-Salam print edition (called English translation on sunnah.com)
| Number | required |
| Hadith number | 4 | The hadith number in the Dar-us-Salam print edition (called English translation on sunnah.com)
| Number | required |
This template is used to provide sources for Tirmidhi 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 (now that we are using Quranx, this is obsolete and can be left blank, but enter a single empty space if using Visual Editor).
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. However, if using Visual Editor, enter an empty space so that the generated wikitext will have a pipe ("|") for that first empty parameter i.e. when saved it will generate for example {{al Tirmidhi||1|2|150}} instead of {{al Tirmidhi|2=1|3=2|4=150}}. This is preferred in order to keep Visual Editor generated wikitext consistent with the existing wikitext across the site.
To cite a hadith: {{Al Tirmidhi||#|#|#}} (note the empty 1st parameter).
- Example
- {{Al Tirmidhi||6|45|3380}}
Produces: