Template:Abu Dawud: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
mNo edit summary |
Lightyears (talk | contribs) (Changed template for Quranx.com) |
||
Line 1: | Line 1: | ||
{{#if: {{{3|}}} | | |||
{{ #switch: {{lc: {{{3|}}} }} | |||
| in-book = [http://quranx.com/Hadith/AbuDawud/ByIndex/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}} (In-Book Ref)] | |||
| [http://quranx.com/Hadith/AbuDawud/ByIndex/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}} (3rd parameter error)] | |||
}}| | |||
[http://quranx.com/Hadith/AbuDawud/ByIndex/USC-MSA/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{2|1}}}}}/ Sunan Abu Dawud {{{1|1}}}:{{{2|1}}}] | |||
}} | |||
This template is used to provide sources for Sunan Abu Dawud references | <!--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)--> | |||
<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> | |||
==Usage== | ==Usage== | ||
First Parameter is the Book Number.<BR> | First Parameter is the Book Number.<BR> | ||
Second Parameter is the Verse Number.<BR> | Second Parameter is the Verse Number.<BR> | ||
Third Parameter (optional) is for the alternative, in-book reference system (default is USC-MSA) | |||
[[Category:Islamic text templates| | To use this template with USC-MSA numbering: <tt><nowiki>{{Abu Dawud|###|###}}</nowiki></tt> | ||
To use this template with In-book numbering: <tt><nowiki>{{Abu Dawud|###|###|in-book}}</nowiki></tt> | |||
;Example for hadiths using USC-MSA numbering: | |||
:<nowiki>{{Abu Dawud|13|2315}}</nowiki> | |||
Produces: | |||
:{{Abu Dawud|13|2315}} | |||
;Example for the same hadith using in-book numbering: | |||
:<nowiki>{{Abu Dawud|14|10|in-book}}</nowiki> | |||
Produces: | |||
:{{Abu Dawud|14|10|in-book}} | |||
[[Category:Islamic text templates|Muslim-usc]] | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 02:16, 3 January 2017
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: {{Abu Dawud|###|###}}
To use this template with In-book numbering: {{Abu Dawud|###|###|in-book}}
- Example for hadiths using USC-MSA numbering
- {{Abu Dawud|13|2315}}
Produces:
- Example for the same hadith using in-book numbering
- {{Abu Dawud|14|10|in-book}}
Produces: