Template:5eogl: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
{{5e}}{{#if: {{{1|}}}|&ensp;'''{{{1}}}'''|}} <span style="background:#fc3;">[[OGL]]</span>{{#if: {{{publisher|}}}|<br />[[{{{publisher}}}]]|}}
{{5e}}{{#if: {{{1|}}}|&ensp;'''{{{1}}}'''|}} <span style="background:#fc3;">[[OGL]]</span>{{#if: {{{publisher|}}}|<br />[[{{{publisher}}}]]|}}
</div>[[Category:OGL]][[Category:5e]]<!--
</div>[[Category:OGL]][[Category:5e]]<!--
-->{{#if: {{{nopagedata|}}}|{{#cargo_store:  
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#if: {{{licenseonly|}}}|{{#cargo_store:  
_table = Pages_Info
_table = Pages_Info
|where Page_Name = {{FULLPAGENAME}}
|where Page_Name = {{FULLPAGENAME}}
|Sources = {{#if: {{{publisher|}}}|[[{{{publisher}}}]], {{{publication|}}}|{{{publication|}}}|}}
|Licenses = [[OGL]]
|Licenses = [[OGL]]
}}|{{#cargo_store:  
}}|{{#cargo_store:  
_table = Pages_Info
_table = Pages_Info
|where=Page_Name = {{FULLPAGENAME}}
|Page_Name = {{FULLPAGENAME}}
|Page_Name = {{FULLPAGENAME}}
|Page_Title = {{PAGENAME}}
|Page_Title = {{PAGENAME}}
Line 19: Line 19:
|Sources = {{#if: {{{publisher|}}}|{{{publisher}}}, {{{publication|}}}|{{{publication|}}}|}}
|Sources = {{#if: {{{publisher|}}}|{{{publisher}}}, {{{publication|}}}|{{{publication|}}}|}}
|Licenses = [[OGL]]
|Licenses = [[OGL]]
}} }}</includeonly><noinclude>
}} }} }}</includeonly><noinclude>


==Usage==
==Usage==
Line 35: Line 35:
{{5eogl}}
{{5eogl}}


{{5eogl|{{pub|Tome of Beasts}}|publisher=Kobold Press}}
{{5eogl|{{pub|Tome of Beasts}}|publisher=Kobold Press|nodb=true}}


[[Category:5e Templates]]
[[Category:5e Templates]]
[[Category:5e License Templates]]
[[Category:5e License Templates]]
</noinclude>
</noinclude>

Revision as of 13:30, 22 February 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 (2014) OGL

D&D 5e (2014)Tome of Beasts OGL
Kobold Press