Template:Cell/doc

From Yugipedia
Jump to: navigation, search

{{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 or dl tags are placed properly inside the table cell or div 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>