Template:5eogl: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
(moved db store to Template:StorePageData)
Line 9: Line 9:
|where Page_Name = {{FULLPAGENAME}}
|where Page_Name = {{FULLPAGENAME}}
|Licenses = [[OGL]]
|Licenses = [[OGL]]
}}|{{#cargo_store:
}}|{{StorePageData
_table = Pages_Info
|pagetitle={{PAGENAME}}
|where=Page_Name = {{FULLPAGENAME}}
|pageid=
|Page_Name = {{FULLPAGENAME}}
|sources={{#if: {{{publisher|}}}|{{{publisher}}}, {{{publication|}}}|{{{publication|}}}|}}
|Page_Title = {{PAGENAME}}
|licenses=[[OGL]]
|Page_Identifier =  
|canon={{#if: {{{canon|}}}|1}}<!--blank, true if canon-->
|Canon = {{#if: {{{canon|}}}|1}}
|creationdate=
|Setting =
|setting=
|Sources = {{#if: {{{publisher|}}}|{{{publisher}}}, {{{publication|}}}|{{{publication|}}}|}}
|pointer=<!--blank, true if pointer-->
|Licenses = [[OGL]]
|published=<!--blank, true if published-->
|Categories = _categories
|hidden=<!--blank, true if hidden-->
|ua=<!--blank, true if hidden-->
|user=<!--blank, true if user creation-->
|categories=<!-- NOT CURRENTLY USED list of categories-->
}} }} }}</includeonly><noinclude>
}} }} }}</includeonly><noinclude>



Revision as of 17:52, 14 March 2020

This template adds rows to the table "Pages_Info", which is declared by the template Pagestart. View table.

Usage

This should be placed at the top of all pages from the SRD5.

Syntax

{{5eogl|optPublication}}

Add'l Parameters

|canon= (blank, true if canon) |publisher=
|nopagedata= (blank, true is only license, publication, and publisher should be stored)

Example

D&D 5e OGL

D&D 5eTome of Beasts OGL
Kobold Press