Template:Tgchannel: Difference between revisions
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.
Expression error: Unrecognized word "false".
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 |