Template:Tgchannel: Difference between revisions

From <3 wiki
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 2: Line 2:
<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div><center>Telegram channel</center>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div><center>Telegram channel</center>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{#setmainimage:{{{image}}}}}|300px]]</div>}}
<div class="infobox-image">
{{#ifeq:{{{add_preview|true}}}|true|
<!--then -->[[File:{{#setmainimage:{{{image}}}}}|300px]]
|<!--else -->[[File:{{{image}}}|300px]]}}</div>}}
<table class="infobox-table">
<table class="infobox-table">
<tr>
<tr>
Line 64: Line 67:
"add_category": {
"add_category": {
"description": "Whether to add category tag with this template",
"description": "Whether to add category tag with this template",
"type": "boolean",
"default": "true"
},
"add_preview": {
"description": "Whether to set infobox image as OpenGraph preview",
"type": "boolean",
"type": "boolean",
"default": "true"
"default": "true"

Revision as of 22:04, 22 December 2024


Page Template:Tgchannel/styles.css has no content.

Tgchannel
Telegram channel
Username username
Creation Date 2024-01-01
Description your description

Infobox for telegram channel

Template parameters[Edit template data]

This template prefers block formatting of parameters.

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

Example
lt_three
Unknownrequired
Descriptiondescription

short description displayed inside the infobox

Contentsuggested
Creation DateCreation Date

no description

Lineoptional
add_categoryadd_category

Whether to add category tag with this template

Default
true
Booleanoptional
add_previewadd_preview

Whether to set infobox image as OpenGraph preview

Default
true
Booleanoptional