Template:5euc: Difference between revisions

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


Line 22: Line 22:


==Syntax==
==Syntax==
<pre>{{5euc|optUserName|optLicense}}</pre>
<pre>{{5euc|optUserName}}</pre>


===Add'l Parameters===
===Add'l Parameters===

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