Template:Cite Quran: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Random832
(unnecessary template)
m (52 revisions imported)
 
(33 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<includeonly>{{
{{#ifeq:{{lc:{{{style|{{{s|sup}}}}}} }}
#ifeq: {{lc: {{{style|sup}}} }}
   | sup
   | sup
   | {{#if: {{{quote|}}} | {{{quote|}}}}}<sup><nowiki>[</nowiki>
   |{{#if:{{{quote|{{{q|}}}}}} | "{{{quote|{{{q|}}}}}}" }}<sup><nowiki>[</nowiki>
}}{{
}}{{#switch:{{lc:{{{expand|{{{begin|{{{b|yes}}}}}}}}} }}
#ifeq: {{lc: {{{expand|yes}}} }}
   | y
   | yes
   | yes={{#ifeq:{{{link|}}} | no | Quran | [[Quran]]}}&nbsp;
   | [[Qur'an]]&nbsp;
   | no=
   | {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Qur'an]]&nbsp; }}
  | n=
}}[{{
  | #default={{#switch:{{lc:{{{style|{{{s|sup}}}}}} }}
#if: {{{2|}}}
    | ref
   | {{ #switch: {{lc: {{{translator|y}}} }}
    | r={{#ifeq:{{{link|}}} | no | Quran | [[Quran]]}}&nbsp;
    | y
    }}
    | p
}}[{{#if:{{{2|}}}
    | s=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}}}
   |http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A2002.02.000{{#switch:{{{translator|{{{t|{{{tn|}}}}}}}}}|p=2|s=3|y=4|6}}%3Asura%3D{{{1}}}%3Averse%3D{{{2}}} {{{1}}}:{{{2|ERROR}}}
    | #default=[List of translations of the Qur'an{{!}}{{{1}}}:{{{2|ERROR}}}
}}{{#if:{{{end|{{{e|}}}}}}
  }}
   | {{{end|{{{e|}}}}}}
}}{{
}}]{{#switch:{{lc:{{{style|{{{s|sup}}}}}} }}
#if: {{{end|}}}
  |-{{{end}}}
}}]{{
#if: {{{2|}}}
   | {{ #switch: {{lc: {{{translator|y}}} }}
    | y
    | p
    | s=
    | #default=]
  }}
}}{{
#switch: {{lc: {{{style|sup}}} }}  
   | nosup
   | nosup
   | ref={{#if: {{{translator|}}} | &nbsp;<sup>([[Qur'an translations|Translated]] by&nbsp; }}
  | ns
   | #default={{#if: {{{translator|}}} | &nbsp;( }}
  | r
}}{{
   | ref={{#if:{{{translator|{{{t|}}}}}}
#if: {{{translator|}}}
    |{{#if:{{{tn|}}}|&nbsp;<sup>( |&nbsp;<sup>([[Quran translations|Translated]] by&nbsp; }}
   | {{ #switch: {{lc: {{{translator|}}} }}  
    |{{#if:{{{tn|}}}|&nbsp;<sup>( }}
        }}
   | #default={{#if:{{{translator|{{{t|}}}}}} | &nbsp;([[Quran translations|Translated]] by&nbsp; | {{#if:{{{tn|}}}|&nbsp;( }} }}
}}{{#if:{{{translator|{{{t|}}}}}}
   |{{#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=[[Muhammad Habib Shakir|Shakir]]
     | a=[[Muhammad Asad|Asad]]
     | a=[[Muhammad Asad|Asad]]
     | #default={{{translator}}} }}
     | #default={{{translator|{{{t|}}}}}}
}}{{
  }}
#if: {{{translator|}}}
  |{{#if:{{{tn|}}}
    |{{#switch:{{lc:{{{tn|}}} }}
      | y=[[Abdullah Yusuf Ali|Yusuf Ali]]
      | p=[[Marmaduke Pickthall|Pickthall]]
      | s=[[Muhammad Habib Shakir|Shakir]]
      | a=[[Muhammad Asad|Asad]]
      | #default={{{tn|}}}
    }}
  }}
}}{{#if:{{{translator|{{{t|}}}}}}
   | )
   | )
}}{{
  | {{#if:{{{tn|}}}
#switch: {{lc: {{{style|sup}}} }}  
    | )
    }}
}}{{#switch:{{lc:{{{style|{{{s|sup}}}}}} }}  
   | nosup
   | nosup
   | ref={{#if: {{{translator|}}} | </sup> }}
  | ns
}}{{
  | r
#ifeq: {{lc: {{{style|sup}}} }}
   | ref={{#if:{{{translator|{{{t|}}}}}} | </sup> | {{#if:{{{tn|}}}|</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>
}}<noinclude>
{{esoteric}}
{{documentation}}
==Usage==
<pre>
{{cite quran|#1|#2
| end=
| translator=
| style=
| expand=
| quote=
}}
</pre>
==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'''
:* '''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=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'''
<pre>{{cite quran|5|4|quote=quoted text}}</pre>
{{cite quran|5|4|quote=quoted text}}
 
'''Example 2'''
<pre>{{cite quran|5|4|expand=no|quote=quoted text}}</pre>
{{cite quran|5|4|expand=no|quote=quoted text}}
 
'''Example 3'''
<pre>{{cite quran|5|4|end=7|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|quote=quoted text}}
 
'''Example 5'''
<pre>{{cite quran|5|4|translator=y|quote=quoted text}}</pre>
{{cite quran|5|4|translator=y|quote=quoted text}}
 
'''Example 6'''
<pre>{{cite quran|5|4|end=7|translator=y|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|translator=p|quote=quoted text}}
 
'''Example 8'''
<pre>{{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=nosup|translator=p|quote=quoted text}}
 
'''Example 9'''
<pre>{{cite quran|5|4|end=7|style=nosup|translator=p}}</pre>
{{cite quran|5|4|end=7|style=nosup|translator=p}}
 
'''Example 10'''
<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=nosup}}<br>
{{cite quran|5|4|end=7|style=ref}}
 
'''Example 11'''
<pre>{{cite quran|5|4|end=7|style=ref|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=ref|quote=quoted text}}
 
'''Example 12'''
<pre>{{cite quran|5|4|end=7|style=ref|translator=s|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=ref|translator=s|quote=quoted text}}
 
'''Example 13'''
<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}}
 
[[Category:Specific source templates|Quran]]
[[Category:Templates using ParserFunctions|Quran]]
[[Category:Islamic text templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 00:37, 2 September 2020

[Quran []]