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|}}}|
<span class="plainlinks">[https://quran.com/{{{chap}}}/{{#explode:{{#explode:{{{verses}}}|,|0}}|-|0}} Quran&#32;{{{chap}}}:{{{verses}}}]</span>
{{#if:{{#pos:{{{verses}}}|,}}|
[https://quran.com/{{{chap}}}/{{#explode:{{#explode:{{{verses}}}|,|0}}|-|0}} Quran&#32;{{{chap}}}:{{{verses}}}]
|
|
<span class="plainlinks">[https://quran.com/{{{chap}}} Quran&#32;{{{chap}}}]</span>
[https://quran.com/{{{chap}}}/{{{verses}}} Quran&#32;{{{chap}}}:{{{verses}}}]
}}
}}
|Quran}}</span></includeonly><noinclude>
|
[https://quran.com/{{{chap}}} Quran&#32;{{{chap}}}]
}}
|Quran}}
</span></includeonly><noinclude>
The '''<nowiki>{{Quran ref}}</nowiki>''' template creates an external link to quran.com.
The '''<nowiki>{{Quran ref}}</nowiki>''' template creates an external link to quran.com.



Revision as of 13:32, 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