Template:Quran ref: Difference between revisions

From ReformedWiki.org, the wiki for Reformed Christianity
Maury (talk | contribs)
No edit summary
Maury (talk | contribs)
No edit summary
Line 2: Line 2:
{{#if:{{{chap|}}}|
{{#if:{{{chap|}}}|
{{#if:{{{verses|}}}|
{{#if:{{{verses|}}}|
{{#if:{{#pos:{{{verses}}}|-}}|
<span class="plainlinks">[https://quran.com/{{{chap}}}/{{#explode:{{#explode:{{{verses}}}|,|0}}|-|0}} Quran&#32;{{{chap}}}:{{{verses}}}]</span>
<span class="plainlinks">[https://quran.com/{{{chap}}} Quran&#32;{{{chap}}}:{{{verses}}}]</span>
|
<span class="plainlinks">[https://quran.com/{{{chap}}}/{{{verses}}} Quran&#32;{{{chap}}}:{{{verses}}}]</span>
}}
|
|
<span class="plainlinks">[https://quran.com/{{{chap}}} Quran&#32;{{{chap}}}]</span>
<span class="plainlinks">[https://quran.com/{{{chap}}} Quran&#32;{{{chap}}}]</span>

Revision as of 13:29, 12 April 2026

The {{Quran ref}} template creates an external link to quran.com.

Example input: {{Quran ref|chap=1|verses=1-2}}

Example output: Quran 1:1-2