User:Sardanaphalus/Template:Startflatlist
An alternative to {{flatlist}} as a tag with which to mark the start of a flatlist. It is almost no more than a redirect to {{flatlist}}, except that the first unnamed parameter included with it will be passed to {{flatlist}} as if it were identified as the parameter style. In other words, for example,
{{startflatlist|padding-bottom:1.0em;font-style:italic}} = {{flatlist|style=padding-bottom:1.0em;font-style:italic}}
The exception is when another parameter is included that is identified explicitly as the style parameter. In this case, the named style parameter will take precedence:
{{startflatlist|padding-bottom:1.0em|style=font-style:italic}} = {{flatlist|style=font-style:italic}}
... i.e. the "padding-bottom:1.0em" styling in the above would be lost.
The other parameters handled by {{flatlist}} (currently class and ident) should be passed on successfully so long as they are identified explicitly. This means that the unidentified style parameter doesn't need to be the first parameter accompanying {{startflatlist}}, just the first unnamed parameter:
{{startflatlist |class=nowrap |padding-bottom:1.0em;font-style:italic |ident=2}}
Should more than one unnamed parameter accompany {{startflatlist}}, only the first will be taken to be the style parameter – so long as there isn't also an explicit |style=
parameter.