WikiIslam:How to Edit: Difference between revisions

Jump to navigation Jump to search
 
Line 37: Line 37:
===Templates===
===Templates===


In order to format and organize data, templates are used on WikiIslam. These are markup language commands which tell the wiki to format data in specific ways and links to outside websites. Commonly used templates on WikiIslam include the quote template, the Quran template, the Quran series template, and the various hadith templates. Quote can be used in the following manner: <code><nowiki>{{Quote</nowiki></code> ... <code><nowiki>}}</nowiki></code>. This will produce a box with two fields, one for a source and another for the text being quoted. The source is introduced by a pipe | after the word "Quote." See the example below:
In order to format and organize data, templates are used on WikiIslam. These are markup language commands which tell the wiki to format data in specific ways and links to outside websites. Commonly used templates on WikiIslam include the quote template, the Quran template, the Quran-range template, and the various hadith templates. Quote can be used in the following manner: <code><nowiki>{{Quote||}}</nowiki></code>. This will produce a box with two fields, one for a source and another for the text being quoted. The source is introduced by a pipe | after the word "Quote" and the text after the second pipe. See the example below:


{{Quote|Sample Source| Sample Text}}
{{Quote|Sample Source| Sample Text}}


These quote boxes can be used for any quoted source. Templates can also be used to link to sources outside WikiIslam, particularly the Qur'an and the hadith. WikiIslam uses www.quranx.com for this purpose. The template <code><nowiki>{{Quran|surah number|ayah number}}</nowiki></code> will produce a link to the specified surah (chapter) and ayah (verse). For example, to like to surat-al-baqarah (surah number 2), ayah 36 the template format would be <code><nowiki>{{Quran|2|36}}</nowiki></code>. For a series of ayahs the following template cane be used: <code><nowiki>{{Quran|surah number|first ayah in series|last ayah in series}}</nowiki></code>. For example for surat-al-baqarah verse 20-23 the format would be <nowiki>{{Quran|2|20|23}}</nowiki>. All of the "Sahih Six" or authoritative Sunni collections of hadith also have templates which link to QuranX. Below you can see examples of all of their uses:
These quote boxes can be used for any quoted source. Templates can also be used to link to sources outside WikiIslam, particularly the Qur'an and the hadith. WikiIslam uses www.quranx.com for this purpose. The template <code><nowiki>{{Quran|surah number|ayah number}}</nowiki></code> will produce a link to the specified surah (chapter) and ayah (verse). For example, to link to surat-al-baqarah (surah number 2), ayah 36, the template format would be <code><nowiki>{{Quran|2|36}}</nowiki></code>. For a series of ayats the following template can be used: <code><nowiki>{{Quran-range|surah number|first ayah in series|last ayah in series}}</nowiki></code>. For example for surat-al-baqarah verse 20-23 the format would be <nowiki>{{Quran-range|2|20|23}}</nowiki>. All of the "Sahih Six" or authoritative Sunni collections of hadith also have templates which link to QuranX. Below you can see examples of all of their uses:


{| border="1" cellpadding="5" cellspacing="0" style="width:700px; height:200px"
{| border="1" cellpadding="5" cellspacing="0" style="width:700px; height:200px"
!Input!!Output
!Input!!Output
|-
|-
| |{&#123;<nowiki>Bukhari|1|1|5}}</nowiki>||{{Bukhari|1|1|5}}
| |{&#123;<nowiki>Bukhari|||6|darussalam}}</nowiki>||{{Bukhari|||6|darussalam}}
|-
|-
| |{&#123;<nowiki>Muslim|1|5}}</nowiki>||{{Muslim|1|5}}
| |{&#123;<nowiki>Muslim||9|reference}}</nowiki>||{{Muslim||9|reference}}
|-
|-
| |{&#123;<nowiki>Abudawud|1|7}}</nowiki>||{{Abudawud|1|7}}
| |{&#123;<nowiki>Abudawud||7|darussalam}}</nowiki>||{{Abudawud||7|darussalam}}
|-
|-
| |{&#123;<nowiki>Muwatta|1|1|5|}}</nowiki>
| |{&#123;<nowiki>Muwatta|1|1|5|}}</nowiki>
Editors, em-bypass-2, Reviewers, rollback, Administrators
3,454

edits

Navigation menu