Extension:SacredText
|
SacredText Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag, Database | ||
| Description | Can be used to quote sacred texts, without linking to external websites. Adds the sacred texts to the user's database. | ||
| Author(s) | JonathanWillifordTalk | ||
| License | GPLv3 | ||
| Download | Download snapshot Subversion [Help] |
||
|
|||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
Can be used to quote sacred texts, without any links to external websites.
[edit] Usage
The code
- <bible>Gen 1:5</bible>
will result in:
- Gen 1:5 And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.
The following also has the same result:
- <sacredtext text="Christian Bible" ver="kjv">Gen 1:5</sacredtext>
[edit] Installation
Due to the size of the SQL scripts that add the scriptures to the database, they are kept on a different SVN repository. To download, please execute the following command while inside the SacredText directory:
svn checkout http://sacredtext.googlecode.com/svn/trunk/data data
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/SacredText/SacredText.php"); $wgSacredUseBibleTag = true; // set to false to reserve the bible tag for another extension
Then run "maintenance/update.php". This will create the database table to hold the verses and add the entries for the King James Version of the Bible.
[edit] Configuration parameters
- $wgSacredChapterAlias - if you want to additional abbreviations for chapters. The first index indicates the religious text where you want to use the abbreviation (ex. "Christian Bible", "Hebrew Bible", "Quran").
- $wgSacredUseBibleTag - set this to false if you want another extension to be able to use the <bible>...</bible> tags.
Example for $wgSacredChapterAlias:
$wgSacredChapterAlias["Christian Bible"]["II Chron"]="2 Chronicles";
[edit] Sacred texts and translations
Currently, only the King James Version translation of the Christian Bible is added to the database; however other religious texts and translations can be added. I am looking to add more sacred texts and other translations (that are in public domain or have lenient licenses). Please contact me if you are interested in helping.
