Template:5euc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(moved db store to Template:StorePageData) |
||
Line 7: | Line 7: | ||
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#if: {{{licenseonly|}}}|{{#cargo_store: | -->{{#if: {{{nodb|}}}|<!--skip-->|{{#if: {{{licenseonly|}}}|{{#cargo_store: | ||
_table = Pages_Info | _table = Pages_Info | ||
|Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}} | |Licenses = {{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}} | ||
}}|{{ | }}|{{StorePageData | ||
|pagetitle={{PAGENAME}} | |||
| | |pageid= | ||
| | |sources={{{1|}}} | ||
| | |licenses={{#if: {{{license|}}}|[[{{{license}}}]]|[[CC-BY-SA]]}} | ||
| | |canon=<!--blank, true if canon--> | ||
| | |creationdate={{{creationdate|}}} | ||
| | |setting={{{setting|}}} | ||
|pointer=<!--blank, true if pointer--> | |||
|published=<!--blank, true if published--> | |||
|hidden=<!--blank, true if hidden--> | |||
|ua=<!--blank, true if hidden--> | |||
|user=1<!--blank, true if user creation--> | |||
|categories=<!-- NOT CURRENTLY USED list of categories--> | |||
}} }} }}</includeonly><noinclude> | }} }} }}</includeonly><noinclude> | ||
Line 29: | Line 34: | ||
|licenseonly= <!--blank, true if only license should be stored to table Pages_Info--> | |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--> | |||
</pre> | </pre> | ||
Revision as of 16:45, 14 March 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.--> |nodb= <!--blank, if true skip db store-->
produces: