|
|
(50 intermediate revisions by 19 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{
| | {{#ifeq:{{lc:{{{style|{{{s|sup}}}}}} }} |
| #ifeq: {{lc: {{{style|sup}}} }} | |
| | sup | | | sup |
| | “{{{quote|ERROR: Quote Missing}}}”<sup><nowiki>[</nowiki> | | |{{#if:{{{quote|{{{q|}}}}}} | "{{{quote|{{{q|}}}}}}" }}<sup><nowiki>[</nowiki> |
| }}{{ | | }}{{#switch:{{lc:{{{expand|{{{begin|{{{b|yes}}}}}}}}} }} |
| #if: {{{expanded|}}} | | | y |
| | [[Qur'an|Al-Qur'an]] | | | yes={{#ifeq:{{{link|}}} | no | Quran | [[Quran]]}} |
| }}[{{ | | | no= |
| #if: {{{2|}}} | | | n= |
| | http://www.usc.edu/dept/MSA/quran/{{three digit|{{{1}}}}}.qmt.html#{{three digit|{{{1}}}}}.{{three digit|{{{2|ERROR}}}}} {{{1}}}:{{{2|ERROR}}} | | | #default={{#switch:{{lc:{{{style|{{{s|sup}}}}}} }} |
| }}{{ | | | ref |
| #if: {{{rangeend|}}} | | | r={{#ifeq:{{{link|}}} | no | Quran | [[Quran]]}} |
| |-{{{rangeend}}} | | }} |
| }}]{{ | | }}[{{#if:{{{2|}}} |
| #ifeq: {{lc: {{{style|sup}}} }} | | |http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A2002.02.000{{#switch:{{{translator|{{{t|{{{tn|}}}}}}}}}|p=2|s=3|y=4|6}}%3Asura%3D{{{1}}}%3Averse%3D{{{2}}} {{{1}}}:{{{2|ERROR}}} |
| | }}{{#if:{{{end|{{{e|}}}}}} |
| | | –{{{end|{{{e|}}}}}} |
| | }}]{{#switch:{{lc:{{{style|{{{s|sup}}}}}} }} |
| | nosup | | | nosup |
| | {{ | | | ns |
| #if: {{{translator|}}} | | | r |
| | <sup>([[Qur'an translations|Translated]] by
| | | ref={{#if:{{{translator|{{{t|}}}}}} |
| }} | | |{{#if:{{{tn|}}}| <sup>( | <sup>([[Quran translations|Translated]] by }} |
| | {{ | | |{{#if:{{{tn|}}}| <sup>( }} |
| #if: {{{translator|}}} | | }} |
| | (
| | | #default={{#if:{{{translator|{{{t|}}}}}} | ([[Quran translations|Translated]] by | {{#if:{{{tn|}}}| ( }} }} |
| | }}{{#if:{{{translator|{{{t|}}}}}} |
| | |{{#switch:{{lc:{{{translator|{{{t|}}}}}} }} |
| | | y=[[Abdullah Yusuf Ali|Yusuf Ali]] |
| | | p=[[Marmaduke Pickthall|Pickthall]] |
| | | s=[[Muhammad Habib Shakir|Shakir]] |
| | | a=[[Muhammad Asad|Asad]] |
| | | #default={{{translator|{{{t|}}}}}} |
| | }} |
| | |{{#if:{{{tn|}}} |
| | |{{#switch:{{lc:{{{tn|}}} }} |
| | | y=[[Abdullah Yusuf Ali|Yusuf Ali]] |
| | | p=[[Marmaduke Pickthall|Pickthall]] |
| | | s=[[Muhammad Habib Shakir|Shakir]] |
| | | a=[[Muhammad Asad|Asad]] |
| | | #default={{{tn|}}} |
| | }} |
| | }} |
| | }}{{#if:{{{translator|{{{t|}}}}}} |
| | | ) |
| | | {{#if:{{{tn|}}} |
| | | ) |
| }} | | }} |
| }}{{ | | }}{{#switch:{{lc:{{{style|{{{s|sup}}}}}} }} |
| #if: {{{translator|}}}
| |
| | {{ #switch: {{lc: {{{translator|}}} }} | y=[[Abdullah Yusuf Ali|Yusuf Ali]] | p=[[Marmaduke Pickthall|Pickthall]] | s=[[Mohammed Habib Shakir|Shakir]] | #default={{{translator}}} }})
| |
| }}{{ | |
| #ifeq: {{lc: {{{style|sup}}} }}
| |
| | nosup | | | nosup |
| | {{ | | | ns |
| #if: {{{translator|}}}
| | | r |
| | </sup>
| | | ref={{#if:{{{translator|{{{t|}}}}}} | </sup> | {{#if:{{{tn|}}}|</sup> }} }} |
| }}
| | }}{{#ifeq:{{lc:{{{style|{{{s|sup}}}}}} }} |
| }}{{ | |
| #ifeq: {{lc: {{{style|sup}}} }} | |
| | sup | | | sup |
| | <nowiki>]</nowiki></sup> | | | <nowiki>]</nowiki></sup> |
| | {{ | | | {{#if:{{{quote|{{{q|}}}}}} | . "{{{quote|{{{q|ERROR: Quote Missing}}}}}}" }} |
| #if: {{{quote|}}}
| | }}<noinclude> |
| | . “{{{quote|ERROR: Quote Missing}}}”
| | {{documentation}} |
| }}
| |
| }}</includeonly>
| |
| | |
| <noinclude>
| |
| {{esoteric}}
| |
| ==Usage==
| |
| <pre>
| |
| {{cite quran|#1|#2
| |
| |rangeend=
| |
| |translator=
| |
| |style=
| |
| |expanded=
| |
| |quote=
| |
| }}
| |
| </pre>
| |
| ==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)
| |
| * quote — the text of the quotation (this parameter is optional if style is used)
| |
| | |
| ==Optional Parameters==
| |
| * rangeend — last ayah number being cited
| |
| * translator — can be: y (for [[Abdullah Yusuf Ali|Yusuf Ali]]), p (for [[Marmaduke Pickthall|Pickthall]]), s (for [[Mohammed Habib Shakir|Shakir]]) or name of other translator
| |
| * style — nosup to use non-superscript style
| |
| * expanded — prepends link with "[[Qur'an|Al-Qur'an]]"
| |
| | |
| ==Examples==
| |
| '''Example 1'''
| |
| <pre>{{cite quran|5|4|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|quote=quoted text}} | |
| | |
| '''Example 2'''
| |
| <pre>{{cite quran|5|4|rangeend=7|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|rangeend=7|quote=quoted text}} | |
| | |
| '''Example 3'''
| |
| <pre>{{cite quran|5|4|rangeend=7|quote=quoted text|expanded=yes}}</pre>
| |
| {{cite quran|5|4|rangeend=7|quote=quoted text|expanded=yes}}
| |
| | |
| '''Example 4'''
| |
| <pre>{{cite quran|5|4|translator=y|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|translator=y|quote=quoted text}}
| |
| | |
| '''Example 5'''
| |
| <pre>{{cite quran|5|4|rangeend=7|translator=y|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|rangeend=7|translator=p|quote=quoted text}}
| |
| | |
| '''Example 6'''
| |
| <pre>{{cite quran|5|4|translator=y|quote=quoted text|expanded=yes}}</pre>
| |
| {{cite quran|5|4|translator=y|quote=quoted text|expanded=yes}}
| |
| | |
| '''Example 7'''
| |
| <pre>{{cite quran|5|4|rangeend=7|style=nosup|translator=p|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|rangeend=7|style=nosup|translator=p|quote=quoted text}}
| |
| | |
| '''Example 8'''
| |
| <pre>{{cite quran|5|4|rangeend=7|style=nosup|translator=p}}</pre>
| |
| {{cite quran|5|4|rangeend=7|style=nosup|translator=p}}
| |
| | |
| '''Example 9'''
| |
| <pre>{{cite quran|5|4|rangeend=7|style=nosup|expanded=yes}}</pre>
| |
| {{cite quran|5|4|rangeend=7|style=nosup|expanded=yes}} | |
| | |
| '''Example 10'''
| |
| <pre>{{cite quran|5|4|rangeend=7|style=nosup|expanded=yes|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|rangeend=7|style=nosup|expanded=yes|quote=quoted text}}
| |
| | |
| '''Example 11'''
| |
| <pre>{{cite quran|5|4|rangeend=7|style=nosup|expanded=yes|translator=s|quote=quoted text}}</pre>
| |
| {{cite quran|5|4|rangeend=7|style=nosup|expanded=yes|translator=s|quote=quoted text}}
| |
| </noinclude> | | </noinclude> |