Template:CRT input inline: Difference between revisions
Add location display for non-standard locations (shown in Multiple section) (via update-page on MediaWiki MCP Server) |
Show non-standard location values (e.g. rear/front) in the display (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<includeonly><span>{{#if:{{{count|}}}|{{#ifeq:{{{count}}}|1||{{{count}}}× }}}}[[{{{signal}}}]]{{#if:{{{connector|}}}| ([[{{{connector}}}]])}}{{#if:{{{audio|}}}|{{#ifeq:{{{audio}}}|None||, {{{audio}}} audio{{#if:{{{audio_connector|}}}| via [[{{{audio_connector}}}]]}}}}}}{{#if:{{{audio_shared|}}}|, audio shared w/ {{{audio_shared}}}}}{{#if:{{{location|}}}|}}</span></includeonly><noinclude> | <includeonly><span>{{#if:{{{count|}}}|{{#ifeq:{{{count}}}|1||{{{count}}}× }}}}[[{{{signal}}}]]{{#if:{{{connector|}}}| ([[{{{connector}}}]])}}{{#if:{{{audio|}}}|{{#ifeq:{{{audio}}}|None||, {{{audio}}} audio{{#if:{{{audio_connector|}}}| via [[{{{audio_connector}}}]]}}}}}}{{#if:{{{audio_shared|}}}|, audio shared w/ {{{audio_shared}}}|}}}{{#if:{{{location|}}}|}|{{#ifeq:{{{location}}}|front||{{#ifeq:{{{location}}}|rear||{{#ifeq:{{{location}}}|side|| – ''{{{location}}}''}}}}}}}</span></includeonly><noinclude> | ||
This template formats input entries for inline display in the CRT model infobox. | This template formats input entries for inline display in the CRT model infobox. | ||
| Line 9: | Line 9: | ||
* '''audio_connector''' - Audio connector type | * '''audio_connector''' - Audio connector type | ||
* '''audio_shared''' - Label of input this shares audio with | * '''audio_shared''' - Label of input this shares audio with | ||
* '''location''' - Location on the unit ( | * '''location''' - Location on the unit (shown in italics for non-standard values like "rear/front") | ||
== Example outputs == | == Example outputs == | ||
| Line 15: | Line 15: | ||
* <code>S-Video (Y/C) (Mini-DIN-4), audio shared w/ Front</code> | * <code>S-Video (Y/C) (Mini-DIN-4), audio shared w/ Front</code> | ||
* <code>RF (RF (F-type))</code> | * <code>RF (RF (F-type))</code> | ||
* <code>3× Composite (CVBS) (RCA (connector)) – ''rear/front''</code> (for non-standard locations) | |||
[[Category:CRT templates]] | [[Category:CRT templates]] | ||
</noinclude> | </noinclude> | ||