MyList export template guidelines: Difference between revisions

update ids
mNo edit summary
(update ids)
 
(8 intermediate revisions by 4 users not shown)
Line 43: Line 43:
: This program needs Perl to create example html files from the templates. If you don't have Perl installed (preferably 5.8.8) you'll need to do so now.
: This program needs Perl to create example html files from the templates. If you don't have Perl installed (preferably 5.8.8) you'll need to do so now.
: Under Windows you'll need to download ActivePerl 5.8.8.820+ from activeperl.com:
: Under Windows you'll need to download ActivePerl 5.8.8.820+ from activeperl.com:
:: http://downloads.activestate.com/ActivePerl/Windows/5.8/
:: http://www.activestate.com/activeperl/downloads
:: Install it to c:\perl (or some other directory, but remember where you installed it!).
:: Install it to c:\perl (or some other directory, but remember where you installed it!).
: Under Linux it should already be installed. If not get it from:
: Under Linux it should already be installed. If not get it from the link above.
:: http://downloads.activestate.com/ActivePerl/Linux/5.8/


: If you are not using 5.8.8.820 it's possible you need to update Storable, try the following:
: If you are not using 5.8.8.820 it's possible you need to update Storable, try the following:
Line 70: Line 69:
: Read here [[Mylist export SDK changelog]]
: Read here [[Mylist export SDK changelog]]


== SVN Access ==
== GIT Access ==
 
[[AniDB:Mylist_export_DEV]]
: If you created your own template for AniDB and want to share it with everyone else please send a pm to [[User:Der Idiot|deridiot]] or [[User:Fahrenheit|fahrenheit]] @ AniDB<br>
: You might also want to periodically check this page for a list of the latest changes.
 
: The source code of all release versions of the MyList Export templates listed on this page is [[AniDB:Mylist export DEV]].<br>
: By HTTP: [http://dev.anidb.net/websvn/listing.php?repname=AniDB+CSS&path=%2Ftrunk%2Fexport%2F&rev=0&sc=0 http://dev.anidb.net/websvn/]


== Template HowTo ==
== Template HowTo ==
Line 92: Line 86:
All files, if possible, in Unix format. But dos format doesn't hurt either, I'll convert them, in that case.<br>
All files, if possible, in Unix format. But dos format doesn't hurt either, I'll convert them, in that case.<br>
The export script will parse the mylist.tpl file and create one output file called i.e. mylist.htm. So mylist.tpl get's parsed only once (because you only have one MyList).<br>
The export script will parse the mylist.tpl file and create one output file called i.e. mylist.htm. So mylist.tpl get's parsed only once (because you only have one MyList).<br>
However anime.tpl will be parsed once for every anime in your MyList. And for each a unique file will be created. The default file extension for the output files is "htm", however if you create a file called "extension.dat" and put only the extension in the first line of the file, i.e. "txt" then that extension will be used.<br>
However anime.tpl will be parsed once for every anime in your MyList. And for each a unique file will be created. The default file extension for the output files is "htm", however if you create a file called "extension.dat" and put only the extension in the first line of the file, i.e. "txt" then that extension will be used.


The file info.dat should contain at least the following 3 lines:<br>
The file info.dat should contain at least the following 3 lines:<br>
     (C) 2003 by EXP
     (C) 2003 by EXP
     Version: 0.01 (08.07.2003)
     Version: 0.01 (08.07.2003)
<br>
 
1. copyright of the template author, you may include your email address here<br>
1. copyright of the template author, you may include your email address here<br>
2. version number and date<br>
2. version number and date<br>
3. one empty line<br>
3. one empty line


The rest may be used for a short description of the template.<br>
The rest may be used for a short description of the template.<br>
Please do not include the changelog in your info.dat file, instead create a separate changelog.txt file and put your changelog there.<br>
Please do not include the changelog in your info.dat file, instead create a separate changelog.txt file and put your changelog there.


Please also note that the content of the info.dat will be displayed on the AniDB MyList Export Page, so please make sure that your additional info is actually of interest to AniDB users who are trying to decide which theme to use.<br>
Please also note that the content of the info.dat will be displayed on the AniDB MyList Export Page, so please make sure that your additional info is actually of interest to AniDB users who are trying to decide which theme to use.


The export script will create the file (i.e.) mylist.htm and if anime.tpl was provided a folder "anime" where for each anime a file "a<animeid>.htm" will be created.<br>
The export script will create the file (i.e.) mylist.htm and if anime.tpl was provided a folder "anime" where for each anime a file "a<animeid>.htm" will be created.<br>
This can be used to created a linked animelist instead of one huge single html file with all data in it.<br>
This can be used to created a linked animelist instead of one huge single html file with all data in it.<br>
The tpl files are simple plain text or html files. So just put normal html code in them.<br>
The tpl files are simple plain text or html files. So just put normal html code in them.


The export function uses the HTML::Template Perl module to create the output.<br>
The export function uses the HTML::Template Perl module to create the output.<br>
This means you have to use some special tags:<br>
This means you have to use some special tags:


----
----
Line 160: Line 154:
; global_date : Date of creation (i.e. 02.08.2003 12:18)
; global_date : Date of creation (i.e. 02.08.2003 12:18)
; global_date_short : Short date of creation (i.e. 02.08.03)
; global_date_short : Short date of creation (i.e. 02.08.03)
; global_animecount : Number of animes in MyList
; global_animecount : Number of anime in MyList
; global_epcount : Number of episodes in MyList
; global_totalepcount : Total number of episodes in MyList, including both normal and special episodes
; global_epcount : Number of <u>normal</u> episodes in MyList
:''Normal excludes special episodes, such as S, C, T, O, and P episodes''
; global_spcount : Number of <u>special</u> episodes in MyList
:''Special episodes only, such as S, C, T, O, and P episodes''
; global_filecount : Number of files in MyList
; global_filecount : Number of files in MyList
; global_bytecount : Overall size of all files in MyList in Bytes
; global_bytecount : Overall size of all files in MyList in Bytes
Line 415: Line 413:
; status_anime_iscomplete : Anime is complete (0/1)
; status_anime_iscomplete : Anime is complete (0/1)
; status_anime_iswatched : Anime is completely watched (0/1)
; status_anime_iswatched : Anime is completely watched (0/1)
; status_anime_genre_<genrename> : '''[deprecated]''' i.e. status_anime_genre_action = 1, if the anime has genre action added. Genres are all lowercase and spaces are replaced with _.
; status_anime_genre_<genrename> : '''[deprecated]''' i.e. status_anime_genre_action = 1, if the anime has genre action added. Genres are all lower case and spaces are replaced with _.
; status_anime_my_isvoted : User voted for this anime (0/1)
; status_anime_my_isvoted : User voted for this anime (0/1)
; status_anime_my_istmpvoted : User temporally voted for this anime (0/1)
; status_anime_my_istmpvoted : User temporally voted for this anime (0/1)
Line 635: Line 633:
; 6 : Web
; 6 : Web
; 5 : Other
; 5 : Other
; 6 : TV Special
; 7 : TV Special
; 8 : Music Video


----
----
Line 642: Line 641:
; 1 : unknown
; 1 : unknown
; 2 : japanese
; 2 : japanese
; 3 : chinese (unspecified)
; 3 : chinese
; 4 : english
; 4 : english
; 5 : german
; 5 : german
Line 655: Line 654:
; 21 : portuguese
; 21 : portuguese
; 23 : norwegian
; 23 : norwegian
; 25 : brazilian
; 25 : portuguese (brazilian)
; 26 : catalan
; 26 : spanish (catalan)
; 27 : czech
; 27 : czech
; 28 : danish
; 28 : danish
; 29 : dutch
; 29 : dutch
; 30 : finish
; 30 : finnish
; 31 : greek
; 31 : greek
; 32 : hebrew
; 32 : hebrew
; 33 : hungarian
; 33 : hungarian
; 34 : instrumental (only on Audio Languages)
; 34 : instrumental (only in audio languages)
; 35 : lithuanian
; 35 : lithuanian
; 37 : thai
; 37 : thai
; 38 : turkish
; 38 : turkish
; 41 : chinese (mandarin) (not in Sub Languages)
; 41 : chinese (mandarin) (only in audio languages)
; 42 : chinese (cantonese) (not in Sub Languages)
; 42 : chinese (cantonese) (only in audio languages)
; 43 : taiwanese
; 43 : chinese (taiwanese) (only in audio languages)
; 58 : other
; 58 : other
; 61 : romanian
; 61 : romanian
Line 676: Line 675:
; 63 : slovak
; 63 : slovak
; 64 : slovenian
; 64 : slovenian
; 65 : tartar
; 65 : tatar
; 67 : latvian
; 67 : latvian
; 68 : georgian
; 68 : georgian
; 69 : latin
; 69 : latin
; 70 : vietnamese
; 71 : indonesian
; 73 : tamil
; 74 : bulgarian
; 75 : japanese (transcription) (only in sub languages)
; 76 : estonian
; 77 : ukrainian
; 78 : croatian
; 79 : serbian
; 80 : chinese (traditional) (only in sub languages)
; 81 : chinese (simplified) (only in sub languages)
; 84 : icelandic
; 85 : albanian
; 86 : bengali
; 87 : korean (transcription) (only in sub languages)
; 88 : spanish (latin american)
; 89 : spanish (galician)
; 90 : javanese
; 91 : persian
; 92 : filipino
; 93 : haitian creole
; 94 : mongolian
; 95 : chinese (transcription) (only in sub languages)
; 96 : hindi
; 97 : sinhala
; 98 : esperanto
; 100 : urdu (only in sub languages)
; 101 : spanish (basque)
; 102 : afrikaans
; 103 : greek (ancient) (only in sub languages)
; 104 : nepali
; 105 : bosnian
; 137 : filipino (tagalog)
; 138 : thai (transcription) (only in sub languages)
; 139 : telugu
; 140 : burmese


----
----
Line 700: Line 735:
; 7 : MSAudio
; 7 : MSAudio
; 8 : Vorbis (Ogg Vorbis)
; 8 : Vorbis (Ogg Vorbis)
; 9 : AAC
; 9 : (HE-)AAC
; 10 : PCM
; 10 : PCM
; 11 : MP2
; 11 : MP2
; 13 : DTS
; 13 : DTS
; 15 : Other
; 16 : FLAC
; 17 : RealAudio G2/8 (Cook)
; 18 : QDesign
; 19 : WavPack
; 20 : Dolby TrueHD
; 21 : ALAC
; 22 : OPUS
; 23 : RealAudio 8 (Atrac)
; 24 : Speex
; 25 : Truespeech
; 26 : Meridian Lossless Packing
; 27 : GSM
; 28 : RT29
; 29 : True Audio
; 30 : Indeo
; 32 : Dolby Digital Plus
; 33 : DTS-HD MA
; 34 : DTS-HD HRA
; 35 : HE-AAC (legacy)
; 36 : RealAudio 4/5 (Sipr)
; 37 : RealAudio 10 (Raac)
; 38 : RealAudio 10 (Racp)
; 39 : RealAudio 3 (Dnet)
; 40 : RealAudio 10 (Ralf)
; 41 : MP1
; 42 : Apple MACE
; 43 : MPEG-4 ALS
; 44 : Linear PCM


----
----
Line 712: Line 776:
; 30 : fandub
; 30 : fandub
; 40 : alternative voiceover
; 40 : alternative voiceover
; 50 : audio description
; 100 : other
; 100 : other
; 200 : unknown


----
----
Line 756: Line 822:
; 2 : wrong aspect ratio
; 2 : wrong aspect ratio
; 4 : variable frame rate
; 4 : variable frame rate
; 8 : clean video (no hardsubs...)
; 8 : clean video (no hardsubs)
; 16 : 10bit video
; 32 : creditless
; 64 : 3D video
; 128 : 12bit video


----
----
Line 762: Line 832:
=== Video Codecs ===
=== Video Codecs ===
; 1 : unknown
; 1 : unknown
; 2 : DivX UNK
; 2 : Other (DivX)
; 3 : DivX3
; 3 : DivX3
; 5 : DivX4
; 5 : DivX4
; 7 : DivX5 (also DivX6)
; 7 : DivX5/6
; 9 : MPEG-1
; 9 : MPEG-1
; 10 : MPEG-2
; 10 : MPEG-2
; 11 : ASP Other
; 11 : MPEG-4 (A)SP
; 12 : Other (non-ASP)
; 12 : Other (MPEG-4 (A)SP)
; 14 : RealVideo Other
; 14 : Other (RealVideo)
; 17 : XviD
; 17 : XviD
; 18 : MS MP4x (also WMV1/2)
; 18 : MS MP4x
; 19 : WMV9 (also WMV3)
; 19 : Other (WMV3/WMV9)
; 20 : RealVideo 9/10 (also RV40)
; 20 : RealVideo 9/10
; 22 : H264/AVC
; 22 : H264/AVC
; 24 : Cinepak
; 25 : VC-1
; 26 : Sorenson Video
; 27 : VP8
; 28 : Indeo Video 5
; 29 : Other (VPx)
; 30 : Theora
; 31 : Apple Video
; 33 : Sorenson Video 3
; 34 : VP3
; 35 : VP6
; 36 : VP7
; 37 : VP9
; 38 : RealVideo 1
; 39 : RealVideo G2
; 40 : RealVideo 8
; 41 : Dirac
; 42 : HuffYUV
; 43 : FFDShow Video
; 44 : Indeo Video 3
; 45 : Indeo Video 4
; 46 : Lagarith
; 47 : Raw RGB
; 48 : WMV1
; 49 : WMV2
; 50 : H263
; 51 : HEVC
; 52 : Sorenson Spark
; 53 : MS Video 1
; 54 : DV Video
; 55 : DivX2
; 56 : Other
; 57 : Motion JPEG Video
; 90 : FFMpeg MPEG-4
; 91 : 3ivx
; 93 : AV1
; 94 : Apple ProRes


----
----
Line 795: Line 902:
; 2 : camcorder
; 2 : camcorder
; 3 : TV
; 3 : TV
; 5 : DTV
; 4 : VHS
; 4 : VHS
; 5 : DTV
; 9 : VCD
; 8 : SVCD
; 6 : LD
; 6 : LD
; 7 : DVD
; 7 : DVD
; 8 : SVCD
; 9 : VCD
; 10 : HKDVD
; 10 : HKDVD
; 11 : www
; 11 : www
; 14 : HDTV
; 15 : HD-DVD
; 16 : Blu-ray
; 17 : 8mm
; 18 : 16mm
; 19 : 35mm


----
----
115

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.