How to insert tables inside the info box on Wikia pages?

I want to insert tables in the info box. For example, I have a protein box that I developed using the infobox template ( http://health-and-medicine.wikia.com/wiki/Template:Proteinbox ), and the FASTA field is too large to fit in the protein field. Therefore, I would like it to be a folding table inside the box.

This is what I tried:

{{infobox
 | Row 1 = 
  {| class = "mw-collapsible mw-collapsed wikitable"
  |-
  | <!-- Some table content -->
  |}
}}
+4
source share
2 answers

The problem is that you put the nested table inside the template. The pipe characters ( |) in the table syntax then collide with the use of pipes in the templates.

, , - Template:!, , , , , , . ( | {{!}}):

{{{!}}
{{!}}-
{{!}} A1
{{!}} B1
{{!}}-
{{!}} A2
{{!}} B2
{{!}}}

...

{|
|-
| A1
| B1
|-
| A2
| B2
|}

, , , . - <nowiki />. :

{{infobox
 | Row 1 = <nowiki />
  {{{!}} class = "mw-collapsible mw-collapsed wikitable"
  {{!}}-
  {{!}} <!-- Some table content -->
  {{!}}}
}}

MediaWiki {{!}} , Wikia, 2017 , .

+3

All Articles