Template:StorePageData: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 16: | Line 16: | ||
|User = Boolean | |User = Boolean | ||
|Categories = List (, ) of Wikitext string | |Categories = List (, ) of Wikitext string | ||
--></noinclude><includeonly>{{#cargo_store: | --></noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: | ||
_table = Pages_Info | _table = Pages_Info | ||
|Page_Title = {{#if: {{{pagetitle|}}}|{{{pagetitle}}}|{{PAGENAME}}}} | |Page_Title = {{#if: {{{pagetitle|}}}|{{{pagetitle}}}|{{PAGENAME}}}} | ||
| Line 30: | Line 30: | ||
|User = {{#if: {{{user|}}}|1|0}} | |User = {{#if: {{{user|}}}|1|0}} | ||
|Categories = {{{categories|}}} | |Categories = {{{categories|}}} | ||
}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
==Use== | ==Use== | ||
Stores data into Cargo table 'Page_Info'. | Stores data into Cargo table 'Page_Info'. | ||
| Line 39: | Line 39: | ||
|sources= | |sources= | ||
|licenses= | |licenses= | ||
|creationdate= | |||
|setting= | |||
|canon=<!--blank, true if canon--> | |canon=<!--blank, true if canon--> | ||
|pointer=<!--blank, true if pointer--> | |||
|published=<!--blank, true if published--> | |||
|hidden=<!--blank, true if hidden--> | |||
|ua=<!--blank, true if hidden--> | |||
|user=<!--blank, true if user creation--> | |||
|categories=<!-- NOT CURRENTLY USED list of categories--> | |||
}}</pre> | |||
==Example== | |||
<pre> | |||
{{StorePageData | |||
|pagetitle=Foo | |||
|sources=Foo's Guide to Barbarism | |||
|licenses=Bar | |||
|creationdate= | |||
|setting= | |||
|canon=true<!--blank, true if canon--> | |||
|pointer=<!--blank, true if pointer--> | |||
|published=<!--blank, true if published--> | |||
|hidden=<!--blank, true if hidden--> | |||
|ua=<!--blank, true if hidden--> | |||
|user=<!--blank, true if user creation--> | |||
|categories=<!-- NOT CURRENTLY USED list of categories--> | |||
}}</pre> | |||
{{StorePageData | |||
|pagetitle=Foo | |||
|sources=Foo's Guide to Barbarism | |||
|licenses=Bar | |||
|creationdate= | |creationdate= | ||
|setting= | |setting= | ||
|canon=<!--blank, true if canon--> | |||
|pointer=<!--blank, true if pointer--> | |pointer=<!--blank, true if pointer--> | ||
|published=<!--blank, true if published--> | |published=<!--blank, true if published--> | ||
| Line 48: | Line 80: | ||
|user=<!--blank, true if user creation--> | |user=<!--blank, true if user creation--> | ||
|categories=<!-- NOT CURRENTLY USED list of categories--> | |categories=<!-- NOT CURRENTLY USED list of categories--> | ||
|nodb=true | |||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 05:40, 6 May 2020
This template adds rows to the table "Pages_Info", which is declared by the template Pagestart. View table.
Use
Stores data into Cargo table 'Page_Info'.
Syntax
{{StorePageData
|pagetitle=
|sources=
|licenses=
|creationdate=
|setting=
|canon=<!--blank, true if canon-->
|pointer=<!--blank, true if pointer-->
|published=<!--blank, true if published-->
|hidden=<!--blank, true if hidden-->
|ua=<!--blank, true if hidden-->
|user=<!--blank, true if user creation-->
|categories=<!-- NOT CURRENTLY USED list of categories-->
}}
Example
{{StorePageData
|pagetitle=Foo
|sources=Foo's Guide to Barbarism
|licenses=Bar
|creationdate=
|setting=
|canon=true<!--blank, true if canon-->
|pointer=<!--blank, true if pointer-->
|published=<!--blank, true if published-->
|hidden=<!--blank, true if hidden-->
|ua=<!--blank, true if hidden-->
|user=<!--blank, true if user creation-->
|categories=<!-- NOT CURRENTLY USED list of categories-->
}}