2,743
edits
[checked revision] | [checked revision] |
Lightyears (talk | contribs) No edit summary |
Lightyears (talk | contribs) (Clarified comments) |
||
Line 10: | Line 10: | ||
{{#ifexpr: {{#pos:0123456789|{{#sub:{{{4|}}}|3|1}}|}} | {{#vardefine:Clean4thParameter|{{#sub:{{{4|}}}|0|4}}}} | {{#ifexpr: {{#pos:0123456789|{{#sub:{{{4|}}}|3|1}}|}} | {{#vardefine:Clean4thParameter|{{#sub:{{{4|}}}|0|4}}}} | ||
}} | }} | ||
}}<!--If parameter 5 exists and is not erroneously mistyped create an | }}<!--If parameter 5 exists and is not erroneously mistyped, create an In-book reference url with 1st and 3rd parameters. If no 5th parameter, create a USC-MSA ref url, using parameters 2 and 4 for cases where the old template was misused (i.e. 4 contains a number), or otherwise with parameters 1 and 3-->{{#if: {{{5|}}} | | ||
{{ #switch: {{lc: {{{5|}}} }} | {{ #switch: {{lc: {{{5|}}} }} | ||
| in-book = [http://quranx.com/Hadith/Malik/ByIndex/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Al-Muwatta {{{1|1}}}:{{{3|1}}} (In-Book Ref)] | | in-book = [http://quranx.com/Hadith/Malik/ByIndex/In-Book/Book-{{#expr:{{{1|1}}}}}/Hadith-{{#expr:{{{3|1}}}}}/ Al-Muwatta {{{1|1}}}:{{{3|1}}} (In-Book Ref)] | ||
Line 22: | Line 22: | ||
<!--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)--> | ||
This template is used to provide sources for al-Muwatta 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. | This template is used to provide sources for al-Muwatta 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 (Arabic) reference conventions. | ||
Line 28: | Line 28: | ||
First Parameter is the Book Number.<BR> | First Parameter is the Book Number.<BR> | ||
Second Parameter is the Section Number (leave this empty - it is ignored by the current template and was used for the cmje site)<BR> | Second Parameter is the Section Number (leave this empty - it is ignored by the current template and was used for the cmje site)<BR> | ||
Third Parameter is the | Third Parameter is the Hadith Number.<BR> | ||
Forth Parameter is for the a, b, c etc suffix which some hadiths have on cmje (leave this empty - it is ignored by the current template except for any number within it due to some editors incorrectly using the template in the past by putting the hadith number in there (with or without suffix) and the book number in the 2nd parameter) | Forth Parameter is for the a, b, c etc suffix which some hadiths have on cmje (leave this empty - it is ignored by the current template except for any number within it due to some editors incorrectly using the template in the past by putting the hadith number in there (with or without suffix) and the book number in the 2nd parameter) | ||
Fifth Paramater (optional) is used to indicate that you are using the alternative In-book referencing system (default is USC-MSA). | |||
The In-book reference system for Muwatta Malik is on other sites called 'Arabic Reference'. | |||
;Example for hadiths using MSA-USC numbering: | ;Example for hadiths using MSA-USC numbering: | ||
:<nowiki>{{Muwatta|14||8}}</nowiki> (note the empty | :<nowiki>{{Muwatta|14||8}}</nowiki> (note the empty 2nd parameter) | ||
Produces: | Produces: | ||
Line 43: | Line 46: | ||
Produces: | Produces: | ||
:{{Muwatta|14||465||in-book}} | :{{Muwatta|14||465||in-book}} | ||