Difference between revisions of "Template:XLink/doc"

From Moegirlpedia
Jump to: navigation, search
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
;Introduction
 
;Introduction
  
This template is used to quickly generate a logo that links to a specific Twitter account. It is mostly applied on character infoboxes, mostly [[VTuber|VTubers]].
+
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 [[VTuber|VTubers]].
  
 
;Parameters
 
;Parameters
 
 
<pre>
 
<pre>
{{TwitterLink
+
{{XLink
|Twitter username
+
|X username
 
|Logo size, default is 23px
 
|Logo size, default is 23px
 
|Parameter for manually filling in other image, use {{!}} instead of the pipe character
 
|Parameter for manually filling in other image, use {{!}} instead of the pipe character
Line 15: Line 14:
 
;Usage
 
;Usage
  
<code><nowiki>{{TwitterLink}}</nowiki></code> → {{TwitterLink}} (Blank, only generates the default-sized logo)
+
<code><nowiki>{{XLink}}</nowiki></code> → {{XLink}} (Blank, only generates the default-sized logo)
  
<code><nowiki>{{TwitterLink|aichan_nel}}</nowiki></code> → {{TwitterLink|aichan_nel}} (Has [[Kizuna Ai]]'s Twitter username)
+
<code><nowiki>{{XLink|aichan_nel}}</nowiki></code> → {{XLink|aichan_nel}} (Has [[Kizuna Ai]]'s X username)
  
<code><nowiki>{{TwitterLink|aichan_nel|100px}}</nowiki></code> → {{TwitterLink|aichan_nel|100px}} (Has [[Kizuna Ai]]'s Twitter username, logo size is changed to 100px)
+
<code><nowiki>{{XLink|aichan_nel|100px}}</nowiki></code> → {{XLink|aichan_nel|100px}} (Has [[Kizuna Ai]]'s X username, logo size is changed to 100px)
  
<code><nowiki>{{TwitterLink|aichan_nel|60px|{{!}}left{{!}}thumb{{!}}Kizuna AI - Twitter}}</nowiki></code> → (Has [[Kizuna Ai]]'s Twitter 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)
+
<code><nowiki>{{XLink|aichan_nel|60px|{{!}}left{{!}}thumb{{!}}Kizuna AI - X}}</nowiki></code> → {{XLink|aichan_nel|60px|{{!}}left{{!}}thumb{{!}}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)
  
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 15:54, 3 October 2024

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)