Template:Cite Quran: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Random832
No edit summary
meta>Tarikash
(Adding shorter/alternative name for the Parameters. Adding alternative value "ns" for "nosup", "n" for "no".)
Line 1: Line 1:
<includeonly>{{
<includeonly>{{
#ifeq: {{lc: {{{style|sup}}} }}
#ifeq: {{lc: {{{style|{{{s|sup}}}}}} }}
   | sup
   | sup
   | {{#if: {{{quote|}}} | “{{{quote|}}}” }}<sup><nowiki>[</nowiki>
   | {{#if: {{{quote|{{{q|}}}}}} | “{{{quote|{{{q|}}}}}}” }}<sup><nowiki>[</nowiki>
}}{{
}}{{
#ifeq: {{lc: {{{expand|yes}}} }}
#switch: {{lc: {{{expand|{{{begin|{{{b|yes}}}}}}}}} }}
   | yes
   | yes
   | [[Qur'an]]&nbsp;
   | y=[[Qur'an]]&nbsp;
   | {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Qur'an]]&nbsp; }}
   | no=
  | n=
  | #default={{#ifeq: {{lc: {{{style|{{{s|sup}}}}}} }} | ref | [[Qur'an]]&nbsp; }}
}}[{{
}}[{{
#if: {{{2|}}}
#if: {{{2|}}}
   | {{ #switch: {{lc: {{{translator|y}}} }}  
   | {{ #switch: {{lc: {{{translator|{{{t|y}}}}}} }}  
     | y  
     | y  
     | p  
     | p  
Line 17: Line 19:
   }}
   }}
}}{{
}}{{
#if: {{{end|}}}
#if: {{{end|{{{e|}}}}}}
   |-{{{end}}}
   |-{{{end{{{e}}}}}}
}}]{{
}}]{{
#if: {{{2|}}}
#if: {{{2|}}}
   | {{ #switch: {{lc: {{{translator|y}}} }}  
   | {{ #switch: {{lc: {{{translator|{{{t|y}}}}}} }}  
     | y  
     | y  
     | p  
     | p  
Line 28: Line 30:
   }}
   }}
}}{{
}}{{
#switch: {{lc: {{{style|sup}}} }}  
#switch: {{lc: {{{style|{{{s|sup}}}}}} }}  
   | nosup
   | nosup
   | ref={{#if: {{{translator|}}} | &nbsp;<sup>([[Qur'an translations|Translated]] by&nbsp; }}
  | ns
   | #default={{#if: {{{translator|}}} | &nbsp;( }}
   | ref={{#if: {{{translator|{{{t|}}}}}} | &nbsp;<sup>([[Qur'an translations|Translated]] by&nbsp; }}
   | #default={{#if: {{{translator|{{{t|}}}}}} | &nbsp;( }}
}}{{
}}{{
#if: {{{translator|}}}
#if: {{{translator|{{{t}}}}}}
   | {{ #switch: {{lc: {{{translator|}}} }}  
   | {{ #switch: {{lc: {{{translator|{{{t}}}}}} }}  
     | y=[[Abdullah Yusuf Ali|Yusuf Ali]]
     | y=[[Abdullah Yusuf Ali|Yusuf Ali]]
     | p=[[Marmaduke Pickthall|Pickthall]]
     | p=[[Marmaduke Pickthall|Pickthall]]
     | s=[[Mohammed Habib Shakir|Shakir]]
     | s=[[Mohammed Habib Shakir|Shakir]]
     | a=[[Muhammad Asad|Asad]]
     | a=[[Muhammad Asad|Asad]]
     | #default={{{translator}}} }}
     | #default={{{translator{{{t}}}}}} }}
}}{{
}}{{
#if: {{{translator|}}}
#if: {{{translator|{{{t}}}}}}
   | )
   | )
}}{{
}}{{
#switch: {{lc: {{{style|sup}}} }}  
#switch: {{lc: {{{style|{{{s|sup}}}}}} }}  
   | nosup
   | nosup
   | ref={{#if: {{{translator|}}} | </sup> }}
  | ns
   | ref={{#if: {{{translator|{{{t}}}}}} | </sup> }}
}}{{
}}{{
#ifeq: {{lc: {{{style|sup}}} }}
#ifeq: {{lc: {{{style|{{{s|sup}}}}}} }}
   | sup
   | sup
   | <nowiki>]</nowiki></sup>
   | <nowiki>]</nowiki></sup>
   | {{#if: {{{quote|}}} | .&nbsp;“{{{quote|ERROR: Quote Missing}}}” }}
   | {{#if: {{{quote|{{{q|}}}}}} | .&nbsp;“{{{quote|{{{q|ERROR: Quote Missing}}}}}}” }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{esoteric}}
{{esoteric}}
Line 67: Line 71:
==Required Parameters==
==Required Parameters==
* '''#1'''
* '''#1'''
:* integer representing the number of the [[surah]] (this must be the first parameter)
:* integer representing the number of the [[surah]] (this must be the first parameter).
* '''#2'''
* '''#2'''
:* integer representing the [[ayah]] number (this must be the second parameter)
:* integer representing the [[ayah]] number (this must be the second parameter).


==Optional Parameters==
==Optional Parameters==
* '''end'''
* '''end''' or '''e''' parameter ''':'''
:* last ayah number being cited
:* last ayah number being cited
* '''quote'''
* '''quote''' or '''q''' ''':'''
:* the text of the quotation
:* the text of the quotation
* '''translator'''
* '''translator''' or '''t''' parameter can have below values ''':'''
:* '''y''' (for [[Abdullah Yusuf Ali|Yusuf Ali]])
:* '''y''' (for [[Abdullah Yusuf Ali|Yusuf Ali]])
:* '''p''' (for [[Marmaduke Pickthall|Pickthall]])
:* '''p''' (for [[Marmaduke Pickthall|Pickthall]])
Line 82: Line 86:
:* '''a''' (for [[Muhammad Asad|Asad]])
:* '''a''' (for [[Muhammad Asad|Asad]])
:* name of other translator
:* name of other translator
* '''expand=no'''
* '''expand=no''' or '''begin=no''' or '''b=no''' or '''b=n''' ''':'''
:* does not prepend link with "[[Qur'an]]"
:* 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'''
* '''style''' or '''s''' parameter can have below values ''':'''
:* '''nosup''' to use non-superscript style
:* '''nosup''' or '''ns''' to use non-superscript style.
:* '''ref''' to use expanded form for citing as a reference (short form for '''style=nosup|expand=yes''')
:* '''ref''' or '''r''' to use expanded form for citing as a reference (short form for '''style=nosup|expand=yes''').


==Examples==
==Examples==
Line 120: Line 124:
<pre>{{cite quran|5|4|end=7|style=nosup}} OR
<pre>{{cite quran|5|4|end=7|style=nosup}} OR
{{cite quran|5|4|end=7|style=ref}}</pre>
{{cite quran|5|4|end=7|style=ref}}</pre>
{{cite quran|5|4|end=7|style=nosup}}<br>
{{cite quran|5|4|end=7|style=nosup}}<br/>
{{cite quran|5|4|end=7|style=ref}}
{{cite quran|5|4|end=7|style=ref}}


Line 134: Line 138:
<pre>{{cite quran|5|4|end=7|style=ref|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=ref|translator=a|quote=quoted text}}
{{cite quran|5|4|end=7|style=ref|translator=a|quote=quoted text}}
'''Example 14'''
<pre>{{cite quran|5|4|e=7|s=ns|t=a|q=quoted text}}</pre>
{{cite quran|5|4|e=7|s=ns|t=a|q=quoted text}}
'''Example 15'''
<pre>{{cite quran|5|4|e=7|s=ns|b=n}}</pre>
{{cite quran|5|4|e=7|s=ns|b=n}}


[[Category:Specific source templates|Quran]]
[[Category:Specific source templates|Quran]]

Revision as of 23:01, 22 January 2008

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).

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

“quoted text”[Qur'an 5:4{{{translator{{{t}}}}}})]

Example 2

{{cite quran|5|4|expand=no|quote=quoted text}}

“quoted text”[5:4{{{translator{{{t}}}}}})]

Example 3

{{cite quran|5|4|end=7|quote=quoted text}}

“quoted text”[Qur'an 5:4-{{{end{{{e}}}}}}{{{translator{{{t}}}}}})]

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-{{{end{{{e}}}}}} (Pickthall)]

Example 8

{{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}}

Qur'an 5:4-{{{end{{{e}}}}}} (Translated by Pickthall). “quoted text”

Example 9

{{cite quran|5|4|end=7|style=nosup|translator=p}}

Qur'an 5:4-{{{end{{{e}}}}}} (Translated by Pickthall)

Example 10

{{cite quran|5|4|end=7|style=nosup}} OR
{{cite quran|5|4|end=7|style=ref}}

Qur'an 5:4-{{{end{{{e}}}}}}{{{translator{{{t}}}}}})
Qur'an 5:4-{{{end{{{e}}}}}}{{{translator{{{t}}}}}})

Example 11

{{cite quran|5|4|end=7|style=ref|quote=quoted text}}

Qur'an 5:4-{{{end{{{e}}}}}}{{{translator{{{t}}}}}}). “quoted text”

Example 12

{{cite quran|5|4|end=7|style=ref|translator=s|quote=quoted text}}

Qur'an 5:4-{{{end{{{e}}}}}} (Translated by Shakir). “quoted text”

Example 13

{{cite quran|5|4|end=7|style=ref|translator=a|quote=quoted text}}

Qur'an 5:4-{{{end{{{e}}}}}} (Translated by Asad). “quoted text”

Example 14

{{cite quran|5|4|e=7|s=ns|t=a|q=quoted text}}

Qur'an 5:4-{{{end7}}} (Translated by Asad). “quoted text”

Example 15

{{cite quran|5|4|e=7|s=ns|b=n}}

5:4-{{{end7}}}{{{translator{{{t}}}}}})