跳转到内容

Template:Twitter Bird/doc

本页使用了标题或全文手工转换
维基百科,自由的百科全书

使用總結[编辑]

{{Twitter Bird|logo color|background color|logo size|vertical displacement}}

TemplateData[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

Twitter Bird模板数据

This template adds Twitter logo.

模板参数

参数描述类型状态
Logo color1

Set color of the logo. Use the hex color code.

默认值
#1DA1F2
示例值
#000000
数字推荐
Background color2

Set background color. Use the hex color code.

默认值
#FFFFFF
示例值
#F9F9F9
数字推荐
Logo size3

Set size of the logo in pixels. Use numeric value only, without units of measurement (px).

默认值
16
示例值
24
数字推荐
Vertical displacement4

Set percentage (% of size) of the logo downward shift to align it with the text. Use decimal fraction.

默认值
0.125
示例值
0.35
数字推荐

例子[编辑]

Input Result
{{Twitter Bird}} Background color of the cell is set to white.
{{Twitter Bird||#F9F9F9}} [https://twitter.com/wikipedia @Wikipedia] Background color of the logo is set to match the cell's one. @Wikipedia
{{font color|white|'''Wikipedia'''}} {{Twitter Bird|white|darkblue|12|0.1}} Background color of the logo and the cell is set to dark blue. Wikipedia

參見[编辑]