Template:Remote control: Difference between revisions
Create remote control template similar to Chassis template (via create-page on MediaWiki MCP Server) |
Update to use Lua infobox, rename manufacturer to brand, add model_code and photos (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:RemoteControl|infobox}} | ||
== CRT models using this remote control == | == CRT models using this remote control == | ||
{{#ask: | {{#ask: | ||
| Line 17: | Line 15: | ||
{{#set: | {{#set: | ||
Has | Has brand={{{brand|}}} | ||
|Has model code={{{model_code|}}} | |||
}}{{#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]] | [[Category:Remote controls]] | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Remote control | {{Remote control | ||
| | |brand=Sony | ||
|model_code=RM-Y195 | |||
}} | }} | ||
This template defines a remote control page. It is used via [[Form:Remote control]]. | This template defines a remote control page. It is used via [[Form:Remote control]]. | ||
== Parameters == | == Parameters == | ||
* ''' | * '''brand''' – The brand of this remote control (required) | ||
* '''model_code''' – The model code/number (required) | |||
* '''image_main''' – Main photo of the remote | |||
* '''images''' – Additional photos | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 00:13, 28 December 2025
CRT models using this remote control
This template defines a remote control page. It is used via Form:Remote control.
Parameters
- brand – The brand of this remote control (required)
- model_code – The model code/number (required)
- image_main – Main photo of the remote
- images – Additional photos