模板:图标链接/分类:修订间差异

来自「荏苒之境」
创建页面,内容为“<templatestyles src="模板:图标链接/分类/style.css"/>”
 
无编辑摘要
第1行: 第1行:
<templatestyles src="模板:图标链接/分类/style.css"/>
<noinclude>{{模板文档}}</noinclude><includeonly><!--
--><templatestyles src="模板:图标链接/分类/style.css"/><!--
-->{{模板:图标链接/大 | :分类:{{{1}}} | {{#tag: p | {{PAGESINCATEGORY:{{{1}}}}} | class=category-icon-link-pagecount}}{{{2}}} | {{{3|}}}}}<!--
--></includeonly><noinclude>
<templatedata>
{
"params": {
"1": {
"description": "分类的名称。",
"type": "wiki-page-name",
"required": true
},
"2": {
"description": "链接的图标。",
"type": "unbalanced-wikitext",
"required": true
},
"3": {
"description": "链接的文本。",
"type": "content"
}
},
"description": "用于创建带单行大图标的分类链接。",
"format": "inline",
"paramOrder": [
"1",
"2",
"3"
]
}
</templatedata>
[[Category:模板]]
</noinclude>

2025年8月12日 (二) 14:41的版本

此模板使用的样式:模板:图标链接/分类/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}}|世界}}

用于创建带单行大图标的分类链接。

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
11

分类的名称。

页面名称必需
22

链接的图标。

wikitext片段必需
33

链接的文本。

内容可选