Template:Cite Quran: Difference between revisions

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 6: Line 6:
#ifeq: {{lc: {{{expand|yes}}} }}
#ifeq: {{lc: {{{expand|yes}}} }}
   | yes
   | yes
   | [[Compendium of Muslim Texts|Qur'an]] 
   | Qur'an 
   | {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Compendium of Muslim Texts|Qur'an]]  }}
   | {{#ifeq: {{lc: {{{style|sup}}} }} | ref | Qur'an  }}
}}[{{
}}[{{
#if: {{{2|}}}
#if: {{{2|}}}
Line 13: Line 13:
     | y  
     | y  
     | p  
     | p  
     | s={{Compendium-of-muslim-texts-base-url}}/quran/verses/{{three digit|{{{1}}}}}-qmt.php#{{three digit|{{{1}}}}}.{{three digit|{{{2|ERROR}}}}} {{{1}}}:{{{2|ERROR}}}
     | s=http://quranx.com/{{{1}}}.{{{2|ERROR}}}{{#if: {{{end|}}} |-{{{end}}}}} {{{1}}}:{{{2|ERROR}}}
     | #default=[List of translations of the Qur'an{{!}}{{{1}}}:{{{2|ERROR}}}
     | #default=[List of translations of the Qur'an{{!}}{{{1}}}:{{{2|ERROR}}}
   }}
   }}

Revision as of 02:43, 29 December 2016

Error creating thumbnail: Unable to save thumbnail to destination
This template employs some extremely complicated and esoteric features of template syntax.

Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.


NOTE

Currently this template is not working correctly. Please use {{Quran}} instead.

Usage

{{cite quran|#1|#2
 | end=
 | translator=
 | style=
 | expand=
 | quote=
}}

Required Parameters

  • #1
  • integer representing the number of the surah (this must be the first parameter)
  • #2
  • integer representing the ayah number (this must be the second parameter)

Optional Parameters

  • end
  • last ayah number being cited
  • quote
  • the text of the quotation
  • translator
  • expand=no
  • does not prepend link with "Qur'an"
  • style
  • nosup to use non-superscript style
  • ref to use expanded form for citing as a reference (short form for style=nosup|expand=yes)

Examples

Example 1

{{cite quran|5|4|quote=quoted text}}

“quoted text”[Qur'an 5:4]

Example 2

{{cite quran|5|4|expand=no|quote=quoted text}}

“quoted text”[5:4]

Example 3

{{cite quran|5|4|end=7|quote=quoted text}}

“quoted text”[Qur'an 5:4-7]

Example 5

{{cite quran|5|4|translator=y|quote=quoted text}}

“quoted text”[Qur'an 5:4 (Yusuf Ali)]

Example 6

{{cite quran|5|4|end=7|translator=y|quote=quoted text}}

“quoted text”[Qur'an 5:4-7 (Pickthall)]

Example 8

{{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}}

Qur'an 5:4-7 (Translated by Pickthall). “quoted text”

Example 9

{{cite quran|5|4|end=7|style=nosup|translator=p}}

Qur'an 5:4-7 (Translated by Pickthall)

Example 10

{{cite quran|5|4|end=7|style=nosup}} OR
{{cite quran|5|4|end=7|style=ref}}

Qur'an 5:4-7
Qur'an 5:4-7

Example 11

{{cite quran|5|4|end=7|style=ref|quote=quoted text}}

Qur'an 5:4-7. “quoted text”

Example 12

{{cite quran|5|4|end=7|style=ref|translator=s|quote=quoted text}}

Qur'an 5:4-7 (Translated by Shakir). “quoted text”

Example 13

{{cite quran|5|4|end=7|style=ref|translator=a|quote=quoted text}}

Qur'an 5:4-7 (Translated by Asad). “quoted text”