模板:图标链接/分类:修订间差异
来自「荏苒之境」
< 模板:图标链接
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
<noinclude>{{模板文档}}</noinclude><includeonly><!-- | <noinclude>{{模板文档}}</noinclude><includeonly><!-- | ||
--><templatestyles src="模板:图标链接/分类/style.css"/><!-- | --><templatestyles src="模板:图标链接/分类/style.css"/><!-- | ||
-->{{图标链接/大 | :分类:{{{1}}} | {{#tag:p | {{PAGESINCATEGORY: {{{1}}}}} | class=category-icon-link-pagecount}}{{{2}}} | {{{3|}}}}}<!-- | -->{{图标链接/大|:分类:{{{1}}}|{{#tag:p|{{PAGESINCATEGORY:{{{1}}}}}|class=category-icon-link-pagecount}}{{{2}}}|{{{3|}}}}}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
<templatedata> | <templatedata> |
2025年8月12日 (二) 15:02的版本
此模板使用的样式:模板:图标链接/分类/style.css
.category-icon-link-pagecount {
position: absolute;
transform: translate(45px, -10px);
font-size: 0.25em;
text-align: center;
border: 1px solid #b9c2d4;
line-height: 1em;
padding: 0.2em;
border-radius: 5px;
background-color: rgba(240, 247, 255, 0.9)
}
世界
示例代码:
{{图标链接/分类|世界|{{#fas: moon}}|世界}}
用于创建带单行大图标的分类链接。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
1 | 1 | 分类的名称。 | 单行文本 | 必需 |
2 | 2 | 链接的图标。 | wikitext片段 | 必需 |
3 | 3 | 链接的文本。 | 内容 | 可选 |