Stardate
From Contao Community Documentation
I'm not a native English speaker. Please correct my mistakes.
Incomplete Article: This article is not finished yet and needs expansion.
Please expand it and remove this notice when it is finished. |
With insert tags you can choose, according to which method of calculation and whether the return should take place as text or an image.
The image at right shows all types of calculation than image, at 2010-02-17 03:30 PM.
Extension-Overview | |
---|---|
Name of the developer | Glen Langer (BugBuster) |
Developer Website | http://www.contao.glen-langer.de |
Version of the extension | 0.1.0 |
Compatibility with Contao Version | from 2.9 |
Compatibility with TYPOlight Version | 2.8.0 - 2.8.4 |
Link to Extension Repository | http://www.contao.org/extension-list/view/stardate.html |
Donate the developer | Cappuccino |
Link to Tracker | http://dev.typolight-forge.org/projects/stardate/issues |
Depending of ff. Extension | GraphicalText (optional) |
Comment | German demo on www.ncc1969.de |
Contents
Forum
Questions about the Stardate module will be answered in forum: Forum
Errors and requests can be reported in the Issue Tracker.
Installation
The installation of the module occurs about the extension Repository in back end of Contao.
A manual installation is possible. Download the ZIP file from Extension Repository, unzip and transfer it.
A directory should have been created "/system/modules/stardate".
Then call /contao/install.php - Perform Update Database.
( /typolight/install.php in older TYPOlight installations )
Use in the frontend
The module used insert-tags. It can be selected the type (text / image), whether the generated values into the page cache (if activated) or newly generated each time. Both are controlled by corresponding parameters.
Insert-Tag Overview
The names have been formed on the source or the series.
Stardate Today
Source: trekguide.comOutput as a positive number for today.
Output in the form: YYMM.DD, YY is YYYY-1900
Text:
{{stardate::TODAY}} {{cache_stardate:TODAY}}
Image:
{{stardate::TODAYGT}} {{stardate::TODAYGT::gttagname}} {{cache_stardate::TODAYGT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Fictional Stardate Today
Source: trekguide.comOutput as a positive number for today. Stardate 00000.0 begins on 7/14/1946 6:00 PM
Text:
{{stardate::FS}} {{cache_stardate:FS}}
Image:
{{stardate::FSGT}} {{stardate::FSGT::gttagname}} {{cache_stardate::FSGT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Fictional Stardate TK
Source: TrekConnection.comOutput as a positive number for today.
Text:
{{stardate::TK}} {{cache_stardate:TK}}
Image:
{{stardate::TKGT}} {{stardate::TKGT::gttagname}} {{cache_stardate::TKGT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Stardate nach Star Trek XI
Source: trekguide.comOutput as a positive number for today. Output in the form: YYYY.xx , YYYY is the current year, xx the 100th Part of the year.
Text:
{{stardate::XI}} {{cache_stardate:XI}}
Image:
{{stardate::XIGT}} {{stardate::XIGT::gttagname}} {{cache_stardate::XIGT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Stardate TNG (1)
Source: lcars.org.ukOutput as a negative number for today. Stardate 00000.0 begins on 0/01/2323 00:00 AM
Text:
{{stardate::TNG2323}} {{cache_stardate:TNG2323}}
Image:
{{stardate::TNG2323GT}} {{stardate::TNG2323GT::gttagname}} {{cache_stardate::TNG2323GT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Stardate TNG (2)
Source: trekguide.comOutput as a negative number for today. Stardate 00000.0 begins on 05/25/2322 00:00 AM
Text:
{{stardate::TNG2322}} {{cache_stardate:TNG2322}}
Image:
{{stardate::TNG2322GT}} {{stardate::TNG2322GT::gttagname}} {{cache_stardate::TNG2322GT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Stardate TOS
Source: trekguide.comOutput as a negative number for today. Stardate 00000.0 begins on 05/01/2265 00:00 AM
Text:
{{stardate::TOS}} {{cache_stardate:TOS}}
Image:
{{stardate::TOSGT}} {{stardate::TOSGT::gttagname}} {{cache_stardate::TOSGT::gttagname}}
Where "gttagname" the name chosen in GraphicalText module. If no declaration, "Stardate" used as the default.
Determination the "gttagname"
The "gttagname" is the "Tag" name as it was created in the back end module in the graphical text. The overview is the name in the first column in edit mode the field "Tag".
gttagname
--BugBuster 00:38, 26 September 2010 (CEST)