Template:Tgchannel: Difference between revisions
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.
Infobox for telegram channel
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title shown at the top of the template. Defaults to page title | Line | optional |
Image | image | Image to be used in infobox. Will also be used in page preview. | File | suggested |
Username | username | telegram username
| Unknown | required |
Description | description | short description displayed inside the infobox | Content | suggested |
Creation Date | Creation Date | no description | Line | optional |
add_category | add_category | Whether to add category tag with this template
| Boolean | optional |
add_preview | add_preview | Whether to set infobox image as OpenGraph preview
| Boolean | optional |