Template:5euc: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
No edit summary
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}}
|where=Page_Name={{FULLPAGENAME}}
|Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}}
|Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}}
}}|{{#cargo_store:  
}}|{{#cargo_store:  
_table = Pages_Info
_table = Pages_Info
|where= Page_Name = {{FULLPAGENAME}}
|where=Page_Name = {{FULLPAGENAME}}
|Page_Name = {{FULLPAGENAME}}
|Page_Name = {{FULLPAGENAME}}
|Page_Title = {{PAGENAME}}
|Page_Title = {{PAGENAME}}
|Sources = {{#if: {{{1|}}}|[[User: {{{1|}}}]]|Anonymous|}}
|Sources = {{#if: {{{1|}}}|[[User: {{{1}}}]]|Anonymous|}}
|Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}}
|Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}}
}} }} }}</includeonly><noinclude>
}} }} }}</includeonly><noinclude>

Revision as of 20:57, 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}}

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