Template:Cite Quran: Difference between revisions
meta>AA m Changed Al-Qur'an → Qur'an |
meta>AA Change expanded → expand. Add Asad as know translator. |
||
Line 4: | Line 4: | ||
| “{{{quote|ERROR: Quote Missing}}}”<sup><nowiki>[</nowiki> | | “{{{quote|ERROR: Quote Missing}}}”<sup><nowiki>[</nowiki> | ||
}}{{ | }}{{ | ||
#if: {{{ | #if: {{{expand|}}} | ||
| [[Qur'an]] | | [[Qur'an]] | ||
}}[{{ | }}[{{ | ||
#if: {{{2|}}} | #if: {{{2|}}} | ||
| http://www.usc.edu/dept/MSA/quran/{{three digit|{{{1}}}}}.qmt.html#{{three digit|{{{1}}}}}.{{three digit|{{{2|ERROR}}}}} {{{1}}}:{{{2|ERROR}}} | | {{ #switch: {{lc: {{{translator|y}}} }} | ||
| y | |||
| p | |||
| s=http://www.usc.edu/dept/MSA/quran/{{three digit|{{{1}}}}}.qmt.html#{{three digit|{{{1}}}}}.{{three digit|{{{2|ERROR}}}}} {{{1}}}:{{{2|ERROR}}} | |||
| #default=[List of translations of the Qur'an{{!}}{{{1}}}:{{{2|ERROR}}} | |||
}} | |||
}}{{ | }}{{ | ||
#if: {{{rangeend|}}} | #if: {{{rangeend|}}} | ||
|-{{{rangeend}}} | |-{{{rangeend}}} | ||
}}]{{ | }}]{{ | ||
#if: {{{2|}}} | |||
| {{ #switch: {{lc: {{{translator|y}}} }} | |||
| y | |||
| p | |||
| s= | |||
| #default=] | |||
}} | |||
}}{{ | |||
#ifeq: {{lc: {{{style|sup}}} }} | #ifeq: {{lc: {{{style|sup}}} }} | ||
| nosup | | nosup | ||
Line 25: | Line 38: | ||
}}{{ | }}{{ | ||
#if: {{{translator|}}} | #if: {{{translator|}}} | ||
| {{ #switch: {{lc: {{{translator|}}} }} | y=[[Abdullah Yusuf Ali|Yusuf Ali]] | p=[[Marmaduke Pickthall|Pickthall]] | s=[[Mohammed Habib Shakir|Shakir]] | #default={{{translator}}} }}) | | {{ #switch: {{lc: {{{translator|}}} }} | ||
| y=[[Abdullah Yusuf Ali|Yusuf Ali]] | |||
| p=[[Marmaduke Pickthall|Pickthall]] | |||
| s=[[Mohammed Habib Shakir|Shakir]] | |||
| a=[[Muhammad Asad|Asad]] | |||
| #default={{{translator}}} }}) | |||
}}{{ | }}{{ | ||
#ifeq: {{lc: {{{style|sup}}} }} | #ifeq: {{lc: {{{style|sup}}} }} | ||
Line 49: | Line 67: | ||
|translator= | |translator= | ||
|style= | |style= | ||
| | |expand= | ||
|quote= | |quote= | ||
}} | }} | ||
Line 60: | Line 78: | ||
==Optional Parameters== | ==Optional Parameters== | ||
* rangeend — last ayah number being cited | * 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 | * translator — can be: y (for [[Abdullah Yusuf Ali|Yusuf Ali]]), p (for [[Marmaduke Pickthall|Pickthall]]), s (for [[Mohammed Habib Shakir|Shakir]]), a (for [[Muhammad Asad|Asad]]) or name of other translator | ||
* style — nosup to use non-superscript style | * style — nosup to use non-superscript style | ||
* | * expand — prepends link with "[[Qur'an|Al-Qur'an]]" | ||
==Examples== | ==Examples== | ||
Line 70: | Line 88: | ||
'''Example 2''' | '''Example 2''' | ||
<pre>{{cite quran|5|4|quote=quoted text|translator=a}}</pre> | |||
{{cite quran|5|4|quote=quoted text|translator=a}} | |||
'''Example 3''' | |||
<pre>{{cite quran|5|4|rangeend=7|quote=quoted text}}</pre> | <pre>{{cite quran|5|4|rangeend=7|quote=quoted text}}</pre> | ||
{{cite quran|5|4|rangeend=7|quote=quoted text}} | {{cite quran|5|4|rangeend=7|quote=quoted text}} | ||
'''Example | '''Example 4''' | ||
<pre>{{cite quran|5|4|rangeend=7|quote=quoted text| | <pre>{{cite quran|5|4|rangeend=7|quote=quoted text|expand=yes}}</pre> | ||
{{cite quran|5|4|rangeend=7|quote=quoted text| | {{cite quran|5|4|rangeend=7|quote=quoted text|expand=yes}} | ||
'''Example | '''Example 5''' | ||
<pre>{{cite quran|5|4|translator=y|quote=quoted text}}</pre> | <pre>{{cite quran|5|4|translator=y|quote=quoted text}}</pre> | ||
{{cite quran|5|4|translator=y|quote=quoted text}} | {{cite quran|5|4|translator=y|quote=quoted text}} | ||
'''Example | '''Example 6''' | ||
<pre>{{cite quran|5|4|rangeend=7|translator=y|quote=quoted text}}</pre> | <pre>{{cite quran|5|4|rangeend=7|translator=y|quote=quoted text}}</pre> | ||
{{cite quran|5|4|rangeend=7|translator=p|quote=quoted text}} | {{cite quran|5|4|rangeend=7|translator=p|quote=quoted text}} | ||
'''Example | '''Example 7''' | ||
<pre>{{cite quran|5|4|translator=y|quote=quoted text| | <pre>{{cite quran|5|4|translator=y|quote=quoted text|expand=yes}}</pre> | ||
{{cite quran|5|4|translator=y|quote=quoted text| | {{cite quran|5|4|translator=y|quote=quoted text|expand=yes}} | ||
'''Example | '''Example 8''' | ||
<pre>{{cite quran|5|4|rangeend=7|style=nosup|translator=p|quote=quoted text}}</pre> | <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}} | {{cite quran|5|4|rangeend=7|style=nosup|translator=p|quote=quoted text}} | ||
'''Example | '''Example 9''' | ||
<pre>{{cite quran|5|4|rangeend=7|style=nosup|translator=p}}</pre> | <pre>{{cite quran|5|4|rangeend=7|style=nosup|translator=p}}</pre> | ||
{{cite quran|5|4|rangeend=7|style=nosup|translator=p}} | {{cite quran|5|4|rangeend=7|style=nosup|translator=p}} | ||
'''Example 10''' | '''Example 10''' | ||
<pre>{{cite quran|5|4|rangeend=7|style=nosup| | <pre>{{cite quran|5|4|rangeend=7|style=nosup|expand=yes}}</pre> | ||
{{cite quran|5|4|rangeend=7|style=nosup| | {{cite quran|5|4|rangeend=7|style=nosup|expand=yes}} | ||
'''Example 11''' | '''Example 11''' | ||
<pre>{{cite quran|5|4|rangeend=7|style=nosup| | <pre>{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|quote=quoted text}}</pre> | ||
{{cite quran|5|4|rangeend=7|style=nosup| | {{cite quran|5|4|rangeend=7|style=nosup|expand=yes|quote=quoted text}} | ||
'''Example 12''' | |||
<pre>{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|translator=s|quote=quoted text}}</pre> | |||
{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|translator=s|quote=quoted text}} | |||
'''Example 13''' | |||
<pre>{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|translator=a|quote=quoted text}}</pre> | |||
{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|translator=a|quote=quoted text}} | |||
</noinclude><includeonly> | </noinclude><includeonly> | ||
[[Category:Citation templates|{{PAGENAME}}]] | [[Category:Citation templates|{{PAGENAME}}]] | ||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</includeonly> | [[Category:Templates using ParserFunctions|{{PAGENAME}}]]</includeonly> |
Revision as of 12:39, 30 April 2007
Usage
{{cite quran|#1|#2 |rangeend= |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)
- 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 Yusuf Ali), p (for Pickthall), s (for Shakir), a (for Asad) or name of other translator
- style — nosup to use non-superscript style
- expand — prepends link with "Al-Qur'an"
Examples
Example 1
{{cite quran|5|4|quote=quoted text}}
“quoted text”[Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4]
Example 2
{{cite quran|5|4|quote=quoted text|translator=a}}
Example 3
{{cite quran|5|4|rangeend=7|quote=quoted text}}
“quoted text”[Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7]
Example 4
{{cite quran|5|4|rangeend=7|quote=quoted text|expand=yes}}
“quoted text”[Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7]
Example 5
{{cite quran|5|4|translator=y|quote=quoted text}}
“quoted text”[Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4 (Yusuf Ali)]
Example 6
{{cite quran|5|4|rangeend=7|translator=y|quote=quoted text}}
“quoted text”[Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7 (Pickthall)]
Example 7
{{cite quran|5|4|translator=y|quote=quoted text|expand=yes}}
“quoted text”[Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4 (Yusuf Ali)]
Example 8
{{cite quran|5|4|rangeend=7|style=nosup|translator=p|quote=quoted text}}
Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7 (Translated by Pickthall). “quoted text”
Example 9
{{cite quran|5|4|rangeend=7|style=nosup|translator=p}}
Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7 (Translated by Pickthall)
Example 10
{{cite quran|5|4|rangeend=7|style=nosup|expand=yes}}
Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7
Example 11
{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|quote=quoted text}}
Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7. “quoted text”
Example 12
{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|translator=s|quote=quoted text}}
Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7 (Translated by Shakir). “quoted text”
Example 13
{{cite quran|5|4|rangeend=7|style=nosup|expand=yes|translator=a|quote=quoted text}}
Qur'an 5:4-7 (Translated by Asad). “quoted text”