Template:CRT model: Difference between revisions
Add Has accessory property for remote_control (enables accessory page queries) (via update-page on MediaWiki MCP Server) |
Store Height/Width/Depth as SMW properties (form already annotates them; template never #set them) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 25: | Line 25: | ||
|Has accessory={{{remote_control|}}} | |Has accessory={{{remote_control|}}} | ||
|Has variants={{{variants|}}} | |Has variants={{{variants|}}} | ||
|Has market={{{market|}}}|+sep=, | |||
|Height={{{height|}}} | |||
|Width={{{width|}}} | |||
|Depth={{{depth|}}} | |||
|Weight={{{weight|}}} | |Weight={{{weight|}}} | ||
|Has tube={{{tube|}}} | |Has tube={{{tube|}}} | ||
| Line 43: | Line 47: | ||
|MSRP={{{msrp|}}} | |MSRP={{{msrp|}}} | ||
}}{{#if:{{{image_main|}}}|{{#set:Has image=File:{{#replace:{{{image_main}}}|File:|}}}}}}{{#if:{{{images|}}}|{{#invoke:EveryCRTImages|annotate|images={{{images}}}|prop=Has images}}}} | }}{{#if:{{{image_main|}}}|{{#set:Has image=File:{{#replace:{{{image_main}}}|File:|}}}}}}{{#if:{{{images|}}}|{{#invoke:EveryCRTImages|annotate|images={{{images}}}|prop=Has images}}}} | ||
{{#if:{{{images|}}}| | {{#if:{{{suppress_gallery|}}}||{{#if:{{{images|}}}| | ||
== Photos == | == Photos == | ||
{{#invoke:EveryCRTImages|gallery|images={{{images}}}|mode=packed|heights=160}} | {{#invoke:EveryCRTImages|gallery|images={{{images}}}|mode=packed|heights=160}} | ||
}}<includeonly>[[Category:CRT models]]{{#if:{{{brand|}}}|[[Category:{{{brand}}} CRTs]]}}{{#if:{{{crt_type|}}}|[[Category:{{{crt_type}}}]]}}{{#if:{{{screen_size_in|}}}||[[Category:CRT stubs]]}}{{#if:{{{image_main|}}}||[[Category:CRT models needing images]]}}{{#if:{{{crt_type|}}}||[[Category:CRTs missing type]]}}{{#ifeq:{{{form_factor|}}}|Console|[[Category:Console CRTs]]}}{{#ifeq:{{{form_factor|}}}|Portable|[[Category:Portable CRTs]]}}{{#ifeq:{{{form_factor|}}}|Wall-mount|[[Category:Wall-mount CRTs]]}}{{#if:{{#pos:{{{built_in_devices|}}}|VCR}}|[[Category:TV/VCR Combo CRTs]]}}{{#if:{{#pos:{{{built_in_devices|}}}|DVD}}|[[Category:TV/DVD Combo CRTs]]}}{{#if:{{#pos:{{{built_in_devices|}}}|AM/FM radio}}|[[Category:TV/Radio Combo CRTs]]}}{{#if:{{{series|}}}||[[Category:CRTs without series]]}}</includeonly> | }}}}<includeonly>[[Category:CRT models]]{{#if:{{{brand|}}}|[[Category:{{{brand}}} CRTs]]}}{{#if:{{{crt_type|}}}|[[Category:{{{crt_type}}}]]}}{{#if:{{{screen_size_in|}}}||[[Category:CRT stubs]]}}{{#if:{{{image_main|}}}||[[Category:CRT models needing images]]}}{{#if:{{{crt_type|}}}||[[Category:CRTs missing type]]}}{{#ifeq:{{{form_factor|}}}|Console|[[Category:Console CRTs]]}}{{#ifeq:{{{form_factor|}}}|Portable|[[Category:Portable CRTs]]}}{{#ifeq:{{{form_factor|}}}|Wall-mount|[[Category:Wall-mount CRTs]]}}{{#if:{{#pos:{{{built_in_devices|}}}|VCR}}|[[Category:TV/VCR Combo CRTs]]}}{{#if:{{#pos:{{{built_in_devices|}}}|DVD}}|[[Category:TV/DVD Combo CRTs]]}}{{#if:{{#pos:{{{built_in_devices|}}}|AM/FM radio}}|[[Category:TV/Radio Combo CRTs]]}}{{#if:{{{series|}}}||[[Category:CRTs without series]]}}</includeonly> | ||