Template:Index
About this template
This template should be included at the bottom of all pages, after the categories. It will automatically generate a table including data from the Encyclopedia Grehawkania Index based upon the title (Topic) of the page on which it is included.
If there are no entries currently in the EG Index database for the Topic, a blank table with no entries listed will be displayed, similar to that shown below at the end of this page.
If you find a page with a blank table which is missing data in the table, information from officially published sources can be added to the EGI produce new lines on the table. Preview the Types and full Product names in the Encyclopedia Greyhawkania Index in order to keep entries uniform.
Please visit the Edit Encyclopedia Index page to contribute to the wiki database.
Usage
This template is typically included in the "References" section of most pages. It is generally placed after all other References, so that it populates at the bottom of the page.
Other than when the Index entry needs special fucntion to include or exclude other words in it's database search, It usually looks like this:
==References==
=====Citations=====
<references />
=====Bibliography=====
[[Categories:INSERT CATEGORY NAME]]
{{index}}
When included by itself, the template should typically be added as the last line of code at the end of a wiki page. This usage is simply:
{{index}}
If there are syntax errors due to unusual characters in the title, or the Encyclopedia Greyhawkania Index lists the Topic in an unusual way (e.g. ""Magical Arts, University of" or "Kuroth's Quill"), the actual code for the database search and table should be inserted.
Change the "TOPIC WORD HERE" and "OTHER TOPIC WORD" in the code below, ensuring the "%" symbols are kept.
DO NOT use this code if the Topic is a single word, or if the table produces normal results by using {{index}} instead.
The code is as follows:
{{#get_db_data:
db=index-db
|from=index_data
|where=Topic LIKE '%TOPIC WORD HERE%' AND Topic LIKE '%OTHER TOPIC WORD%'
|order by=Topic
|limit=500
|data=Product=Product,PageCardImage=PageCardImage, Topic=Topic, Type=Type
}}
{| class="wikitable sortable" style="width: 70%;"
! style="width: 30%"| Topic
! style="width: 15%"| Type
! style="width: 30%"| Product
! style="width: 25%"| Page/Card/Image
{{#for_external_table:<nowiki/>
{{!}}-
{{!}} {{{Topic}}}
{{!}} {{{Type}}}
{{!}} {{{Product}}}
{{!}} {{{PageCardImage}}}
}}
|}
Encyclopedia Greyhawkania Index
The page for the Encyclopedia Greyhawkania Index (also known as the Zavoda Index) has a list of sources, full product names, abbreviations, and a link to the full, downloadable index.
Please visit the Edit Encyclopedia Index page to contribute to the wiki database.
| Topic | Type | Product | Page/Card/Image |
|---|