Difference between revisions of "Template:Abudawud"

From WikiIslam, the online resource on Islam
Jump to: navigation, search
[checked revision][checked revision]
(Changed template for Quranx.com)
Line 5: Line 5:
 
   }}|
 
   }}|
 
   [http://quranx.com/Hadith/AbuDawud/ByIndex/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}}]
 
   [http://quranx.com/Hadith/AbuDawud/ByIndex/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|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.-->
 
<!--The <nowiki>{{#expr: }}</nowiki> function in the template is used to trim any leading zeros in the numbers.-->
 
<!--the old cmje links were constructed making use of the <nowiki>{{three digit|}}</nowiki> function)-->
 
<!--the old cmje links were constructed making use of the <nowiki>{{three digit|}}</nowiki> function)-->
<noinclude>
 
 
This template is used to provide sources for Sunan Abu Dawud references. It formerly produced links to the cmje website, which no longer works. We are currently using QuranX.com instead, which is able to handle USC-MSA and in-book reference conventions.<BR>
 
This template is used to provide sources for Sunan Abu Dawud references. It formerly produced links to the cmje website, which no longer works. We are currently using QuranX.com instead, which is able to handle USC-MSA and in-book reference conventions.<BR>
  

Revision as of 20:41, 3 January 2017

Sunan Abu Dawud 1:1 This template is used to provide sources for Sunan Abu Dawud references. It formerly produced links to the cmje website, which no longer works. We are currently using QuranX.com instead, which is able to handle USC-MSA and in-book reference conventions.

Usage

First Parameter is the Book Number.
Second Parameter is the Verse Number.
Third Parameter (optional) is for the alternative, in-book reference system (default is USC-MSA)

To use this template with USC-MSA numbering: {{Abudawud|###|###}}

To use this template with In-book numbering: {{Abudawud|###|###|in-book}}


Example for hadiths using USC-MSA numbering
{{Abudawud|13|2315}}

Produces:

Sunan Abu Dawud 13:2315
Example for the same hadith using in-book numbering
{{Abudawud|14|10|in-book}}

Produces:

Sunan Abu Dawud 10 (3rd parameter error)