Template:Index: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Rexidos (talk | contribs)
m spacing
m Reverting "Usage" text
Line 14: Line 14:
<references />
<references />
'''Bibliography'''
'''Bibliography'''
{{index|title={{PAGENAME}}}}
{{index}}


[[Categories:INSERT CATEGORY NAME]]
[[Categories:INSERT CATEGORY NAME]]
Line 21: Line 21:
When included by itself, the template should typically be added as the ''last'' line under the <source enclose="none">'''Bibliography'''</source> heading'' near the ''end'' of a wiki page, just above categories.  
When included by itself, the template should typically be added as the ''last'' line under the <source enclose="none">'''Bibliography'''</source> heading'' near the ''end'' of a wiki page, just above categories.  
This usage is simply:  
This usage is simply:  
<pre><nowiki>{{index|title={{PAGENAME}}}}</nowiki></pre>
<pre><nowiki>{{index}}</nowiki></pre>


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.  <br />
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.  <br />

Revision as of 22:57, 26 February 2021

About this template

This template should be included at the bottom of all pages, in the "References" after the last line of the bibliography. 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 EGIndex database for the Topic, a blank table with no entries will be displayed, similar to that shown below at the end of this page.

If you find a page with a blank table with data missing in the table, information from officially published sources can be added to the EGI to 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 usually placed after all other References, so that it populates at the bottom of the page.
Other than when the Index entry needs special function to include or exclude other words in its database search, it usually looks like this:

==References==
'''Citations'''
<references />
'''Bibliography'''
{{index}}

[[Categories:INSERT CATEGORY NAME]]

When included by itself, the template should typically be added as the last line under the '''Bibliography''' heading near the end of a wiki page, just above categories. 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 and 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=Description=Description,Product=Product,PageCardImage=PageCardImage, Topic=Topic, Type=Type
}}
{| class="wikitable sortable" style="width: 90%;"
! style="width: 30%"| Topic 
! style="width: 10%"| Type
! style="width: 15%"| Description
! style="width: 25%"| Product 
! style="width: 15%"| Page/Card/Image 
{{#for_external_table:<nowiki/>
{{!}}-
{{!}} {{{Topic}}} 
{{!}} {{{Type}}}
{{!}} {{{Description}}}
{{!}} {{{Product}}}
{{!}} {{{PageCardImage}}}
}}
|}

Encyclopedia Greyhawkania Index
The Index is based on previous work of Jason Zavoda (also known as the Zavoda Index) through '08, and his work as continued and updated by Eric Johnson, Richard DiIola, and numerous other fans over the years.
The wiki page for the EGI 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 Description Product Page/Card/Image