<?xml version="1.0"?>
<rss version="2.0"><channel><title>Wiki: Wiki</title><link>https://www.getmangos.eu/wiki/referenceinfo/dbinfo/?d=4</link><description>Wiki: Wiki</description><language>en</language><item><title>The dbdocs system</title><link>https://www.getmangos.eu/wiki/referenceinfo/dbinfo/the-dbdocs-system-r20019/</link><description><![CDATA[<h2>
	The db docs system is made up of three core tables
</h2>

<ul><li>
		dbdocstable
	</li>
	<li>
		dbdocsfields
	</li>
	<li>
		dbdocssubtables
	</li>
</ul><p>
	The World database also has an additional table:-
</p>

<ul><li>
		dbdocsprogressquests
	</li>
</ul><p>
	I will attempt to explain how the dbdocs system links everything together below
</p>

<h3>
	 
</h3>

<h3>
	dbdocstable - DB Docs Table
</h3>

<hr><p>
	This table contains two fields:
</p>

<h4>
	Field 'tableName'
</h4>

<p>
	This field contains the table name to link the additional notes to.
</p>

<h4>
	Field 'tableNotes'
</h4>

<p>
	This field is the description of the table, since this is a text field the text can be quite lengthy if required and contain html.
</p>

<h3>
	 
</h3>

<h3>
	dbdocsfields - DB Docs Fields
</h3>

<hr><p>
	This table contains three fields:
</p>

<h4>
	Field 'tableName'
</h4>

<p>
	This field contains the table name to link the additional notes to.
</p>

<h4>
	Field 'fieldName'
</h4>

<p>
	This field contains the field name in the table to link the additional notes to.
</p>

<h4>
	Field 'fieldComment'
</h4>

<p>
	This field contains a short description of the field.
</p>

<h4>
	Field 'fieldNotes'
</h4>

<p>
	This field is the description of the field, since this is a text field the text can be quite lengthy if required and can contain html.
</p>

<p>
	You can also add subtable directives at any point through the text. The directive takes the format:
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted">
<span class="pln">¬subtable:x¬</span></pre>

<p>
	Where x is the subtable Id.
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted">
<span class="pln">What follows is a list of allowed races: 
¬subtable:1¬
* Remember that some races are not available on earlier expansions</span></pre>

<p>
	This literally means add subtable Id 1 into the text at this point
</p>

<p>
	 
</p>

<h3>
	dbdocssubtables - DB Docs SubTables
</h3>

<hr><p>
	This table contains two fields:
</p>

<h4>
	Field 'subtableId'
</h4>

<p>
	This field contains the table name to link the additional notes to.
</p>

<h4>
	Field 'subtablecontent'
</h4>

<p>
	This field contains the markup for the subtable, since this is a text field the text can be quite lengthy if required and contain html. This directly replaces the subtable directives used in field notes.
</p>

<h4>
	Field 'subtableNotes'
</h4>

<p>
	This field is the short description of the subtable is.
</p>

<p>
	 
</p>

<p>
	The last of the tables is:
</p>

<h3>
	dbdocsprogressquests - DB Docs ProgressQuests
</h3>

<hr><p>
	This table contains three fields:
</p>

<h4>
	Field 'QuestId'
</h4>

<p>
	This field contains the quest Id.
</p>

<h4>
	Field 'Progress'
</h4>

<p>
	This field contains the percentage complete this quest is. By default the dbdocs system assumes that this is 0% if unmatched.
</p>

<h4>
	Field 'QuestNotes'
</h4>

<p>
	This field is the a note regarding the state of the quest, since this is a text field the text can be quite lengthy if required and contain html.
</p>

<hr><p>
	All the current wiki Database and DBC reference information page are now built using the above system.<br>
	The system for documenting dbc files (dbcDocs) is a variant of this one and is described elsewhere.
</p>
]]></description><guid isPermaLink="false">20019</guid><pubDate>Mon, 01 Aug 2016 07:59:58 +0000</pubDate></item></channel></rss>
