Template:Al Tirmidhi: Difference between revisions

no edit summary
[checked revision][checked revision]
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
"params": {
"params": {
"1": {
"1": {
"label": "Book number on sunnah.com (recommended, but can be left blank)",
"label": "Book number on sunnah.com",
"description": "The Book number in the url on sunnah.com",
"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 (recommended, but this can be left blank now that we are using Quranx).<BR>
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, 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).
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).
Editors, em-bypass-2, Reviewers, rollback, Administrators
3,454

edits