PROFILE ED2KPATTERN: Difference between revisions

m
removed redudant <tt>, the " " (blank) indent already does the same
mNo edit summary
m (removed redudant <tt>, the " " (blank) indent already does the same)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}
== Preferences for ed2k links ==
== Preferences for ed2k links ==
Some settings to control general aspect of ed2k links.
Some settings to control general aspect of ed2k links.
Line 53: Line 54:
=== *If* like cases ===
=== *If* like cases ===
Currently there's a way to make something like if cases, imagine that you want to show that a file is raw you could do something like this:
Currently there's a way to make something like if cases, imagine that you want to show that a file is raw you could do something like this:
  <tt>[%raw] %ann - %enr - %epn</tt>
  [%raw] %ann - %enr - %epn
But that would show for files that weren't raw some thing like this: <i>"[] Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"</i>.
But that would show for files that weren't raw some thing like this: ''"[] Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"''.


What you can use is '<' and '>' pairs, if a pattern inside of '<' and '>' returns "" the entire text inside of the '<' and '>' would simply not be shown, so if you changed your tag to be something like this:
What you can use is '<' and '>' pairs, if a pattern inside of '<' and '>' returns "" the entire text inside of the '<' and '>' would simply not be shown, so if you changed your tag to be something like this:
  <tt><[%raw] >%ann - %enr - %epn</tt>
  <[%raw] >%ann - %enr - %epn
For non raw files it would simply output this: <i>"Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"</i>
For non raw files it would simply output this: ''"Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"''
----
----


=== Default formats ===
=== Default formats ===
Currently AniDB uses something like this format:
Currently AniDB uses something like this format:
  <tt>%ann - %enr%ver - %epn - <[%grp]><(%crc)><(%cen)><(%lang)><(%raw)></tt>
  %ann - %enr%ver - %epn - <[%grp]><(%crc)><(%cen)><(%lang)><(%raw)>
This format for file [http://anidb.net/perl-bin/animedb.pl?show=file&fid=182271&nonav=1 182271] returns the following ed2k links:
This format for file [http://anidb.net/perl-bin/animedb.pl?show=file&fid=182271&nonav=1 182271] returns the following ed2k links:
; ajax page : <i>Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)</i>
; ajax page : ''Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)''
; new anime page : <i>Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)</i>
; new anime page : ''Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)''


<b>note</b>: the last link gets encoded to pass in browsers, the actual output is:
'''Note:''' The last link gets encoded to pass in browsers, the actual output is:
  <tt>ed2k://|file|Full%20Metal%20Panic!%20-%2001%20-%20The%20guy%20I%20kinda%20Like%20is%20a%20Sergeant%20-%20%5BaF%5D(c154d33d)(dub.sub_jp+.de+).avi|238990934|62c078dc6c78597e7a6c81734cc0ee27|/</tt>
  ed2k://|file|Full%20Metal%20Panic!%20-%2001%20-%20The%20guy%20I%20kinda%20Like%20is%20a%20Sergeant%20-%20%5BaF%5D(c154d33d)(dub.sub_jp+.de+).avi|238990934|62c078dc6c78597e7a6c81734cc0ee27|/
1,633

edits

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