Template:5euc: Difference between revisions

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


Line 29: Line 34:
|licenseonly= <!--blank, true if only license should be stored to table Pages_Info-->
|licenseonly= <!--blank, true if only license should be stored to table Pages_Info-->
|license= <!--blank is CC-BY-SA, otherwise OGL, etc.-->
|license= <!--blank is CC-BY-SA, otherwise OGL, etc.-->
|nodb= <!--blank, if true skip db store-->
</pre>
</pre>



Revision as of 16:45, 14 March 2020

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

Usage

Called from Template:Author. This should be placed at the top of all user creation pages.

Syntax

{{5euc|optUserName}}

Add'l Parameters

|licenseonly= <!--blank, true if only license should be stored to table Pages_Info-->
|license= <!--blank is CC-BY-SA, otherwise OGL, etc.-->
|nodb= <!--blank, if true skip db store-->

produces:

D&D 5e (2014) User Creation CC-BY-SA