Templat:Cite Quran: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k bot kosmetik perubahan
VoteITP (bicara | kontrib)
rvs
Baris 1:
<noinclude>{{terjemah|Inggris}}</noinclude><includeonly>{{
# ifeq: {{lc: {{{style|{{{s|sup}}}}}} }}
| sup
| {{#if: {{{quote|{{{q|}}}}}} | “{{{quote|{{{q|}}}}}}” }}<sup><nowiki>[</nowiki>
}}{{
# ifeqswitch: {{lc: {{{expand|{{{begin|{{{b|yes}}}}}}}}} }}
| yesy
| yes=[[Al-Qur'an]]&nbsp;
| no=
| {{#ifeq: {{lc: {{{style|sup}}} }} | ref | [[Al-Qur'an]]&nbsp; }}
| n=
| #default={{
#switch:{{lc:{{{style|{{{s|sup}}}}}} }}
| ref
| r=[[Qur'an]]&nbsp;
}}
}}[{{
# if: {{{2|}}}
|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}}}
| {{ #switch: {{lc: {{{translator|y}}} }}
| y
| p
| s=http://www.usc.edu/dept/MSA/quran/{{three digit|{{{1}}}}}.qmt.html#{{three digit|{{{1}}}}}.{{three digit|{{{2|ERROR}}}}} {{{1}}}:{{{2|ERROR}}}
| #default=[Daftar terjemahan Al-Qur'an{{!}}{{{1}}}:{{{2|ERROR}}}
}}
}}{{
# if: {{{end|{{{e|}}}}}}
|-{{{end|{{{e|}}}}}}
}}]{{
# ifswitch: {{lc:{2{{style|{{{s|sup}}}}}} }}
| {{ #switch: {{lc: {{{translator|y}}} }}
| y
| p
| s=
| #default=]
}}
}}{{
# switch: {{lc: {{{style|sup}}} }}
| nosup
| ns
| ref={{#if: {{{translator|}}} | &nbsp;<sup>([[Terjemahan Al-Qur'an|Diterjemahkan]] oleh&nbsp; }}
| r
| #default={{#if: {{{translator|}}} | &nbsp;( }}
| ref={{
#if:{{{translator|{{{t|}}}}}}
|{{#if:{{{tn|}}}|&nbsp;<sup>( |&nbsp;<sup>([[Qur'an translations|Translated]] by&nbsp; }}
|{{#if:{{{tn|}}}|&nbsp;<sup>( }}
}}
| #default={{#if:{{{translator|{{{t|}}}}}} | &nbsp;([[Qur'an translations|Translated]] by&nbsp; | {{#if:{{{tn|}}}|&nbsp;( }} }}
}}{{
# if: {{{translator|{{{t|}}}}}}
| {{ #switch: {{lc: {{{translator|{{{t|}}} }}} }}
| y=[[Abdullah Yusuf Ali|Yusuf Ali]]
| p=[[Marmaduke Pickthall|Pickthall]]
| s=[[Mohammed Habib Shakir|Shakir]]
| a=[[Muhammad Asad|Asad]]
| #default={{{translator|{{{t|}}}} }}
}}
|{{
#if:{{{tn|}}}
|{{#switch:{{lc:{{{tn|}}} }}
| y=[[Abdullah Yusuf Ali|Yusuf Ali]]
| p=[[Marmaduke Pickthall|Pickthall]]
| s=[[Mohammed Habib Shakir|Shakir]]
| a=[[Muhammad Asad|Asad]]
| #default={{{tn|}}}
}}
}}
}}{{
# if: {{{translator|{{{t|}}}}}}
| )
| {{
#if:{{{tn|}}}
| )
}}
}}{{
# switch: {{lc: {{{style|{{{s|sup}}}}}} }}
| nosup
| ns
| ref={{#if: {{{translator|}}} | </sup> }}
| r
| ref={{#if:{{{translator|{{{t|}}}}}} | </sup> | {{#if:{{{tn|}}}|</sup> }} }}
}}{{
# ifeq: {{lc: {{{style|{{{s|sup}}}}}} }}
| sup
| <nowiki>]</nowiki></sup>
| {{#if: {{{quote|{{{q|}}}}}} | .&nbsp;“{{{quote|{{{q|ERROR: Quote Missing}}}}}}” }}
}}</includeonly><noinclude>
{{esotericdocumentation}}
Ini adalah templat untuk membuat pranala ke Al-Qur'an online berbahasa Inggris dari situs http://www.usc.edu/dept/MSA/quran/
 
== Penggunaan ==
<pre>
{{cite quran|#1|#2
| end=
| translator=
| style=
| expand=
| quote=
}}
</pre>
== Parameter yang diperlukan ==
* '''#1'''
:* bilangan bulat yang mewakili nomor [[surat]] (parameter pertama)
* '''#2'''
:* bilangan bulat yang mewakili nomor [[ayat]] (parameter kedua)
 
== Prameter opsional ==
* '''end''' (akhir)
:* nomor ayat terakhir yang dikutip
* '''quote''' (kutipan)
:* the text of the quotation
* '''translator''' (penerjemah)
:* '''y''' (untuk [[Abdullah Yusuf Ali|Yusuf Ali]])
:* '''p''' (untuk [[Marmaduke Pickthall|Pickthall]])
:* '''s''' (untuk [[Mohammed Habib Shakir|Shakir]])
:* '''a''' (untuk [[Muhammad Asad|Asad]])
:* nama penerjemah lain
* '''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''')
 
== Contoh ==
'''Contoh 1'''
<pre>{{cite quran|5|4|quote=quoted text}}</pre>
{{cite quran|5|4|quote=quoted text}}
 
'''Contoh 2'''
<pre>{{cite quran|5|4|expand=no|quote=quoted text}}</pre>
{{cite quran|5|4|expand=no|quote=quoted text}}
 
'''Contoh 3'''
<pre>{{cite quran|5|4|end=7|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|quote=quoted text}}
 
'''Contoh 4'''
<pre>{{cite quran|5|4|translator=y|quote=quoted text}}</pre>
{{cite quran|5|4|translator=y|quote=quoted text}}
 
'''Contoh 5'''
<pre>{{cite quran|5|4|end=7|translator=y|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|translator=p|quote=quoted text}}
 
'''Contoh 6'''
<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}}
 
'''Contoh 7'''
<pre>{{cite quran|5|4|end=7|style=nosup|translator=p}}</pre>
{{cite quran|5|4|end=7|style=nosup|translator=p}}
 
'''Contoh 8'''
<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}}
 
'''Contoh 9'''
<pre>{{cite quran|5|4|end=7|style=ref|quote=quoted text}}</pre>
{{cite quran|5|4|end=7|style=ref|quote=quoted text}}
 
'''Contoh 10'''
<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}}
 
'''Contoh 11'''
<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}}
 
[[en:Template:Cite quran]]
</noinclude>