Template:Cell
{{{1}}}
{{cell}} is used around template parameters, placed directly inside table cells or div
tags, where the input may contain a list or plain text.
- If the input contains a list, an extra line break is added to ensure the
ul
,ol
ordl
tags are placed properly inside the table cell ordiv
tags. - If the input is plain text, the extra line break is not added, ensuring the text is not placed inside unwanted
p
tags.
Example[edit]
<div>{{cell|{{{parameter}}}}}</div>
Input | Resultant HTML |
---|---|
|parameter = ABC |
<div>ABC</div> |
|parameter = * A * B * C |
<div> <ul> <li>A</li> <li>B</li> <li>C</li> </ul> </div> |