Template:Cite Quran: Difference between revisions
meta>CaliforniaAliBaba Category:Citation templates should not be in the includeonly block |
meta>AA Add to category Category:Islamic text templates |
||
Line 8: | Line 8: | ||
| [[Qur'an]] | | [[Qur'an]] | ||
| {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Qur'an]] }} | | {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Qur'an]] }} | ||
}} | }}[{{ | ||
#if: {{{2|}}} | #if: {{{2|}}} | ||
| {{ #switch: {{lc: {{{translator|y}}} }} | | {{ #switch: {{lc: {{{translator|y}}} }} | ||
Line 27: | Line 27: | ||
| #default=] | | #default=] | ||
}} | }} | ||
}} | }}{{ | ||
#switch: {{lc: {{{style|sup}}} }} | #switch: {{lc: {{{style|sup}}} }} | ||
| nosup | | nosup | ||
Line 136: | Line 136: | ||
[[Category:Citation templates|Quran]] | [[Category:Citation templates|Quran]] | ||
[[Category:Templates using ParserFunctions|Quran]] | [[Category:Templates using ParserFunctions|Quran]] | ||
[[Category:Islamic text templates|{{PAGENAME}}]] | |||
</noinclude> | </noinclude> |
Revision as of 16:32, 9 May 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)
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 Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4]
Example 2
{{cite quran|5|4|expand=no|quote=quoted text}}
“quoted text”[Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4]
Example 3
{{cite quran|5|4|end=7|quote=quoted text}}
“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”[Qur'an 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”[Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7 (Pickthall)]
Example 8
{{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}}
Qur'an 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}}
Qur'an 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}} OR {{cite quran|5|4|end=7|style=ref}}
Qur'an Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4-7
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=ref|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=ref|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=ref|translator=a|quote=quoted text}}
Qur'an 5:4-7 (Translated by Asad). “quoted text”