Template:Social media: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
Line 5: Line 5:
|subjects = List (,) of Page (mandatory=1)
|subjects = List (,) of Page (mandatory=1)
|type = List (,) of String (mandatory=1;allowed values=album,song,birthday,death,show)
|type = List (,) of String (mandatory=1;allowed values=album,song,birthday,death,show)
|needs_review = Boolean (mandatory=1)
}}
}}
</noinclude><includeonly>__NOINDEX__
</noinclude><includeonly>__NOINDEX__
Line 12: Line 13:
|subjects = {{{subjects}}}
|subjects = {{{subjects}}}
|type = {{{type}}}
|type = {{{type}}}
|needs_review = {{{needs_review|0}}}
}}
}}
[[Category:Social media posts]]
[[Category:Social media posts]]
Line 39: Line 41:
"description": "Comma-separated list of page titles of the subjects that this post is about it. It is usually only about one subject.",
"description": "Comma-separated list of page titles of the subjects that this post is about it. It is usually only about one subject.",
"type": "string",
"type": "string",
"required": true
},
"type": {
"label": "Type",
"description": "One of: album, song, birthday, death, show",
"type": "string",
"required": true
},
"needs_review": {
"label": "Needs review",
"description": "Indicates this post may need annual review due to some wording or updates that were expected to follow the previous year's post.",
"type": "boolean",
"required": true
"required": true
}
}

Revision as of 04:15, 5 April 2022

This template defines the table "social_media". View table. This page defines the social media posts for Untitled.

This post is scheduled to deliver on November 28 at 13:00 UTC.

NOTE: The structure must follow the guide at SPCodex:Social media exactly for the automated posts to work.


Stores metadata for social media posts, some of which (will) be automatically posted.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Original dateoriginal_date

Original date of the subject (release, show, etc.)

Daterequired
Hour of dayhour_of_day

The hour of the day at which the post should be sent out. This is in UTC time. Use values 0 (midnight) through 23.

Numberrequired
Subjectssubjects

Comma-separated list of page titles of the subjects that this post is about it. It is usually only about one subject.

Stringrequired
Typetype

One of: album, song, birthday, death, show

Stringrequired
Needs reviewneeds_review

Indicates this post may need annual review due to some wording or updates that were expected to follow the previous year's post.

Booleanrequired