Jump to content

Quick Wiki Editing Tip - Headers in Tables


BlackSpectre

Recommended Posts

I don't know why this information isn't everywhere, especially in the pages about wiki tables, but I finally found the answer. Here's the problem...

 

When you add a page header (== Header ==) inside a table, the wiki no longer recognizes it as a page header, it will not do any wiki formatting to the header text, and will not add it to the table of contents (TOC) for that page.  But there's a solution...

 

The wiki recognizes many HTML and CSS tags/code, but no where near all. Luckily, the wiki recognizes the HTML tag for a header <H2>Header</H2>. The equivalent wiki headers and HTML headers are as follows:

 

= Page Title =                    <H1>  (this should not be used for anything other than the title of the page, so for the most part we don't need to use it)

== Header Lvl 2 ==          <H2>  (this is the first category on the table of contents.)

=== Header Lvl 3 ===      <H3>  (this is the first sub-category on the table of contents)

==== Header Lvl 4 ====  <H4>   (this is the second sub-category on the table of contents)

 

So a simple table with a page header (that is a different thing than a "table header") would look like this:

 

{| class="wikitable"

|-

| <H2>Page Header</H2>

|} 

 

And that's it. A simple answer that was really hard to find!

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...