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 1: Line 1:
<includeonly>{{#if:{{{chap|}}}|{{#if:{{{verses|}}}|<span class="plainlinks">[https://quran.com/{{{chap}}}/{{#explode:{{{verses}}}|-|0}} Quran&nbsp;{{{chap}}}:{{{verses}}}]</span><!-- -->|<span class="plainlinks">[https://quran.com/{{{chap}}} Quran&nbsp;{{{chap}}}]</span><!-- -->}}|Quran}}</includeonly><noinclude>
<includeonly><span style="white-space:nowrap;display:inline;">
The '''<nowiki>{{Quran ref}}</nowiki>''' template creates an external link to quran.com.
{{#if:{{{chap|}}}|
 
{{#if:{{{verses|}}}|
Example input: <nowiki>{{Quran ref|chap=1|verses=1-2}}</nowiki>
{{#if:{{#pos:{{{verses}}}|-}}|
<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>
}}
|Quran}}</span></includeonly><noinclude>
The <nowiki>'''{{Quran ref}}'''</nowiki> template creates an external link to quran.com.


Example input:<nowiki>{{Quran ref|chap=1|verses=1-2}}</nowiki>


Example output: {{Quran ref|chap=1|verses=1-2}}
</noinclude>
</noinclude>

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