Kentsmith9 (talk | contribs) (Created initial doc) |
Kentsmith9 (talk | contribs) m (updated category) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
-->{{Documentation | -->{{Documentation | ||
| content = | | content = | ||
A frontend for {{tl|flatlist}} when it is used to mark the start of a [[Template:Flatlist|flatlist]] (a horizontal list ("hlist") whose items are separated by dots). If {{ | A frontend for {{tl|flatlist}} when it is used to mark the start of a [[Template:Flatlist|flatlist]] (a horizontal list ("hlist") whose items are separated by dots). If {{tl|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>}} | ||
Meanwhile, {{95%|<code><nowiki>{{startflatlist}} = {{flatlist}}</nowiki></code>}}. {{ | Meanwhile, {{95%|<code><nowiki>{{startflatlist}} = {{flatlist}}</nowiki></code>}}. {{tl|Flatlist}}'s other parameters may be included so long as they are named ({{para|class}}, {{para|indent}}). | ||
If {{ | If {{tl|startflatlist}} is used to mark the start of a flatlist, use {{tl|endflatlist}} to mark its end. | ||
<br/><hr/> | <br/><hr/> | ||
Note that: | Note that: | ||
: {{95%|<code><nowiki>{{startflatlist|padding-bottom:1.0em|style=font-style:italic}} = {{flatlist|style=font-style:italic}}</nowiki></code>}} | : {{95%|<code><nowiki>{{startflatlist|padding-bottom:1.0em|style=font-style:italic}} = {{flatlist|style=font-style:italic}}</nowiki></code>}} | ||
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 {{ | 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 {{tl|flatlist}} correctly. For example: | ||
: {{95%|<code><nowiki>{{startflatlist |indent=2 |class=nowrap |padding-bottom:1.0em;font-style:italic}} = {{flatlist |class=nowrap |style=padding-bottom:1.0em;font-style:italic; |indent=2}}</nowiki></code>}} | : {{95%|<code><nowiki>{{startflatlist |indent=2 |class=nowrap |padding-bottom:1.0em;font-style:italic}} = {{flatlist |class=nowrap |style=padding-bottom:1.0em;font-style:italic; |indent=2}}</nowiki></code>}} | ||
If more than one unnamed parameter accompanies {{ | If more than one unnamed parameter accompanies {{tl|startflatlist}}, only the first will be taken to be the styling (again, so long as there isn't also a {{para|style}} parameter). | ||
{{#ifeq:{{SUBPAGENAME}}|sandbox | | | {{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
[[Category:Typing-aid templates|Flatlist<!--(so that this template categorized beside Template:Flatlist)-->]] | [[Category:Typing-aid templates|Flatlist<!--(so that this template categorized beside Template:Flatlist)-->]] | ||
}} }}<!--(end #ifeq and Documentation)--> | }} }}<!--(end #ifeq and Documentation)--> | ||
</noinclude> | </noinclude> |
Latest revision as of 03:07, 7 May 2017
A frontend for {{flatlist}} when it is used to mark the start of a flatlist (a horizontal list ("hlist") 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,
{{startflatlist|padding-bottom:1.0em;font-style:italic}} = {{flatlist|style=padding-bottom:1.0em;font-style:italic}}
Meanwhile, {{startflatlist}} = {{flatlist}}
. {{Flatlist}}'s other parameters may be included so long as they are named (|class=
, |indent=
).
If {{startflatlist}} is used to mark the start of a flatlist, use {{endflatlist}} to mark its end.
Note that:
{{startflatlist|padding-bottom:1.0em|style=font-style:italic}} = {{flatlist|style=font-style:italic}}
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:
{{startflatlist |indent=2 |class=nowrap |padding-bottom:1.0em;font-style:italic}} = {{flatlist |class=nowrap |style=padding-bottom:1.0em;font-style:italic; |indent=2}}
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).
Subpages of this template. |