模板6:Linux终端样式:修订间差异
来自istudylinux
Istudylinux(讨论 | 贡献) 小 (Istudylinux移动页面模板:Linux终端样式至模板6:Linux终端样式,不留重定向) |
Istudylinux(讨论 | 贡献) (→源码) |
||
第4行: | 第4行: | ||
== 依赖 == | == 依赖 == | ||
* 扩展:TemplateStyles | * 扩展:TemplateStyles | ||
== 源码 == | |||
;页面名称 | |||
* 模板:Terminal | |||
* 模板:Terminal/styles.css | |||
== 源码 == | == 源码 == | ||
第10行: | 第15行: | ||
* 模板:Terminal/styles.css | * 模板:Terminal/styles.css | ||
;源码 | ;源码 | ||
{{TabbedWindowBegin}} | |||
=== 注意 === | |||
=== 模板:Terminal === | |||
<syntaxhighlight lang="html" line="true"> | <syntaxhighlight lang="html" line="true"> | ||
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}> | <templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}> | ||
第19行: | 第26行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== 模板:Terminal/styles.css === | |||
<syntaxhighlight lang="html" line="true"> | <syntaxhighlight lang="html" line="true"> | ||
.tpl-terminal { | .tpl-terminal { | ||
第38行: | 第45行: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{TabbedWindowEnd}} | |||
[[分类:模板]] | [[分类:模板]] | ||
[[分类:仓库]] | [[分类:仓库]] |
2022年11月20日 (日) 00:16的版本
来源
https://www.mediawiki.org/wiki/Template:Terminal
依赖
- 扩展:TemplateStyles
源码
- 页面名称
- 模板:Terminal
- 模板:Terminal/styles.css
源码
- 页面名称
- 模板:Terminal
- 模板:Terminal/styles.css
- 源码
注意
模板:Terminal
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
模板:Terminal/styles.css
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}