Template:CRT input inline: Difference between revisions
Always show location inline since we're no longer grouping by location (via update-page on MediaWiki MCP Server) |
Fix whitespace trimming: use entities for spaces before "via" and before "–" to prevent MediaWiki parser function trimming (via update-page on MediaWiki MCP Server) |
||
| (One intermediate revision by the same user not shown) | |||
| 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|}}}|– {{{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|}}}| – {{{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 12: | Line 12: | ||
== Example outputs == | == Example outputs == | ||
* <code>3× Composite (CVBS)(RCA (connector)), Stereo audio via RCA (connector)– rear</code> | * <code>3× Composite (CVBS)(RCA (connector)), Stereo audio via RCA (connector) – rear</code> | ||
* <code>S-Video (Y/C)(Mini-DIN-4), audio shared w/ | * <code>S-Video (Y/C)(Mini-DIN-4), audio shared w/ AV1 – rear</code> | ||
* <code>RF(RF (F-type))– rear</code> | * <code>RF(RF (F-type)) – rear</code> | ||
* <code>3× Composite (CVBS)(RCA (connector))– rear/front</code> | * <code>3× Composite (CVBS)(RCA (connector)) – rear/front</code> | ||
[[Category:CRT templates]] | [[Category:CRT templates]] | ||
</noinclude> | </noinclude> | ||