Template:Al Tirmidhi: Difference between revisions

Jump to navigation Jump to search
Forgot that noinclude must be on same line as the template to avoid creating new lines
[checked revision][checked revision]
(Updated to use QuranX so links can go to a specific hadith instead of just the book)
(Forgot that noinclude must be on same line as the template to avoid creating new lines)
Line 1: Line 1:
[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}}}]
[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>
<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.-->
Line 14: Line 13:
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, but it is recommended to complete it in case we ever need to revert back to the old system.
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 (for Tirmidhi, the sunnah.com "In-book" book numbers differ from the Dar-us-Salam book numbers).


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).
Editors, em-bypass-2, Reviewers, rollback, Administrators
2,743

edits

Navigation menu