Forms

City-States Geography History Setting Society Sorcerer-Kings Campaign Goals House Rules Wiki Updata Log
Forms and Boilerplate Code edit
This page includes boilerplate html code for copying and pasting into wiki pages to produce the look of my wiki
Page Table Code edit top
Notice all other code is embedded in a table cell. All my pages are huge nested tables, so that I could get the style inheritance since we are only allowed in line html styles. Since I’m no HTML guru, I use tables instead of fancy stuff like “div” tags and absolute formatting/spacing.
This version of the code creates the “in-character” page style with the papyrus text and background. Paste at the top of the page.
<p><a name="contents" /></p> <table style="font-family:papyrus;background-image:url('http://img18.imageshack.us/img18/2678/parchmnt.jpg');">
This version of the code creates the “out-of-character” page style with the serif text and white background. Paste at the top of the page.
<p><a name="contents" /></p> <table>
Header Code edit top
The code to produce the row of links at the top of each wiki page. Background agnostic.
<tr><td style="padding:0;"><table style="margin:0;"> <tr><td width="20px" style="font-family:papyrus;"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/city-states#contents" style="color:blue;">City-States</a></td> <td width="20px" style="font-family:papyrus;"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/geography#contents" style="color:blue;">Geography</a></td> <td width="20px" style="font-family:papyrus;"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/history#contents" style="color:blue;">History</a></td> <td width="20px" style="font-family:papyrus;"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/setting#contents" style="color:blue;">Setting</a></td> <td width="20px" style="font-family:papyrus;"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/society#contents" style="color:blue;">Society</a></td> <td width="20px" style="font-family:papyrus;"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/sorcerer-kings#contents" style="color:blue;">Sorcerer-Kings</a></td> <td> </td> <td style="font-family:serif;" width="20px"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/campaign-goals#contents" style="color:blue;">Campaign&nbsp;Goals</a></td> <td style="font-family:serif;" width="20px"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/house-rules#contents" style="color:blue;">House&nbsp;Rules</a></td> <td style="font-family:serif;" width="20px"><a href="http://www.obsidianportal.com/campaign/new-campaign/wikis/wiki-update-log#contents" style="color:blue;">Wiki&nbsp;Updata&nbsp;Log</a></td></tr></table></td></tr>
Page Name Code edit top
This is code to put the name at the top of each wiki page, above the table of contents. I only use it on “in-character” pages. Obsidian Portal already puts the name of the page at the top, but it is in serif. Inherits page table settings.
<tr><td style="padding:0;"><table style="margin:0;"><tr><td style="font-size:175%;">Forms and Boilerplate Code </td><td style="text-align:right;"><a href="/campaigns/new-campaign/wiki_pages/forms/edit">edit</a></td></tr></table></td></tr>
Contents Code edit top
Code to produce the table of contents at the top of each wiki page. Inherits page table settings. Usually requires adjustment, as in: how many columns do you want?
<tr><td> <table style="margin:0;"> <tr> <td style="vertical-align:top;"> <ul> <li><a href="#anchor">Heading</a></li> <li><a href="#anchor">Heading</a></li> </ul> </td> <td style="vertical-align:top;"> <ul> <li><a href="#anchor">Heading</a></li> <li><a href="#anchor">Heading</a></li> </ul> </td> <td style="vertical-align:top;"> <ul> <li><a href="#anchor">Heading</a></li> <li><a href="#anchor">Heading</a></li> </ul> </td> </tr> </table></td></tr>
Section Heading edit top
Code to produce the section headings with the “top” and “edit” links. This code inherits the background and font style of the page table. Includes anchor for heading name.
<tr><td> <table style="margin:0;"><tr><td style="padding:0;font-size:175%;vertical-align:top;"> Section Headings <a name="sectionheadings" /></td> <td style="padding:0;text-align:right;"> <a href="/campaigns/new-campaign/wiki_pages/geography/edit">edit</a> <a href="#contents">top</a></td></tr></table></td></tr>

Forms

To Kill a Dragon Gravedigga