Template:Cite Quran: Difference between revisions
meta>AA Change expanded → expand. Add Asad as know translator. |
meta>AA Change rangeend → end. |
||
Line 15: | Line 15: | ||
}} | }} | ||
}}{{ | }}{{ | ||
#if: {{{ | #if: {{{end|}}} | ||
|-{{{ | |-{{{end}}} | ||
}}]{{ | }}]{{ | ||
#if: {{{2|}}} | #if: {{{2|}}} | ||
Line 64: | Line 64: | ||
<pre> | <pre> | ||
{{cite quran|#1|#2 | {{cite quran|#1|#2 | ||
| | |end= | ||
|translator= | |translator= | ||
|style= | |style= | ||
Line 72: | Line 72: | ||
</pre> | </pre> | ||
==Required Parameters== | ==Required Parameters== | ||
* #1 — integer representing the number of the [[surah]] (this must be the first parameter) | * '''#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) | * '''#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) | * '''quote''' — the text of the quotation (this parameter is optional if style is used) | ||
==Optional Parameters== | ==Optional Parameters== | ||
* | * '''end''' — 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]]), a (for [[Muhammad Asad|Asad]]) 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]]" | * '''expand''' — prepends link with "[[Qur'an|Al-Qur'an]]" | ||
==Examples== | ==Examples== | ||
Line 92: | Line 92: | ||
'''Example 3''' | '''Example 3''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|quote=quoted text}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|quote=quoted text}} | ||
'''Example 4''' | '''Example 4''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|quote=quoted text|expand=yes}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|quote=quoted text|expand=yes}} | ||
'''Example 5''' | '''Example 5''' | ||
Line 104: | Line 104: | ||
'''Example 6''' | '''Example 6''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|translator=y|quote=quoted text}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|translator=p|quote=quoted text}} | ||
'''Example 7''' | '''Example 7''' | ||
Line 112: | Line 112: | ||
'''Example 8''' | '''Example 8''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}} | ||
'''Example 9''' | '''Example 9''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|style=nosup|translator=p}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|style=nosup|translator=p}} | ||
'''Example 10''' | '''Example 10''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|style=nosup|expand=yes}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|style=nosup|expand=yes}} | ||
'''Example 11''' | '''Example 11''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|style=nosup|expand=yes|quote=quoted text}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|style=nosup|expand=yes|quote=quoted text}} | ||
'''Example 12''' | '''Example 12''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|style=nosup|expand=yes|translator=s|quote=quoted text}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=7|style=nosup|expand=yes|translator=s|quote=quoted text}} | ||
'''Example 13''' | '''Example 13''' | ||
<pre>{{cite quran|5|4| | <pre>{{cite quran|5|4|end=7|style=nosup|expand=yes|translator=a|quote=quoted text}}</pre> | ||
{{cite quran|5|4| | {{cite quran|5|4|end=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:41, 30 April 2007
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)
- quote — the text of the quotation (this parameter is optional if style is used)
Optional Parameters
- end — 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|end=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|end=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|end=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|end=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|end=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|end=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|end=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|end=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|end=7|style=nosup|expand=yes|translator=a|quote=quoted text}}
Qur'an 5:4-7 (Translated by Asad). “quoted text”