Profile: Difference between revisions

Jump to navigation Jump to search
3,067 bytes added ,  18 February 2012
→‎ED2K link filename pattern: - Migrating ed2k profile-page here. Fixed grammar.
(Update, Ho! (A few things still missing. Individual JS/AJAX notes should be looked over by staff to specify details.))
(→‎ED2K link filename pattern: - Migrating ed2k profile-page here. Fixed grammar.)
Line 212: Line 212:
:Allows you to rearrange ed2k links to your preferred custom pattern.
:Allows you to rearrange ed2k links to your preferred custom pattern.
{{eyecatch|1|Default|%ant - %enr%ver - %ept - <[%grp]><(%crc)><(%cen)><(%lang)><(%raw)>}}
{{eyecatch|1|Default|%ant - %enr%ver - %ept - <[%grp]><(%crc)><(%cen)><(%lang)><(%raw)>}}
=====Variables=====
{|align="center" style="border: 1px solid #aaaaaa; border-collapse: collapse; background: #f9f9f9; line-height: 1.0; font-size: small; width: 95%"
! style="border: 1px solid #aaaaaa; background: #f2f2f2; text-align: left;" | Variable
! style="border: 1px solid #aaaaaa; background: #f2f2f2; text-align: left;" | Description
|-
|'''%ant'''||Anime title (uses default language definitions).||
|-
|'''%anat'''||Alternative anime title.||
|-
|'''%ept'''||Episode title (uses default language definitions).||
|-
|'''%epat'''||Alternative episode title.||
|-
|'''%enr'''||Episode number.||
|-
|'''%pn'''||Part name (“EP” if anime.type != 4 / “PA” otherwise).||
|-
|'''%fpn'''||Full part name (“Episode” if anime.type != 4 / “Part” otherwise).||
|-
|'''%raw'''||Whether the file is a raw file (audio only).||
|-
|'''%crc'''||CRC sum or “INVALID” if CRC is invalid.||
|-
|'''%CRC'''||CRC sum in caps or “INVALID” if CRC is invalid.||
|-
|'''%ver'''||Version string (only if version > 1).||
|-
|'''%cen'''||Censored string (cen).||
|-
|'''%uncen'''||Uncensored string (cen).||
|-
|'''%dub'''||Dub languages (ALL OF THEM, separated by commas).||
|-
|'''%sub'''||Sub languages (ALL OF THEM, separated by commas).||
|-
|'''%lang'''||E.g. “dub.sub_jp+.de+” (current db format).||
|-
|'''%flang'''||E.g. “dub.sub_jp,de,en.de,en” (extended format).||
|-
|'''%grp'''||Group short name.||
|-
|'''%grn'''||Group full name.||
|-
|'''%qual'''||Quality.||
|-
|'''%src'''||Source.||
|-
|'''%res'''||Resolution.||
|-
|'''%vcodec'''||Video codec (first video stream).||
|-
|'''%acodec'''||Audio codec (first audio stream).||
|-
|'''%achans'''||Audio channels (first audio stream).||
|-
|'''%eps'''||Total number of episodes.||
|-
|'''%atype'''||[unknown, TV, OVA, Movie, Other, web]||
|-
|'''%fid'''||File ID.||
|-
|'''%aid'''||Anime ID.||
|-
|'''%eid'''||Episode ID.||
|-
|'''%gid'''||Group ID.||
|-
|'''%dlen'''||File size in bytes, grouped with periods.||
|-
|'''%hlen'''||File size (auto).||
|-
|'''%flen'''||File size.||
|-
|'''%ext'''||File extension.||
|-
|'''%ed2k'''||ed2k hash.||
|-
|}
=====Conditional expression (If-logic)=====
Imagine that you want to show that a file is raw and use the following pattern:
[%raw] %ann - %enr - %epn
For files that aren't raw, it will appear as: ''“[] Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant”'' (example).
By using '<' and '>' around one or a set of variables, if any variable inside returns as empty, nothing will be shown. Changing the pattern to:
<[%raw] >%ann - %enr - %epn
For files that aren't raw, it will now appear as: ''“Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant”'' (example).
=====Example of the default format=====
The default format (shown above) for file [http://anidb.net/perl-bin/animedb.pl?show=file&fid=182271&nonav=1 182271] returns the following ed2k link:
ed2k://|file|Fullmetal_Panic!_-_1_-_The_Guy_I_Kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub_en.de.ja)_(sub_en.de).avi|238990934|62c078dc6c78597e7a6c81734cc0ee27|/


====Space replacement character in ed2k links====
====Space replacement character in ed2k links====
130

edits

Navigation menu

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