MediaWiki:AV Device Search.js: Difference between revisions
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 28: | Line 28: | ||
printouts: [ | printouts: [ | ||
{ property: 'Has device type', key: 'device_type' }, | { property: 'Has device type', key: 'device_type' }, | ||
{ property: 'Has format family', key: 'format_family' } | { property: 'Has format family', key: 'format_family' }, | ||
{ property: 'Has supported formats', key: 'supported_formats' } | |||
], | ], | ||
| Line 47: | Line 48: | ||
type: 'select', | type: 'select', | ||
property: 'Has brand', | property: 'Has brand', | ||
loadFrom: 'category', | loadFrom: 'smw', | ||
smwQuery: '[[Is AV brand category::Yes]]', | |||
smwProperty: 'Brand name' | |||
}, | }, | ||
device_type: { | device_type: { | ||
| Line 54: | Line 56: | ||
type: 'select', | type: 'select', | ||
property: 'Has device type', | property: 'Has device type', | ||
loadFrom: ' | loadFrom: 'smw', | ||
smwQuery: '[[Is AV device type category::Yes]]', | |||
smwProperty: 'Device type name' | |||
}, | }, | ||
format_family: { | format_family: { | ||
| Line 77: | Line 64: | ||
type: 'select', | type: 'select', | ||
property: 'Has format family', | property: 'Has format family', | ||
loadFrom: ' | loadFrom: 'smw', | ||
smwQuery: '[[Category:AV devices]][[Has format family::+]]', | |||
smwProperty: 'Has format family' | |||
}, | |||
plays: { | |||
label: 'Plays', | |||
type: 'select', | |||
property: 'Has supported formats', | |||
loadFrom: 'smw', | |||
smwQuery: '[[Category:AV devices]][[Has supported formats::+]]', | |||
smwProperty: 'Has supported formats' | |||
} | } | ||
} | } | ||
| Line 93: | Line 89: | ||
}, | }, | ||
has_frame_tbc: { | has_frame_tbc: { | ||
label: 'Frame | label: 'Frame synchronizer', | ||
type: 'checkbox', | type: 'checkbox', | ||
property: 'TBC type', | property: 'TBC type', | ||
containsValue: 'Frame | containsValue: 'Frame synchronizer' | ||
} | } | ||
} | } | ||