Template:Abudawud: Difference between revisions

Jump to navigation Jump to search
Expr function should not be used for DarusSalam refs which occasionally have suffixes for this collection. It was never actually even needed for the USC refs as the Three digit template added leading zeros as needed for the old cmje links but the edit source never had them (as the template would then add too many)
[checked revision][checked revision]
No edit summary
(Expr function should not be used for DarusSalam refs which occasionally have suffixes for this collection. It was never actually even needed for the USC refs as the Three digit template added leading zeros as needed for the old cmje links but the edit source never had them (as the template would then add too many))
 
Line 1: Line 1:
{{#if: {{{3|}}}  |  
{{#if: {{{3|}}}  |  
   {{ #switch: {{lc: {{{3|}}} }}  
   {{ #switch: {{lc: {{{3|}}} }}  
     | darussalam= [https://quranx.com/Hadith/AbuDawud/DarusSalam/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (Dar-us-Salam Ref)]
     | darussalam= [https://quranx.com/Hadith/AbuDawud/DarusSalam/Hadith-{{{2|1}}}/ Sunan Abu Dawud {{{2|1}}} (Dar-us-Salam Ref)]
     | hasan = [https://quranx.com/Hadith/AbuDawud/Hasan/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (Ahmad Hasan Ref)]
     | hasan = [https://quranx.com/Hadith/AbuDawud/Hasan/Hadith-{{{2|1}}}/ Sunan Abu Dawud {{{2|1}}} (Ahmad Hasan Ref)]
     | [https://quranx.com/Hadith/AbuDawud/Reference/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{2|1}}} (3rd parameter error)]
     | [https://quranx.com/Hadith/AbuDawud/Reference/Hadith-{{{2|1}}}/ Sunan Abu Dawud {{{2|1}}} (3rd parameter error)]
   }}|
   }}|
   [https://quranx.com/Hadith/AbuDawud/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}}]
   [https://quranx.com/Hadith/AbuDawud/USC-MSA/Book-{{{1|1}}}/Hadith-{{{2|1}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|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 old cmje links were constructed making use of the <nowiki>{{three digit|}}</nowiki> function)-->


<templatedata>
<templatedata>
Editors, em-bypass-2, Reviewers, rollback, Administrators
2,899

edits

Navigation menu