Template:Tgchannel: Difference between revisions

From <3 wiki
remove deprecated url_image parameter
Tag: 2017 source edit
Make description field optional and put it at the bottom of infobox
Tag: 2017 source edit
Line 7: Line 7:
   <th>Username</th>
   <th>Username</th>
   <td>[https://t.me/{{{username}}} {{{username}}}]</td>
   <td>[https://t.me/{{{username}}} {{{username}}}]</td>
</tr>
<tr>
  <th>Description</th>
  <td>{{{description}}}</td>
</tr>
</tr>
{{#if:{{{Creation Date|}}}|
{{#if:{{{Creation Date|}}}|
Line 16: Line 12:
   <th>Creation Date</th>
   <th>Creation Date</th>
   <td>{{{Creation Date}}}</td>
   <td>{{{Creation Date}}}</td>
</tr>
</tr>}}
}}
{{#if:{{{description|}}}|
<tr>
  <th>Description</th>
  <td>{{{description}}}</td>
</tr>}}
 
</table>
</table>
</div>
</div>
Line 49: Line 50:
"description": {
"description": {
"label": "Description",
"label": "Description",
"required": true,
"description": "short description displayed inside the infobox",
"description": "short description displayed inside the infobox"
"type": "content",
"suggested": true
},
},
"Creation Date": {
"Creation Date": {

Revision as of 00:08, 21 December 2024

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

Tgchannel
Telegram channel
Username {{{username}}}


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