mediawiki - How do I insert tables inside infoboxes on Wikia pages? -
mediawiki - How do I insert tables inside infoboxes on Wikia pages? -
i want insert tables in infoboxes. example, have proteinbox i've developed using infobox template (http://health-and-medicine.wikia.com/wiki/template:proteinbox), , fasta field big fit comfortably in proteinbox. hence collapsible table within box.
this tried:
{{infobox | row 1 = {| class = "mw-collapsible mw-collapsed wikitable" |- | <!-- table content --> |} }}
your problem is, putting nested table within template. pipe characters (|
) in table syntax collides pipe usage in templates.
the commonly used hack around create template called template:!
, containing pipe character, , utilize when need set tables, parser functions or other stuff using pipe characters, within templates. table (with every |
replaced {{!}}
):
{{{!}} {{!}}- {{!}} a1 {{!}} b1 {{!}}- {{!}} a2 {{!}} b2 {{!}}}
...the equivalent of
{| |- | a1 | b1 |- | a2 | b2 |}
furthermore, have assure table starts @ new line, blank lines stripped template parameters. easiest way add together empty <nowiki />
tag. code in question this:
{{infobox | row 1 = <nowiki /> {{{!}} class = "mw-collapsible mw-collapsed wikitable" {{!}}- {{!}} <!-- table content --> {{!}}} }}
in recent versions of mediawiki, {{!}}
syntax added software, on wikia, of 2014, needs added template.
mediawiki mediawiki-templates
Comments
Post a Comment