Template:5euc: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
(systemtag - nopagedata call)
Line 1: Line 1:
<includeonly>{{pagetitle}}<div style="width:100%; border: collapse; text-align:right;">
<noinclude>
{{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>
{{#cargo_attach:
</div>[[Category:5e]]</includeonly><noinclude>
_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>
</div>[[Category:5e]]<!--
-->{{#if: {{{nopagedata|}}}|{{#cargo_store:
_table = Pages_Info
|where Page_Name={{FULLPAGENAME}}
|Licenses = {{#if: {{{2|}}}|[[{{{2}}}]]|[[CC-BY-SA]]}}
}}|{{#cargo_store:
_table = Pages_Info
|Page_Name = {{FULLPAGENAME}}
|Page_Title = {{PAGENAME}}
|Sources = {{#if: {{{userName|}}}|[[User: {{{userName|}}}]]|Anonymous|}}
|Licenses = {{#if: {{{2|}}}|[[{{{2}}}]]|[[CC-BY-SA]]}}
}} }}</includeonly><noinclude>


==Usage==
==Usage==
Line 7: Line 21:


==Syntax==
==Syntax==
<pre>{{5euc|userName}}</pre>
<pre>{{5euc|optUserName|optLicense}}</pre>
 
===Add'l Parameters===
|nopagedata= (blank, true if no data other than license should be stored to table Pages_Info)


produces:
produces:

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

|nopagedata= (blank, true if no data other than license should be stored to table Pages_Info)

produces:

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