Template:Cite Quran: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>AA
meta>AA
(Add style=ref)
Line 6: Line 6:
#if: {{{expand|}}}
#if: {{{expand|}}}
   | [[Qur'an]] 
   | [[Qur'an]] 
  | {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Qur'an]]  }}
}}[{{
}}[{{
#if: {{{2|}}}
#if: {{{2|}}}
Line 26: Line 27:
   }}
   }}
}}{{
}}{{
#ifeq: {{lc: {{{style|sup}}} }}
#switch: {{lc: {{{style|sup}}} }}  
   | nosup
   | nosup
   | {{
   | ref={{#if: {{{translator|}}} | &nbsp;<sup>([[Qur'an translations|Translated]] by&nbsp; }}
    #if: {{{translator|}}}
   | #default={{#if: {{{translator|}}} | &nbsp;( }}
      | &nbsp;<sup>([[Qur'an translations|Translated]] by&nbsp;
    }}
   | {{
    #if: {{{translator|}}}
      | &nbsp;(
    }}
}}{{
}}{{
#if: {{{translator|}}}
#if: {{{translator|}}}
Line 43: Line 38:
     | s=[[Mohammed Habib Shakir|Shakir]]
     | s=[[Mohammed Habib Shakir|Shakir]]
     | a=[[Muhammad Asad|Asad]]
     | a=[[Muhammad Asad|Asad]]
     | #default={{{translator}}} }})
     | #default={{{translator}}} }}
}}{{
#if: {{{translator|}}}
  | )
}}{{
}}{{
#ifeq: {{lc: {{{style|sup}}} }}
#switch: {{lc: {{{style|sup}}} }}  
   | nosup
   | nosup
   | {{
   | ref={{#if: {{{translator|}}} | </sup> }}
    #if: {{{translator|}}}
      | </sup>
    }}
}}{{
}}{{
#ifeq: {{lc: {{{style|sup}}} }}
#ifeq: {{lc: {{{style|sup}}} }}
   | sup
   | sup
   | <nowiki>]</nowiki></sup>
   | <nowiki>]</nowiki></sup>
   | {{
   | {{#if: {{{quote|}}} | .&nbsp;“{{{quote|ERROR: Quote Missing}}}” }}
    #if: {{{quote|}}}
      | .&nbsp;“{{{quote|ERROR: Quote Missing}}}”
    }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{esoteric}}
{{esoteric}}
Line 64: Line 56:
<pre>
<pre>
{{cite quran|#1|#2
{{cite quran|#1|#2
  |end=
  | end=
  |translator=
  | translator=
  |style=
  | style=
  |expand=
  | expand=
  |quote=
  | quote=
}}
}}
</pre>
</pre>
==Required Parameters==
==Required Parameters==
* '''#1''' integer representing the number of the [[surah]] (this must be the first parameter)
* '''#1'''
* '''#2''' integer representing the [[ayah]] number (this must be the second parameter)
:* integer representing the number of the [[surah]] (this must be the first parameter)
* '''quote''' the text of the quotation (this parameter is optional if style is used)
* '''#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==
==Optional Parameters==
* '''end''' last ayah number being cited
* '''end'''
* '''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
:* last ayah number being cited
* '''style''' nosup to use non-superscript style
* '''translator'''
* '''expand''' — prepends link with "[[Qur'an]]"
:* '''y''' (for [[Abdullah Yusuf Ali|Yusuf Ali]])
:* '''p''' (for [[Marmaduke Pickthall|Pickthall]])
:* '''s''' (for [[Mohammed Habib Shakir|Shakir]])
:* '''a''' (for [[Muhammad Asad|Asad]])
:* name of other translator
* '''expand'''
:* prepends 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==
==Examples==
Line 94: Line 98:
<pre>{{cite quran|5|4|end=7|quote=quoted text}}</pre>
<pre>{{cite quran|5|4|end=7|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|quote=quoted text}}
{{cite quran|5|4|end=7|quote=quoted text}}
'''Example 4'''
<pre>{{cite quran|5|4|end=7|quote=quoted text|expand=yes}}</pre>
{{cite quran|5|4|end=7|quote=quoted text|expand=yes}}


'''Example 5'''
'''Example 5'''
Line 106: Line 106:
<pre>{{cite quran|5|4|end=7|translator=y|quote=quoted text}}</pre>
<pre>{{cite quran|5|4|end=7|translator=y|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|translator=p|quote=quoted text}}
{{cite quran|5|4|end=7|translator=p|quote=quoted text}}
'''Example 7'''
<pre>{{cite quran|5|4|translator=y|quote=quoted text|expand=yes}}</pre>
{{cite quran|5|4|translator=y|quote=quoted text|expand=yes}}


'''Example 8'''
'''Example 8'''
Line 120: Line 116:


'''Example 10'''
'''Example 10'''
<pre>{{cite quran|5|4|end=7|style=nosup|expand=yes}}</pre>
<pre>{{cite quran|5|4|end=7|style=nosup|expand=yes}} OR
{{cite quran|5|4|end=7|style=nosup|expand=yes}}
{{cite quran|5|4|end=7|style=ref}}</pre>
{{cite quran|5|4|end=7|style=nosup|expand=yes}}<br>
{{cite quran|5|4|end=7|style=ref}}


'''Example 11'''
'''Example 11'''
<pre>{{cite quran|5|4|end=7|style=nosup|expand=yes|quote=quoted text}}</pre>
<pre>{{cite quran|5|4|end=7|style=ref|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=nosup|expand=yes|quote=quoted text}}
{{cite quran|5|4|end=7|style=ref|quote=quoted text}}


'''Example 12'''
'''Example 12'''
<pre>{{cite quran|5|4|end=7|style=nosup|expand=yes|translator=s|quote=quoted text}}</pre>
<pre>{{cite quran|5|4|end=7|style=ref|translator=s|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=nosup|expand=yes|translator=s|quote=quoted text}}
{{cite quran|5|4|end=7|style=ref|translator=s|quote=quoted text}}


'''Example 13'''
'''Example 13'''
<pre>{{cite quran|5|4|end=7|style=nosup|expand=yes|translator=a|quote=quoted text}}</pre>
<pre>{{cite quran|5|4|end=7|style=ref|translator=a|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=nosup|expand=yes|translator=a|quote=quoted text}}
{{cite quran|5|4|end=7|style=ref|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:26, 1 May 2007

Template:Esoteric

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
  • expand
  • 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”[Template:Three digit.qmt.html#Template:Three digit.Template:Three digit 5:4]

Example 2

{{cite quran|5|4|quote=quoted text|translator=a}}

“quoted text”[5:4 (Asad)]

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 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 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}} 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”