Modèle:Muwatta

De WikiIslam
Révision datée du 15 octobre 2023 à 05:11 par Exmoose (discussion | contributions) (Page créée avec « {{#vardefine:Clean4thParameter|}} <!--If parameter 4 exists, set the variable to the number at the start of it (1-4 digits) if there is one due to misuse by some editors. Leaves out any suffix--> {{#if: {{{4|}}} | {{#ifexpr: {{#pos:0123456789|{{#sub:{{{4|}}}|0|1}}}} | {{#vardefine:Clean4thParameter|{{#sub:{{{4|}}}|0|1}}}} }} {{#ifexpr: {{#pos:0123456789|{{#sub:{{{4|}}}|1|1}}}} | {{#vardefine:Clean4thParameter|{{#sub:{{{4|}}}|0|2}}}} }} {{#ife... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Al-Muwatta 1:1

This template will create a link to the specified hadith in Muwatta Malik. Please visit its template page or read the Citing Sources page for instructions on its use with alternative hadith reference systems.

Paramètres du modèle

ParamètreDescriptionTypeÉtat
Book number1

The Book number when using the USC-MSA or Arabic reference system

Par défaut
1
Exemple
27
Nombreobligatoire
Section number2

The Section number when using the USC-MSA reference system (can be left blank)

Par défaut
1
Exemple
27
Nombresuggéré
Hadith number3

The hadith number

Par défaut
1
Exemple
8
Nombreobligatoire
Suffix4

Any suffix letter after the hadith number (can be left blank)

Par défaut
Exemple
a
Chaînesuggéré
Alternative reference system5

Enter arabic when you are using the Arabic reference system (leave blank if using the USC-MSA reference system)

Par défaut
Exemple
arabic
Chaînesuggéré

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.


Usage

First Parameter is the Book Number.
Second Parameter is the Section Number (leave this empty - it is ignored by the current template and was used for the cmje site)
Third Parameter is the Hadith Number.
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 Arabic reference system (default is USC-MSA).

Example for hadiths using MSA-USC numbering
{{Muwatta|14||8}} (note the empty 2nd parameter)

Produces:

Al-Muwatta 14:8

Example for the same hadith using Arabic reference numbering
{{Muwatta|14||465||arabic}} (note the empty 2nd and 4th parameters)

Produces:

Al-Muwatta 14:465 (Arabic Ref)