Template:Tgchannel: Difference between revisions

From <3 wiki
wrap template content into includeonly
Tag: 2017 source edit
add template example inside noinclude
Tag: 2017 source edit
Line 20: Line 20:


</table>
</table>
</div>[[Category:Telegram channel]]</includeonly>
</div>{{#ifexpr: {{{add_category|true}}}|[[Category:Telegram channel]]}}</includeonly>
<noinclude>
<noinclude>
{{Tgchannel
|image=Moeka-love.jpg
|username=username
|description=your description
|Creation Date=2024-01-01
|add_category=false
}}
‎<templatedata>{
‎<templatedata>{
"description": "Infobox for telegram channel",
"description": "Infobox for telegram channel",
Line 54: Line 61:
"label": "Creation Date",
"label": "Creation Date",
"type": "line"
"type": "line"
},
"add_category": {
"description": "Whether to add category tag with this template",
"type": "boolean",
"default": "true"
}
}
}
}

Revision as of 21:56, 22 December 2024


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

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

Expression error: Unrecognized word "false".

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