模板:模板样式:修订间差异

来自「荏苒之境」
无编辑摘要
无编辑摘要
第2行: 第2行:
{{可隐藏/标准块
{{可隐藏/标准块
| 标题 = 此模板使用的样式:[[{{trim | {{{1|}}}}}]]
| 标题 = 此模板使用的样式:[[{{trim | {{{1|}}}}}]]
| 主样式 = border: 1px solid #c8ccd1
| 内容样式 = padding: 0 !important; margin-bottom: -1em
| 内容样式 = padding: 0 !important; margin-bottom: -1em
}}
}}
{{#ifexist:{{{1|}}}
{{#ifexist:{{{1|}}}
| {{#tag:syntaxhighlight|{{safesubst:{{{1}}}}}|lang=css|style=margin: 0}}
| {{#tag:syntaxhighlight|{{safesubst:{{{1}}}}}|lang=css}}
| <p class="error">样式不存在!</p>
| <p class="error">样式不存在!</p>
}}
}}

2025年8月8日 (五) 07:57的版本

此模板使用的样式:模板:模板样式/style.css
.template-style-view {
	margin-bottom: 15px;
}

.template-style-view .mw-highlight {
	margin: 0;
}

.template-style-view .mw-highlight pre {
	margin: 0;
	border: 0px;
}

示例代码:

{{模板样式
| 模板:模板样式/style.css
}}