Template:Tgchannel: Difference between revisions

From <3 wiki
move category into includeonly
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
<includeonly>{{Infobox
|title={{{title|}}}
|title={{{title|}}}
|subtitle=Telegram channel
|subtitle=Telegram channel
|image={{{image|}}}
|image={{{image|}}}
|add_preview={{{add_preview|}}}
|add_preview=true
|infobox_items=<tr>
|infobox_items=<tr>
   <th>Username</th>
   <th>Username</th>
Line 14: Line 14:
   <td>{{{description}}}</td>
   <td>{{{description}}}</td>
</tr>}}
</tr>}}
}}<includeonly>[[Category:Telegram channel]]</includeonly><noinclude>
}}{{#if:{{{skip_category|}}}| |[[Category:Telegram channel]]}}</includeonly><noinclude>
text start
{{Tgchannel
| title = меньше чем три
| image = Lt three icon.jpg
| username = lt_three
| description = Less than three <3
Safe space for lain pfps, femcels, SciADV fans, pilk drinkers, GregTech enjoyers and other cool internet people.
| Creation Date = 2023-03-11
| skip_category = true <!-- this is set only to avoid placing template itself into category, you do not need this parameter -->
}}
<pre>
{{Tgchannel
| title = меньше чем три
| image = Lt three icon.jpg
| username = lt_three
| description = Less than three <3
Safe space for lain pfps, femcels, SciADV fans, pilk drinkers, GregTech enjoyers and other cool internet people.
| Creation Date = 2023-03-11
}}
</pre>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"title": {
"title": {
"description": "Title shown at the top of the template. Defaults to page title.",
"description": "Title shown at the top of the template",
"type": "line"
"type": "line",
"default": "page title"
},
},
"image": {
"image": {
Line 42: Line 61:
"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": {
"description": "Whether to add 'Telegram channel' category tag with this template. You usually do not want to touch this.",
"type": "boolean",
"default": "true"
}
}
},
},

Latest revision as of 00:32, 23 December 2024

меньше чем три
Telegram channel
Username lt_three
Creation Date 2023-03-11
Description Less than three <3 Safe space for lain pfps, femcels, SciADV fans, pilk drinkers, GregTech enjoyers and other cool internet people.
{{Tgchannel
| title = меньше чем три
| image = Lt three icon.jpg
| username = lt_three
| description = Less than three <3
Safe space for lain pfps, femcels, SciADV fans, pilk drinkers, GregTech enjoyers and other cool internet people.
| Creation Date = 2023-03-11
}}

Infobox for telegram channels

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

Title shown at the top of the template

Default
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