Pages and verses¶
A full page¶
page renders a whole Mushaf page, 1 to 604 (IndoPak: 1 to 610):
<quran-madina-html page="1"></quran-madina-html>
<QuranMadinaHtml page={1} />
<QuranMadinaNative page={1} />
QuranMadinaFlutter(page: 1)
A verse or a range¶
sura (1 to 114) and aya (one number, or a range like 8-10) render just those verses,
laid out exactly as they sit on the page:
<quran-madina-html sura="2" aya="8-10"></quran-madina-html>
<QuranMadinaHtml sura={2} aya="8-10" />
<QuranMadinaNative sura={2} aya="8-10" />
QuranMadinaFlutter(sura: 2, aya: '8-10')
Verses are numbered the Kufan way in every layout, so the same sura and aya show the same
verse whichever print you choose. A range may run onto the next page.
Header or no header¶
A multiline render has a header with the sura name and two buttons: copy the text, and open
the translation on quran.com. headless="true" keeps only the Quran text:
<quran-madina-html sura="5" aya="1-2" headless="true"></quran-madina-html>
<QuranMadinaHtml sura={5} aya="1-2" headless />
<QuranMadinaNative sura={5} aya="1-2" headless />
QuranMadinaFlutter(sura: 5, aya: '1-2', headless: true)
Clicking a verse opens a small copy/translate menu for that verse alone. It works on inline renders too, which have no header.
Inline renders¶
A selection that fits on one line renders inline, inside the surrounding text, between quote
marks:
quotes="no"drops the quote marks.inline="no"forces the multiline layout, with its header, even for a short selection.
<quran-madina-html sura="1" aya="2" quotes="no"></quran-madina-html>
<quran-madina-html sura="1" aya="2" inline="no"></quran-madina-html>
<QuranMadinaHtml sura={1} aya="2" quotes="no" />
<QuranMadinaHtml sura={1} aya="2" inline="no" />
<QuranMadinaNative sura={1} aya="2" quotes="no" />
<QuranMadinaNative sura={1} aya="2" inline="no" />
QuranMadinaFlutter(sura: 1, aya: '2', quotes: 'no'),
QuranMadinaFlutter(sura: 1, aya: '2', inline: 'no'),