Template:Remote control: Difference between revisions

Add __NOCACHE__ to ensure semantic queries always return fresh results (via update-page on MediaWiki MCP Server)
Convert to wrapper calling Template:Accessory - maintains backward compatibility (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
__NOCACHE__<includeonly>{{#invoke:RemoteControl|infobox}}
__NOCACHE__<includeonly>{{Accessory
== CRT models using this remote control ==
|brand={{{brand|}}}
{{#ask:
|model_code={{{model_code|}}}
[[Category:CRT models]]
|accessory_type=Remote control
[[Has remote control::{{PAGENAME}}]]
|image_main={{{image_main|}}}
|?Has image#100px;x100px=Photo
|images={{{images|}}}
|?Has model code=Model
}}</includeonly><noinclude>
|?Has CRT type=CRT type
'''This template is deprecated.''' New remote controls should use [[Template:Accessory]] directly with <code>accessory_type=Remote control</code>.
|?Has screen size inches=Screen size (in)
|?Has TVL=TVL
|format=table
|class=wikitable sortable
|mainlabel=CRT model
}}


{{#set:
This template now acts as a wrapper around Template:Accessory for backward compatibility.
Has brand={{{brand|}}}
|Has model code={{{model_code|}}}
|Has ECID={{{ecid|}}}
}}{{#if:{{{image_main|}}}|{{#set:Has image=File:{{#replace:{{{image_main}}}|File:|}}}}}}{{#if:{{{images|}}}|{{#invoke:EveryCRTImages|annotate|images={{{images}}}|prop=Has images}}}}
{{#if:{{{images|}}}|
== Photos ==


{{#invoke:EveryCRTImages|gallery|images={{{images}}}|mode=packed|heights=160}}
}}
[[Category:Remote controls]]
</includeonly><noinclude>
{{Remote control
{{Remote control
|brand=Sony
|brand=Sony
|model_code=RM-Y195
|model_code=RM-Y195
}}
}}
This template defines a remote control page. It is used via [[Form:Remote control]].


== Parameters ==
== Migration ==
* '''brand''' – The brand of this remote control (required)
All existing remote control pages have been migrated to use [[Template:Accessory]] directly. This wrapper ensures any remaining pages using the old template still render correctly.
* '''model_code''' – The model code/number (required)
 
* '''ecid''' – ECID code for this remote control
To create new remote controls, use [[Form:Accessory]] with type "Remote control".
* '''image_main''' – Main photo of the remote
* '''images''' – Additional photos


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
MediaWiki Appliance - Powered by TurnKey Linux