Template:Qur'an

From RationalWiki
(Redirected from Template:Quran)
Jump to navigation Jump to search

Qur'an

[edit] [purge] Documentation

3 real parameters. As an example, {{qur'an|2|47|48}}: Qur'an 2:47-48.

[1]: The desired surah (ie, Qur'an 2 or Qur'an 47)

[2]: The desired verse (ie, Qur'an 2:2 or Quran 47:47)

[3]: The desired end-verse (ie Qur'an 2:2-3 or Quran 47:47-48)


If parameters [1], [2], and [3] are used, the text displays "Qur'an 1:1-1", links to the annotated [1]th surah of the Qur'an, and navigates to verse [1]:[2].

If parameter [3] is not used, the text displays "Qur'an 1:1", links to the annotated [1]th surah of the Qur'an, and navigates to verse [1]:[2].

If parameters [3] and [2] are not used, the text displays "Qur'an 1", links to the annotated [1]th surah of the Qur'an, and does not navigate to any specific verse.

If all parameters are not used, the text displays "Qur'an" and links to the page RationalWiki:Annotated Qur'an.


4th parameter:

[4]: If absent, does nothing. (Qur'an 1:1-1) If present, suppresses the text "Qur'an" in the link. (1:1-1)


5th parameter:

[5]: If absent, does nothing. (Qur'an 1:1-1) If present, replaces the text "Qur'an [1]:[2]-[3]" with [5]. (Replaced!)