Template talk:Sockets: Difference between revisions

Discussion page of Template:Sockets
No edit summary
No edit summary
Line 7: Line 7:
preferably we can write the template as
preferably we can write the template as
</nowiki>
</nowiki>
<nowiki>
<nowiki>
{{Sockets|UNITNAME|#LGE|#MED|#SML|#INT}}
{{Sockets|UNITNAME|#LGE|#MED|#SML|#INT}}
</nowiki>
</nowiki>
<nowiki>
<nowiki>
and have the template omit a row if one of the segments is empty
and have the template omit a row if one of the segments is empty

Revision as of 13:03, 6 August 2023

old code

Sockets for UNITNAME
Large L L L L
Medium M M M M
Small S S S S
Internal I I I I



preferably we can write the template as

{{Sockets|UNITNAME|#LGE|#MED|#SML|#INT}}

and have the template omit a row if one of the segments is empty



Work in progress outcome:

If a row is empty, do not display it

Large sockets displayed in the first row

Medium sockets displayed in the second row

Small sockets displayed in the third row

Internal sockets displayed in the fourth row

Maybe line them all up nicely in a grid structure

SAMPLE DATA

sockets = { { "medium1", "Medium" }, { "medium2", "Medium" }, { "medium3", "Medium" }, { "large1", "Large" }, { "", "Internal" }, { "", "Internal" }, { "", "Internal" }, { "", "Internal" }, },