Template:5euc: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(moved db store to Template:StorePageData)
No edit summary
Line 1: Line 1:
<noinclude>
<includeonly><div style="width:100%; border: collapse; text-align:right;">
{{#cargo_attach:
_table = Pages_Info
}}</noinclude><includeonly><div style="width:100%; border: collapse; text-align:right;">
{{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: {{{licenseonly|}}}|{{#cargo_store:
-->{{#if: {{{nodb|}}}|<!--skip-->|{{StorePageData
_table = Pages_Info
|Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}}
}}|{{StorePageData
|pagetitle={{PAGENAME}}
|pagetitle={{PAGENAME}}
|pageid=
|pageid=
Line 22: Line 16:
|user=1<!--blank, true if user creation-->
|user=1<!--blank, true if user creation-->
|categories=<!-- NOT CURRENTLY USED list of categories-->
|categories=<!-- NOT CURRENTLY USED list of categories-->
}} }} }}</includeonly><noinclude>
}} }}</includeonly><noinclude>


==Usage==
==Usage==
Line 32: Line 26:
===Add'l Parameters===
===Add'l Parameters===
<pre>
<pre>
|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-->
|nodb= <!--blank, if true skip db store-->
</pre>
</pre>
===Deprecated===
<pre>licenseonly= replaced by nodb</pre>


produces:
produces:

Revision as of 17:24, 14 March 2020


Usage

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

Syntax

{{5euc|optUserName}}

Add'l Parameters

|license= <!--blank is CC-BY-SA, otherwise OGL, etc.-->
|nodb= <!--blank, if true skip db store-->

Deprecated

licenseonly= replaced by nodb


produces:

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