User:Fahrenheit: Difference between revisions

Jump to navigation Jump to search
Line 17: Line 17:
=== Syntax and some rules ===
=== Syntax and some rules ===


Filter Syntax:
Filter Syntax:<br />
Except for element "0", that states how many rules there are, elements follow this format:<br />
Except for element "0", that states how many rules there are, elements follow this format:<br />
"RULE NUMBER":{"RULE SUBJECT #1":"OPERATION,TEST";"RULE SUBJECT #2":"OPERATION,TEST"; etc};<br />
"'''RULE NUMBER'''":{"'''RULE SUBJECT''' #1":"'''OPERATION''','''TEST'''";"'''RULE SUBJECT''' #2":"'''OPERATION''','''TEST'''"; etc};<br />
where RULE SUBJECT can be one of the following:
<br />
 
Where '''RULE SUBJECT''' can be one of the following:
<br />
;fdate : File add date
;fdate : File add date
;eusers : Total number of users for this episode
;eusers : Total number of users for this episode
Line 34: Line 35:
;fslang : Any of the file audio languages is one of the preferred langs (if using obj.filterSubLang) or given lang
;fslang : Any of the file audio languages is one of the preferred langs (if using obj.filterSubLang) or given lang
;ftype : File type (generic)
;ftype : File type (generic)
;fsource : File source (HDTV, DTV, etc)
;fextension : File extension (mkv, avi, mov, etc)
;fdeprecated : Is file deprecated
;fdeprecated : Is file deprecated
 
;fraw : Is file RAW
NOTE0: When RULE SUBJECT is prefixed with "c_sf_", there will be test of comparison for all files of the episode and the results of this comparison will be stored in processing Files<br />
;fgroupfiltered : Is group filtered
NOTE1: When RULE SUBJECT is prefixed with "c_rf_", there will be test of comparison for all files stored in processing Files, and the list will be updated with the results<br />
<br />
NOTE2: No RULE SUBJECT prefixed with "c_" imply that you are testing an attribute, think of it as a SQL select where OPERATION can be one of the following:
'''Notes:'''
 
* When '''RULE SUBJECT''' is prefixed with "c_sf_", there will be test of comparison for all files of the episode and the results of this comparison will be stored in processing Files
* When '''RULE SUBJECT''' is prefixed with "c_rf_", there will be test of comparison for all files stored in processing Files, and the list will be updated with the results
* No '''RULE SUBJECT''' prefixed with "c_" imply that you are testing an attribute, think of it as a SQL select where  
<br />
'''OPERATION''' can be one of the following:
<br />
;> : greater than
;> : greater than
;< : lesser than
;< : lesser than
Line 46: Line 54:
;== : Equal to
;== : Equal to
;!= : Not equal to
;!= : Not equal to
 
<br />
where TEST is the value to test, there are special cases:
Where '''TEST''' is the value to test, there are special cases:
 
<br />
;this : will test against the same RULE SUBJECT (only used in "c" prefixed RULE SUBJECTS)
;this : will test against the same '''RULE SUBJECT''' (only used in "c" prefixed '''RULE SUBJECTS''')
 
<br />
NOTE1: for each RULE NUMBER the RULE SUBJECTS are tested using AND<br />
'''Notes:'''
NOTE2: Will only test RULES until end or a failed test
* For each '''RULE NUMBER''' the '''RULE SUBJECTS''' are tested using '''AND'''
* Will only test '''RULES''' until end or a failed test


----
----
Line 79: Line 88:


==== Default Hidden ====
==== Default Hidden ====
filterObj.defaultHidden = {0:2,
<pre>filterObj.defaultHidden = {0:2,
                           1:{"falang":"==,obj.filterAudLang"},
                           1:{"falang":"==,obj.filterAudLang"},
                           2:{"fslang":"==,obj.filterSubLang"}};
                           2:{"fslang":"==,obj.filterSubLang"}};</pre>


=== Example of usage ===
=== Example of usage ===
347

edits

Navigation menu

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