Template:Quran ref: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{chap|}}}|{{#if:{{{verses|}}}|<span class="plainlinks">[https://quran.com/{{{chap}}} | <includeonly><span style="white-space:nowrap;display:inline;"> | ||
The ''' | {{#if:{{{chap|}}}| | ||
{{#if:{{{verses|}}}| | |||
{{#if:{{#pos:{{{verses}}}|-}}| | |||
<span class="plainlinks">[https://quran.com/{{{chap}}} Quran {{{chap}}}:{{{verses}}}]</span> | |||
| | |||
<span class="plainlinks">[https://quran.com/{{{chap}}}/{{{verses}}} Quran {{{chap}}}:{{{verses}}}]</span> | |||
}} | |||
| | |||
<span class="plainlinks">[https://quran.com/{{{chap}}} Quran {{{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> | ||