Template:LocoTechInfobox/Lionel: Difference between revisions
Quietrebel (talk | contribs) (initial template creation) |
Quietrebel (talk | contribs) No edit summary |
||
| Line 80: | Line 80: | ||
Product Line compat tables — it visually separates the protocol systems above and below. | Product Line compat tables — it visually separates the protocol systems above and below. | ||
</noinclude><includeonly><div class="railrosterdb-infobox loco-tech-infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:280px; border:1px solid #aaa; background:#fff; font-size:0.9em; line-height:1.5;"> | </noinclude><includeonly><div class="railrosterdb-infobox loco-tech-infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:280px; border:1px solid #aaa; background:#fff; font-size:0.9em; line-height:1.5;"> | ||
<!-- MODEL PHOTO / PLACEHOLDER --> | |||
{{#ifexist:File:Photo-{{{item_number|}}}.jpg | |||
| [[File:Photo-{{{item_number|}}}.jpg|278px|center|Model photo]] | |||
| <div style="background:#f8f9fa; border-bottom:1px solid #a2a9b1; padding:10px 8px; text-align:center; font-size:0.8em; color:#54595d;">No model photo yet — [{{fullurl:Special:Upload|wpDestFile=Photo-{{{item_number|}}}.jpg}} Upload photo]</div> | |||
}} | |||
<!-- TECH INFOBOX TITLE --> | <!-- TECH INFOBOX TITLE --> | ||
| Line 94: | Line 100: | ||
<tr style="background:#FDE8D8;"> | <tr style="background:#FDE8D8;"> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold; width:75%;">Bluetooth</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold; width:75%;">Bluetooth</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{bluetooth|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{bluetooth|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
| Line 102: | Line 108: | ||
<tr> | <tr> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">Legacy Control System</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">Legacy Control System</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{legacy|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{legacy|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr style="background:#FDE8D8;"> | <tr style="background:#FDE8D8;"> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">TMCC</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">TMCC</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{tmcc|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{tmcc|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">LC Universal Remote</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">LC Universal Remote</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{lc_universal|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{lc_universal|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr style="background:#FDE8D8;"> | <tr style="background:#FDE8D8;"> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">LC Individual Remote</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">LC Individual Remote</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{lc_individual|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{lc_individual|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">Conventional</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">Conventional</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{conventional|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{conventional|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
| Line 128: | Line 134: | ||
<tr style="background:#FDE8D8;"> | <tr style="background:#FDE8D8;"> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">Sound</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">Sound</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{sound|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{sound|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">Smoke Unit</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">Smoke Unit</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{smoke|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{smoke|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr style="background:#FDE8D8;"> | <tr style="background:#FDE8D8;"> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">Odyssey Speed Control</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">Odyssey Speed Control</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{odyssey|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{odyssey|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="padding:3px 6px; text-align:left; font-weight:bold;">ElectroCoupler</th> | <th style="padding:3px 6px; text-align:left; font-weight:bold;">ElectroCoupler</th> | ||
<td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{electrocoupler|no}}}}}|yes| | <td style="padding:3px 6px; text-align:center; font-size:1.1em;">{{#ifeq:{{lc:{{{electrocoupler|no}}}}}|yes|☑|☐}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
</div></includeonly> | </div></includeonly> | ||
Revision as of 16:02, 27 April 2026
Template:LocoTechInfobox/Lionel
Manufacturer tech infobox for Lionel product pages. Orange header (#E8650A) — distinct from the loco-category-driven universal infobox above it. Called directly below
No prototype photo yet — Upload photo
LocoTechInfobox/Lionel
| Item # | — |
|---|---|
| Manufacturer | — |
| Loco Type | — |
| Wheel Arr. | — |
| Proto. Manufacturer | — |
| Loco Category | — |
| Road Name | — |
| Road Number | — |
| Prototype Era | — |
| Catalog Year | — |
| Catalog Season | — |
| Product Line | — |
| Features | |
| Scale | — |
| Min. Curve | — |
| Run Type | — |
| MSRP | — |
with no blank line between — MediaWiki renders both as a visual stack.
All fields are always shown with ☑ or ☐. Fields are never hidden — an unchecked box is meaningful information (this system is not supported).
Values come directly from the spreadsheet Technical Features columns (Yes/No):
- Col 11: Legacy Control System
- Col 12: TMCC
- Col 13: Bluetooth
- Col 14: LC Universal Remote
- Col 15: LC Individual Remote
- Col 16: Conventional Control
- Col 19: Sound
- Col 20: Smoke Unit
- Col 21: Odyssey (Speed Control)
- Col 22: ElectroCoupler
Requires: ParserFunctions extension (ships with MediaWiki 1.39, enabled by default).
Usage
{{LocoTechInfobox/Lionel
| legacy =
| tmcc =
| bluetooth =
| lc_universal =
| lc_individual =
| conventional =
| sound =
| smoke =
| odyssey =
| electrocoupler =
}}
Parameters
All parameters accept Yes or No (case-insensitive). ☑ renders for Yes, ☐ for No or empty.
| Parameter | Spreadsheet Column | Description |
|---|---|---|
legacy |
Col 11 — Legacy Control | Legacy Control System compatible |
tmcc |
Col 12 — TMCC Control | TMCC compatible |
bluetooth |
Col 13 — Bluetooth | Bluetooth / app control |
lc_universal |
Col 14 — LC Universal Remote | LC Universal Remote compatible |
lc_individual |
Col 15 — LC Individual Remote | LC Individual Remote included |
conventional |
Col 16 — Conventional Control | Conventional transformer control |
sound |
Col 19 — Sound | Sound system present |
smoke |
Col 20 — Smoke Unit | Smoke unit present |
odyssey |
Col 21 — Odyssey (Speed Control) | Odyssey speed control present |
electrocoupler |
Col 22 — ElectroCoupler | ElectroCoupler present |
Color Reference
Orange throughout — signals manufacturer-specific block.
| Element | Hex |
|---|---|
| Header / sub-headers | #E8650A |
| Alternating rows | #FDE8D8 |
Notes
- When a second manufacturer is added, create Template:LocoTechInfobox/[MfgName] with
that manufacturer's own fields. No changes needed to this template.
- The Bluetooth row is styled distinctly (highlighted background) consistent with the
Product Line compat tables — it visually separates the protocol systems above and below.