Template:Tgchannel: Difference between revisions

From <3 wiki
allow skipping adding category tag with a flag
Tag: 2017 source edit
add example of template usage
Tag: 2017 source edit
Line 15: Line 15:
</tr>}}
</tr>}}
}}{{#if:{{{skip_category|}}}| |[[Category:Telegram channel]]}}</includeonly><noinclude>
}}{{#if:{{{skip_category|}}}| |[[Category:Telegram channel]]}}</includeonly><noinclude>
<pre>
{{Tgchannel
| 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
| title = меньше чем три
}}
</pre>
{{Tgchannel
| 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
| title = меньше чем три
| skip_category = true <!-- this is set only to avoid placing template itself into category, you do not need this parameter -->
}}
text start
text start
<templatedata>
<templatedata>

Revision as of 00:20, 23 December 2024

{{Tgchannel
| 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
| title = меньше чем три
}}
меньше чем три
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.

text start

Infobox for telegram channels

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