Template:Social media: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
|hour_of_day = Integer (mandatory=1;allowed values=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)
|hour_of_day = Integer (mandatory=1;allowed values=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)
|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)
|needs_review = Boolean (mandatory=1)
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>__NOINDEX__
{{#cargo_store:_table=social_media
{{#cargo_store:_table=social_media
|original_date = {{{original_date}}}
|original_date = {{{original_date}}}
|hour_of_day = {{{hour_of_day}}}
|hour_of_day = {{{hour_of_day}}}
|subjects = {{{subjects}}}
|subjects = {{{subjects}}}
|type = {{{type}}}
|needs_review = {{{needs_review|0}}}
}}
}}
[[Category:Social media posts]]
[[Category:Social media posts]]
</includeonly>This page defines the social media posts for the release of {{#arraymap:{{{subjects|Untitled}}}|,|x|{{format release|x|bold}}|, | and }}.
</includeonly>{{#if:{{yesno|{{{needs_review|}}}}}|[[Category:Social media posts needing annual review]]{{ombox|type=content|text=This social media entry has been flagged as needing annual review. Please review the texts for any missing or outdated information.}}}}This page defines the social media posts for {{#arraymap:{{{subjects|Untitled}}}|,|x|'''[[x]]'''|, | and }}.


This post is scheduled to deliver on '''{{#time:F j|{{{original_date|November 28, 2000}}}}} at {{{hour_of_day|13}}}:00 UTC'''.
This post is scheduled to deliver on '''{{#time:F j|{{{original_date|November 28, 2000}}}}} at {{{hour_of_day|13}}}:00 UTC'''.
Line 37: 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
}
}

Latest revision as of 04:59, 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