Template:CRT model: Difference between revisions

No edit summary
Tag: visualeditor-wikitext
Store Height/Width/Depth as SMW properties (form already annotates them; template never #set them)
 
(65 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#default_form:CRT model}}
__NOCACHE__{{#default_form:CRT model}}{{#invoke:CRTModel|infobox}}{{#set:
 
<!-- Template:CRT model -->
 
{| class="wikitable" style="float:right; margin:0 0 1em 1em; width: 320px;"
|+ {{{brand|}}} {{{model_code|}}}
 
|-
! Brand
| {{#formredlink:
  target={{{brand|}}}
  |form=Manufacturer
  |existing page link text={{{brand|}}}
}}
{{#if:{{{image_main|}}}|{{!}}-
! Photo
{{!}} [[File:{{#replace:{{{image_main}}}|File:|}}|frameless|220px]]}}
|-
! ECID
| [{{fullurl:{{PAGENAME}}|curid={{PAGEID}}}} CRTQ{{PAGEID}}]
|-
! Model code
| {{{model_code|}}}
{{#if:{{{crt_type|}}}|{{!}}-
! Type
{{!}} {{{crt_type}}}}}
{{#if:{{{screen_size_in|}}}|{{!}}-
! Screen size (in)
{{!}} {{{screen_size_in}}}}}
{{#if:{{{tvl|}}}
|{{!}}-
! TVL
{{!}} {{{tvl}}}
}}
{{#if:{{{chassis|}}}
|{{!}}-
! Chassis
{{!}} {{#formredlink:
  target={{{chassis}}}
  |form=Chassis
  |existing page link text={{{chassis}}}
}}
}}
{{#if:{{{height|}}}|
{{!}}-
! Dimensions (H×W×D)
{{!}} {{{height}}} × {{{width}}} × {{{depth}}}
}}
{{#if:{{{weight|}}}|
{{!}}-
! Weight
{{!}} {{{weight}}}
}}
|-
! Inputs
|
{{#ask:
[[Has CRT model::{{FULLPAGENAME}}]]
|?Has video signal format=signal
|?Has connector type=connector
|?Has input count=count
|?Has input location=location
|format=ul
|template=CRT input inline
|named args=yes
|searchlabel=
}}
|-
! Standards
| {{{standards_semantic|}}}
|}
 
 
{{#set:
Has brand={{{brand|}}}
Has brand={{{brand|}}}
|Has OEM manufacturer={{{oem|}}}
|Has OEM manufacturer={{{oem|}}}
|Has model code={{{model_code|}}}
|Has model code={{{model_code|}}}
|Has series={{{series|}}}
|Has CRT type={{{crt_type|}}}
|Has CRT type={{{crt_type|}}}
|Has aliases={{{aliases|}}}
|Has form factor={{{form_factor|}}}
|Has built-in devices={{{built_in_devices|}}}|+sep=,
|Has screen size inches={{{screen_size_in|}}}
|Has screen size inches={{{screen_size_in|}}}
|Has aspect ratio={{{aspect_ratio|}}}
|Has aspect ratio={{{aspect_ratio|}}}
|Has TVL={{{tvl|}}}
|Has TVL={{{tvl|}}}
|Has tube type={{{tube_type|}}}
|Has tube type={{{tube_type|}}}
|Mask type={{{mask_type|}}}
|Pitch={{{pitch|}}}
|Phosphor type={{{phosphor_type|}}}
|Gun type={{{gun_type|}}}
|Deflection angle={{{deflection_angle|}}}
|Neck diameter={{{neck_diameter|}}}
|Visible width={{{visible_w|}}}
|Visible height={{{visible_h|}}}
|Visible diagonal={{{visible_diag|}}}
|Has chassis={{{chassis|}}}
|Has chassis={{{chassis|}}}
|Has chassis family={{{chassis_family|}}}
|Has remote control={{{remote_control|}}}
|Has accessory={{{remote_control|}}}
|Has variants={{{variants|}}}
|Has market={{{market|}}}|+sep=,
|Height={{{height|}}}
|Width={{{width|}}}
|Depth={{{depth|}}}
|Weight={{{weight|}}}
|Weight={{{weight|}}}
|Has tube={{{tube|}}}
|Has tube={{{tube|}}}
|Has signal standards={{{standards_semantic|}}}
|Has service manual URL={{{service_manual_urls|}}}
|Has service manual URL={{{service_manual_urls|}}}
}}
|Frequency={{{frequency|}}}|+sep=,
|Power average={{{power_avg|}}}
|Power max={{{power_max|}}}
|AV system={{{av_system|}}}|+sep=,
|Tuner system={{{tuner_system|}}}|+sep=,
|Horizontal scan min={{{h_scan_min|}}}
|Horizontal scan max={{{h_scan_max|}}}
|Vertical scan min={{{v_scan_min|}}}
|Vertical scan max={{{v_scan_max|}}}
|Has speaker type={{{speaker_type|}}}
|Has speaker watts={{{speaker_watts|}}}
|Has subwoofer={{{subwoofer|}}}
|Release year={{{release_year|}}}
|MSRP={{{msrp|}}}
}}{{#if:{{{image_main|}}}|{{#set:Has image=File:{{#replace:{{{image_main}}}|File:|}}}}}}{{#if:{{{images|}}}|{{#invoke:EveryCRTImages|annotate|images={{{images}}}|prop=Has images}}}}
{{#if:{{{suppress_gallery|}}}||{{#if:{{{images|}}}|
== Photos ==


{{#if:{{{image_main|}}}|{{#set:Has image=File:{{#replace:{{{image_main}}}|File:|}}}}}}
{{#if:{{{images|}}}|
== 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>
 
{{#if:{{{images|}}}|
{{#invoke:EveryCRTImages|annotate|images={{{images}}}|prop=Has images}}
}}
 
== Documents ==
 
<div style="margin:0.5em 0;">
{{#invoke:EveryCRTLinks|addDocumentLink}}
</div>
 
{{#ask:
[[Category:Documents]]
[[Has related CRT model::{{PAGENAME}}]]
|?Has document type=Type
|?Has document URL=URL
|format=table
|class=wikitable
|headers=show
|mainlabel=Title
}}
 
[[Category:CRT models]]
MediaWiki Appliance - Powered by TurnKey Linux