Template:Tgchannel: Difference between revisions

From <3 wiki
Eduardo Basquiat (talk | contribs)
>I'm being filtered by the parameters editor
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Tgchannel/styles.css" />
<includeonly>{{Infobox
<div class="infobox">
|title={{{title|}}}
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div><center>Telegram channel</center>{{#if:{{{image|}}}|
|subtitle=Telegram channel
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
|image={{{image|}}}
{{#if:{{{url_image|}}}|
|add_preview=true
<div class="infobox-image"><div class="infobox-url-image">{{{url_image}}}</div></div>}}
|infobox_items=<tr>
<table class="infobox-table">
<tr>
   <th>Username</th>
   <th>Username</th>
   <td>[https://t.me/{{{username}}} {{{username}}}]</td>
   <td>[https://t.me/{{{username}}} {{{username}}}]</td>
</tr>
</tr>{{#if:{{{Creation Date|}}}|<tr>
<tr>
  <th>Creation Date</th>
  <td>{{{Creation Date}}}</td>
</tr>}}{{#if:{{{description|}}}|<tr>
   <th>Description</th>
   <th>Description</th>
   <td>{{{description}}}</td>
   <td>{{{description}}}</td>
</tr>
</tr>}}
</table>
}}{{#if:{{{skip_category|}}}| |[[Category:Telegram channel]]}}</includeonly><noinclude>
</div>
{{Tgchannel
<includeonly>
| title = меньше чем три
[[Category:Telegram channel]]
| image = Lt three icon.jpg
</includeonly>
| username = lt_three
<noinclude>
| description = Less than three <3
<templatedata>{
Safe space for lain pfps, femcels, SciADV fans, pilk drinkers, GregTech enjoyers and other cool internet people.
"description": "Infobox for telegram channel",
| Creation Date = 2023-03-11
"format": "block",
| 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>
{
"params": {
"params": {
"title": {
"title": {
"label": "Title",
"description": "Title shown at the top of the template",
"type": "line",
"type": "line",
"required": false,
"default": "page title"
"description": "Title shown at the top of the template. Defaults to page title"
},
},
"image": {
"image": {
"label": "Image",
"description": "Image to be used in infobox. Will also be used in page preview.",
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": false,
"suggested": true
"suggested": true
},
},
"username": {
"username": {
"label": "Username",
"description": "Telegram username. Will also add link to the channel.",
"required": true,
"example": "lt_three",
"description": "telegram username",
"type": "line",
"example": "lt_three"
"required": true
},
"Creation Date": {
"description": "Creation Date. Prefer Japanese YYYY-MM-DD",
"example": "2024-01-01",
"type": "date"
},
},
"description": {
"description": {
"label": "Description",
"description": "Short description displayed inside the infobox",
"required": true,
"type": "string"
"description": "short description displayed inside the infobox"
},
"url_image": {
"description": "external image url as alternative to wiki-hosted file",
"type": "url",
"suggested": true
},
"Creation Date": {
"label": "Creation Date",
"suggestedvalues": [
"Unknown"
]
}
}
}
},
"description": "Infobox for telegram channels"
}
}
</templatedata>
</templatedata></noinclude>
</noinclude>

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