Template:Cite Quran: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Tarikash correction |
meta>Tarikash placing the "]" inside the prev switch, and adding the value "r" alternative to "ref" |
||
Line 9: | Line 9: | ||
| no= | | no= | ||
| n= | | n= | ||
| #default={{#ifeq: {{lc: {{{style|{{{s|sup}}}}}} }} | ref | [[Qur'an]] }} | | #default={{#ifeq: {{lc: {{{style|{{{s|sup}}}}}} }} | ref | [[Qur'an]] | {{#ifeq: {{lc: {{{style|{{{s|sup}}}}}} }} | r | [[Qur'an]] }} }} | ||
}}[{{ | }}[{{ | ||
#if: {{{2|}}} | #if: {{{2|}}} | ||
Line 17: | Line 17: | ||
| s | | s | ||
| a=http://www.usc.edu/dept/MSA/quran/{{padleft:{{{1}}}|3|0}}.qmt.html#{{padleft:{{{1}}}|3|0}}.{{padleft:{{{2|ERROR}}}|3|0}} {{{1}}}:{{{2|ERROR}}} | | a=http://www.usc.edu/dept/MSA/quran/{{padleft:{{{1}}}|3|0}}.qmt.html#{{padleft:{{{1}}}|3|0}}.{{padleft:{{{2|ERROR}}}|3|0}} {{{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}}}] | ||
}} | }} | ||
}}{{ | }}{{ | ||
#if: {{{end|{{{e|}}}}}} | #if: {{{end|{{{e|}}}}}} | ||
|-{{{end|{{{e}}}}}} | |-{{{end|{{{e|}}}}}} | ||
}}]{{ | }}]{{ | ||
#switch: {{lc: {{{style|{{{s|sup}}}}}} }} | #switch: {{lc: {{{style|{{{s|sup}}}}}} }} | ||
| nosup | | nosup | ||
| ns | | ns | ||
| r | |||
| ref={{#if: {{{translator|{{{t|}}}}}} | <sup>([[Qur'an translations|Translated]] by }} | | ref={{#if: {{{translator|{{{t|}}}}}} | <sup>([[Qur'an translations|Translated]] by }} | ||
| #default={{#if: {{{translator|{{{t|}}}}}} | ( }} | | #default={{#if: {{{translator|{{{t|}}}}}} | ( }} | ||
Line 44: | Line 36: | ||
| s=[[Mohammed Habib Shakir|Shakir]] | | s=[[Mohammed Habib Shakir|Shakir]] | ||
| a=[[Muhammad Asad|Asad]] | | a=[[Muhammad Asad|Asad]] | ||
| #default={{{translator|{{{t|}}}}}} }} | | #default={{{translator|{{{t|}}}}}} | ||
}} | |||
}}{{ | }}{{ | ||
#if: {{{translator|{{{t|}}}}}} | #if: {{{translator|{{{t|}}}}}} | ||
Line 52: | Line 45: | ||
| nosup | | nosup | ||
| ns | | ns | ||
| r | |||
| ref={{#if: {{{translator|{{{t|}}}}}} | </sup> }} | | ref={{#if: {{{translator|{{{t|}}}}}} | </sup> }} | ||
}}{{ | }}{{ |
Revision as of 23:47, 22 January 2008
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 or e parameter :
- last ayah number being cited
- quote or q :
- the text of the quotation
- translator or t parameter can have below values :
- expand=no or begin=no or b=no or b=n :
- does not prepend link with "Qur'an", alternatively begin=no, b=no can also be used. Instead of "no", "n" can also be used.
- style or s parameter can have below values :
- nosup or ns to use non-superscript style.
- ref or r 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}}
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}}
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}}
Example 11
{{cite quran|5|4|end=7|style=ref|quote=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”
Example 14
{{cite quran|5|4|e=7|s=ns|t=a|q=quoted text}}
Qur'an 5:4-7 (Translated by Asad). “quoted text”
Example 15
{{cite quran|5|4|e=7|s=ns|b=n}}
See Talk/Discussion page for further details.