Template:Startflatlist: Difference between revisions
meta>Sardanaphalus Converted to calling flatlist with parameters rather than just redirect |
meta>Sardanaphalus m minor formatting |
||
Line 1: | Line 1: | ||
{{flatlist |class={{{class|}}} |style={{{style|{{{1|}}}}}} |indent={{{indent|0}}} }}<!-- | {{flatlist |class={{{class|}}} |style={{{style|{{{1|}}}}}} |indent={{{indent|0}}} }}<noinclude><!-- | ||
--> | -->{{Documentation | ||
{{ | | content = | ||
A frontend for {{tl|flatlist}} when it is used to mark the start of a [[Template:Flatlist|flatlist]] (a horizontal list whose items are separated by dots). If {{tlf|startflatlist}} is used, any CSS styling for the list may be carried by the first unnamed parameter accompanying it (even if that first unnamed parameter isn't the first parameter). In other words, for example, | A frontend for {{tl|flatlist}} when it is used to mark the start of a [[Template:Flatlist|flatlist]] (a horizontal list whose items are separated by dots). If {{tlf|startflatlist}} is used, any CSS styling for the list may be carried by the first unnamed parameter accompanying it (even if that first unnamed parameter isn't the first parameter). In other words, for example, | ||
: {{95%|<code><nowiki>{{startflatlist|padding-bottom:1.0em;font-style:italic}} = {{flatlist|style=padding-bottom:1.0em;font-style:italic}}</nowiki></code>}} | : {{95%|<code><nowiki>{{startflatlist|padding-bottom:1.0em;font-style:italic}} = {{flatlist|style=padding-bottom:1.0em;font-style:italic}}</nowiki></code>}} | ||
Line 16: | Line 15: | ||
<includeonly> | <includeonly> | ||
{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Typing-aid templates|Flatlist]][[Category:Wikipedia list formatting templates|Flatlist]]}} | {{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
</includeonly> | [[Category:Typing-aid templates|Flatlist<!--(so that this template appears beside Flatlist)-->]] | ||
[[Category:Wikipedia list formatting templates|Flatlist<!--as above-->]] | |||
--></noinclude> | }} | ||
</includeonly><!-- | |||
-->}}</noinclude> |
Revision as of 20:20, 23 May 2014
A frontend for {{flatlist}} when it is used to mark the start of a flatlist (a horizontal list whose items are separated by dots). If {{startflatlist}} is used, any CSS styling for the list may be carried by the first unnamed parameter accompanying it (even if that first unnamed parameter isn't the first parameter). In other words, for example,
Meanwhile, Template:95%. {{Flatlist}}'s other parameters may be included so long as they are named (|class=
, |indent=
).
Note that:
In other words, so long as the styling is the first unnamed parameter (but not necessarily the first parameter overall) and none of any other parameters are named "style", the styling should be passed onto {{flatlist}} correctly. For example:
If more than one unnamed parameter accompanies {{startflatlist}}, only the first will be taken to be the styling (again, so long as there isn't also a |style=
parameter).