Template: Post

m (Sam moved page Template:Post to Template:Post: better term)
 
Line 1: Line 1:
<span style="display:none">{{#default_form:blog_post}}</span><!--
+
<span style="display:none">{{#default_form:post}}</span><!--
 
--><noinclude>
 
--><noinclude>
{{#cargo_declare: _table = blog_posts
+
{{#cargo_declare: _table = posts
 
  | date    = Datetime
 
  | date    = Datetime
 
  | location = String
 
  | location = String
Line 10: Line 10:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{{#ifeq: {{PAGENAME}} | Welcome ||
 
{{#ifeq: {{PAGENAME}} | Welcome ||
{{#cargo_store: _table = blog_posts
+
{{#cargo_store: _table = posts
 
  | date    = {{{date|}}}
 
  | date    = {{{date|}}}
 
  | location = {{{location|}}}
 
  | location = {{{location|}}}
Line 16: Line 16:
 
  | categories = {{{categories|}}}
 
  | categories = {{{categories|}}}
 
  | description = {{{description|}}}
 
  | description = {{{description|}}}
}}
 
{{#cargo_store: _table = status_updates
 
| text    = ''A blog post was written:'' [[{{FULLPAGENAME}}]]
 
| date    = {{{date|}}}
 
| timezone = {{{timezone|}}}
 
 
}}
 
}}
 
}}<!--
 
}}<!--

Latest revision as of 01:16, 10 January 2020

This template defines the table "posts". View table.

Documentation

No description.

Template parameters

ParameterDescriptionTypeStatus
Date and timedate

no description

Stringrequired
Timezonetimezone

Offset in hours from UTC.

Numberrequired
Locationlocation

Name of the location in which this post was written.

Pagesuggested
Categoriescategories

Semi-colon-separated list of categories.

Stringsuggested
Draft?draft

no description

Booleansuggested

See also

Retrieved from ‘https://samwilson.id.au/index.php?title=Template:Post&oldid=3004