Template:Index: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Rexidos (talk | contribs)
m Change to second-level heading for consistency
Rexidos (talk | contribs)
Change to second-level heading for consistency
Line 28: Line 28:
}}
}}


{| class="wikitable sortable" style="width: 70%;"
{| class="wikitable sortable" style="width: 100%;"
! style="width: 30%"| Topic  
! style="width: 30%"| Topic  
! style="width: 15%"| Type
! style="width: 15%"| Type
Line 43: Line 43:
</pre>
</pre>
</noinclude>
</noinclude>
==Encyclopedia Greyhawkania Index==
===Encyclopedia Greyhawkania Index===
The page for the [[Encyclopedia Greyhawkania Index]] (also known as the [[Encyclopedia Greyhawkania Index|Zavoda Index]]) has a list of sources, full product names,  abbreviations, and a link to the full, downloadable index. <br />
The page for the [[Encyclopedia Greyhawkania Index]] (also known as the [[Encyclopedia Greyhawkania Index|Zavoda Index]]) has a list of sources, full product names,  abbreviations, and a link to the full, downloadable index. <br />
Please visit the [https://greyhawkonline.com/encyclopediagreyhawkania/database/ Edit Encyclopedia Index] page to contribute to the wiki database.
Please visit the [https://greyhawkonline.com/encyclopediagreyhawkania/database/ Edit Encyclopedia Index] page to contribute to the wiki database.

Revision as of 16:40, 23 May 2020

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 should typically be added as the last line of code at the end of a wiki page.
The normal 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: 100%;"
! 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