Difference between revisions of "Template:XLink"

From Moegirlpedia
Jump to: navigation, search
m (Tsuyuki2198391 moved page Template:TwitterLink to Template:XLink)
 
Line 1: Line 1:
<includeonly>[[File:Twitter logo.svg|{{{2|23px}}}|link={{#if:{{{1|}}}|https://twitter.com/{{{1|}}}|}} {{{3|}}}]]</includeonly><noinclude>[[CAT:External link templates]]{{doc}}</noinclude>
+
<includeonly>[[File:X logo.svg|{{{2|23px}}}|link={{#if:{{{1|}}}|https://twitter.com/{{{1|}}}|}} {{{3|}}}]]</includeonly><noinclude>[[CAT:External link templates]]{{doc}}</noinclude>

Latest revision as of 15:53, 3 October 2024

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]
Introduction

This template is used to quickly generate a logo that links to a specific X (formerly Twitter) account. It is mostly applied on character infoboxes, such as VTubers.

Parameters
{{XLink
|X username
|Logo size, default is 23px
|Parameter for manually filling in other image, use {{!}} instead of the pipe character
}}
Usage

{{XLink}}X logo.svg (Blank, only generates the default-sized logo)

{{XLink|aichan_nel}}X logo.svg (Has Kizuna Ai's X username)

{{XLink|aichan_nel|100px}}X logo.svg (Has Kizuna Ai's X username, logo size is changed to 100px)

{{XLink|aichan_nel|60px|{{!}}left{{!}}thumb{{!}}Kizuna AI - X}}
Kizuna AI - X
(Has Kizuna Ai's X username, logo size is changed to 60px, other image parameters are added. For emergency use, it is generally not recommended to fill in the template parameters in position 3 unless specifically required)