Template:Tgchannel: Difference between revisions

From <3 wiki
update template to v2 version using metatemplate
Tag: 2017 source edit
move flags to the bottom and add note about not touching them.
Tag: 2017 source edit
Line 37: Line 37:
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
},
"add_preview": {
"description": "Whether to set infobox image as OpenGraph preview",
"type": "boolean",
"default": "true"
},
},
"username": {
"username": {
Line 57: Line 52:
"description": "Short description displayed inside the infobox",
"description": "Short description displayed inside the infobox",
"type": "string"
"type": "string"
},
"add_preview": {
"description": "Whether to set infobox image as OpenGraph preview. You usually do not want to touch this.",
"type": "boolean",
"default": "true"
},
},
"add_category": {
"add_category": {
"description": "Whether to add 'Telegram channel' category tag with this template",
"description": "Whether to add 'Telegram channel' category tag with this template. You usually do not want to touch this.",
"type": "boolean",
"type": "boolean",
"default": "true"
"default": "true"

Revision as of 23:20, 22 December 2024

title
Telegram channel
Username lt_three
Creation Date 2023-03-11
Description Multiline description

text start

Infobox for telegram channels. Will set provided image as page preview and put page into 'Telegram channel' category unless disabled.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

Title shown at the top of the template. Defaults to page title.

Lineoptional
imageimage

Image to be used in infobox. Will also be used in page preview.

Filesuggested
usernameusername

Telegram username. Will also add link to the channel.

Example
lt_three
Linerequired
Creation DateCreation Date

Creation Date. Prefer Japanese YYYY-MM-DD

Example
2024-01-01
Dateoptional
descriptiondescription

Short description displayed inside the infobox

Stringoptional
add_previewadd_preview

Whether to set infobox image as OpenGraph preview. You usually do not want to touch this.

Default
true
Booleanoptional
add_categoryadd_category

Whether to add 'Telegram channel' category tag with this template. You usually do not want to touch this.

Default
true
Booleanoptional