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