Template:Startflatlist: Difference between revisions

Jump to navigation Jump to search
m
Protected Template:Startflatlist: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
m (1 revision: What an ugly messy way to do this!)
m (Protected Template:Startflatlist: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
Line 1:
#REDIRECT [[Template:Flatlist]]
{{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&nbsp;– "hlist"&nbsp;– 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>}}
Meanwhile, {{95%|<code><nowiki>{{startflatlist}} = {{flatlist}}</nowiki></code>}}. {{tlf|Flatlist}}'s other parameters may be included so long as they are named ({{para|class}}, {{para|indent}}).
 
If {{tlf|startflatlist}} is used to mark the start of a flatlist, use {{tl|endflatlist}} to mark its end.
<br/><hr/>
Note that:
: {{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 {{tlf|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>}}
 
If more than one unnamed parameter accompanies {{tlf|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 | |
[[Category:Typing-aid templates|Flatlist<!--(so that this template categorized beside Template:Flatlist)-->]]
[[Category:Wikipedia list formatting templates|Flatlist<!--as above-->]]
 
}} }}<!--(end #ifeq and Documentation)-->
</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu