Difference between revisions of "Template:Al Tirmidhi"

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "[http://www.webcitation.org/query?url=http://sunnah.com/tirmidhi/{{{1|1}}}&date=2014-02-03 Al Tirmidhi {{{2|1}}}:{{{3|1}}}:{{{4|1}}}]<noinclude> ==Usage== First Parameter is ...")
 
(Updated to use QuranX so links can go to a specific hadith instead of just the book)
Line 1: Line 1:
[http://www.webcitation.org/query?url=http://sunnah.com/tirmidhi/{{{1|1}}}&date=2014-02-03 Al Tirmidhi {{{2|1}}}:{{{3|1}}}:{{{4|1}}}]<noinclude>
+
[http://quranx.com/Hadith/Tirmidhi/DarusSalam/Volume-{{#expr:{{{2|1}}}}}/Book-{{#expr:{{{3|1}}}}}/Hadith-{{#expr:{{{4|1}}}}}/ Jami` at-Tirmidhi {{{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 <nowiki>{{#expr: }}</nowiki> function in the template is used to trim any leading zeros in the numbers.-->
 +
<!--For the previous version of this template, all 49 books, the about page and the table of contents on sunnah.com were archived on webcitation.org with the date parameter 2014-02-03 and the template only made use of the 1st (sunnah.com book number) of the 4 parameters.-->
 +
 
 +
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==
 
==Usage==
First Parameter is the URL ending (Book Number).<BR>
+
First Parameter is the Book Number in the url on sunnah.com (recommended, but this can be left blank now that we are using Quranx).<BR>
Second Parameter is the Volume Number.<BR>
+
Second Parameter is the Volume Number in the Dar-us-Salam edition.<BR>
Third Parameter is the Book Number.<BR>
+
Third Parameter is the Book Number in the Dar-us-Salam edition.<BR>
Forth Parameter is the Hadith Number.<BR>
+
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, but it is recommended to complete it in case we ever need to revert back to the old system.
 +
 
 +
To cite a hadith:    <tt><nowiki>{{Al Tirmidhi||#|#|#}}</nowiki></tt> (note the empty 1st parameter).
  
To use this type:     <tt><nowiki>{{Al Tirmidhi|###|###|###|###}}</nowiki></tt>
+
;Example:
 +
:<nowiki>{{Al Tirmidhi||6|45|3380}}</nowiki>
  
All 49 books, the about page and the table of contents have been archived.
+
Produces:
 +
:{{Al Tirmidhi||6|45|3380}}
  
[[Category:Islamic text templates]]
+
[[Category:Islamic text templates|Muslim-usc]]
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 01:52, 14 February 2017

Jami` at-Tirmidhi 1:1:1


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 (recommended, but 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, but it is recommended to complete it in case we ever need to revert back to the old system.

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

Example
{{Al Tirmidhi||6|45|3380}}

Produces:

Jami` at-Tirmidhi 6:45:3380