匿名
未登录
登录
百问网嵌入式Linux wiki
搜索
查看“模板:Grey”的源代码
来自百问网嵌入式Linux wiki
名字空间
模板
讨论
更多
更多
页面选项
Read
查看源代码
历史
←
模板:Grey
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<noinclude> ==Usage== Historically, the [[Template:Grey|Grey]] template was used '''to color text''' in pages, with the "classic MediaWiki grey" color. It is now mapped on the [[Template:STDarkGrey|STDarkGrey]] template that is a STMicroelectronics corporate color. Usage: <nowiki>{{</nowiki>Grey|{{HighlightParam|<text to color>}}}} Where {{HighlightParam|<text to color>}} is the text to format in grey. If this template is called with no text, the hexadecimal code of the color is returned. {{Warning|Do not use this template anymore: use the [[Template:STDarkGrey|STDarkGrey]] template instead.}} ==Basic examples== {| class="st-table" ! You type !! You get |- | Coloring text in "classic MediaWiki" grey: it is now mapped on the [[Template:STDarkGrey|STDarkGrey]] template <pre style="white-space: pre-wrap;"> This was a {{Grey|"classic MediaWiki" color: grey: █}}: it is now mapped on the ST dark grey. </pre> | This was a {{Grey|"classic MediaWiki" color: grey: █}}: it is now mapped on the ST dark grey. |- | Getting the hexadecimal code of the color <pre style="white-space: pre-wrap;"> {{Grey}} is the hexadecimal code of STMicroelectronics dark grey. </pre> | {{Grey}} is the hexadecimal code of STMicroelectronics dark grey. |} ==More examples== {| class="st-table" ! You type !! You get |- | Grey and bold <pre style="white-space: pre-wrap;"> This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': it is now mapped on the ST dark grey. </pre> | This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': it is now mapped on the ST dark grey. |- | Grey and italic <pre style="white-space: pre-wrap;"> This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey. </pre> | This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey. |} ==Code== </noinclude>{{#if: {{{1|}}}|<span style="color: {{STDarkGrey}};">{{{1}}}</span>|{{STDarkGrey}}}}
该页面使用的模板:
模板:Grey
(
查看源代码
)
模板:HighlightParam
(
查看源代码
)
模板:STDarkGrey
(
查看源代码
)
模板:STPink
(
查看源代码
)
模板:Warning
(
查看源代码
)
返回至
模板:Grey
。
导航
导航
WIKI首页
官方店铺
资料下载
交流社区
所有页面
所有产品
MPU-Linux开发板
MCU-单片机开发板
Linux开发系列视频
单片机开发系列视频
所有模块配件
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志