Template:5euc: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
{{5e}} '''[[User Creation]]'''[[Category:User]][[Category:User Creation]] <span style="background:#fc3;">{{#if: {{{2|}}}|[[{{{2}}}]][[Category:{{{2}}}]]|[[CC-BY-SA]][[Category:CC-BY-SA]]|}}</span>
{{5e}} '''[[User Creation]]'''[[Category:User]][[Category:User Creation]] <span style="background:#fc3;">{{#if: {{{2|}}}|[[{{{2}}}]][[Category:{{{2}}}]]|[[CC-BY-SA]][[Category:CC-BY-SA]]|}}</span>
</div>[[Category:5e]]<!--
</div>[[Category:5e]]<!--
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#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}}
Line 11: Line 11:
}}|{{#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 24: Line 25:


===Add'l Parameters===
===Add'l Parameters===
|nopagedata= (blank, true if no data other than license should be stored to table Pages_Info)
<pre>
|licenseonly= <!--blank, true if only license should be stored to table Pages_Info-->
|license= <!--blank is CC-BY-SA, otherwise OGL, etc.-->
</pre>


produces:
produces:

Revision as of 09:50, 22 February 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|optLicense}}

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

produces:

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