打开/关闭搜索
搜索
打开/关闭菜单
1
1276
20
1659
光圈共享
导航
首页
最近更改
随机照片
随机截图
特殊页面
上传文件
游览图片
精选图片
优质图片
每日图片
游戏截图
现实摄影
所有图片
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模板:卡片”︁的源代码
来自光圈共享
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
模板:卡片
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:emailconfirmed
您可以查看和复制此页面的源代码。
<includeonly><div class="card-container {{#ifeq:{{yesno|{{{wide|}}}}}|yes|floatnone}}"> <div class="card-row"> {{#loop: cardcount | 1 | {{{count|{{{column|1}}}}}} | <div class="card {{#if:{{{column|}}}|card-col{{{column}}}}}" style="{{#if:{{{colorbg{{#var:cardcount}}|}}}|background:{{{colorbg{{#var:cardcount}}}}};}}{{#if:{{{colortext{{#var:cardcount}}|}}}|color:{{{colortext{{#var:cardcount}}}}}}}"> <div class="card-top"><!-- -->{{#if:{{{bylinetop{{#var:cardcount}}|}}}|<div class="byline-top" style="{{#if:{{{colorbyline{{#var:cardcount}}|}}}|color:{{{colorbyline{{#var:cardcount}}}}}}}">{{{bylinetop{{#var:cardcount}}}}}</div>}}<!-- -->{{#if:{{{title{{#var:cardcount}}|}}}|<div class="card-title" style="{{#if:{{{colortitle{{#var:cardcount}}|}}}|color:{{{colortitle{{#var:cardcount}}}}}}}">{{{title{{#var:cardcount}}}}}</div>}}<!-- -->{{#if:{{{bylinebottom{{#var:cardcount}}|}}}|<div class="byline-bottom" style="{{#if:{{{colorbyline{{#var:cardcount}}|}}}|color:{{{colorbyline{{#var:cardcount}}}}}}}">{{{bylinebottom{{#var:cardcount}}}}}</div>}}<!-- -->{{#if:{{{text{{#var:cardcount}}|}}}|{{{text{{#var:cardcount}}}}}}}<!-- --></div><!-- -->{{#if:{{{bottom{{#var:cardcount}}|}}}|<div class="card-bottom" style="{{#if:{{{colorbgbottom{{#var:cardcount}}|}}}|background:{{{colorbgbottom{{#var:cardcount}}}}};}}{{#if:{{{colorbottom{{#var:cardcount}}|}}}|color:{{{colorbottom{{#var:cardcount}}}}}}}">{{{bottom{{#var:cardcount}}}}}</div>}}<!-- -->{{#if:{{{page{{#var:cardcount}}|}}}{{{pagelink{{#var:cardcount}}|}}}|<div class="card-button" style="{{#if:{{{colorbgbutton{{#var:cardcount}}|}}}|background:{{{colorbgbutton{{#var:cardcount}}}}}}}">{{#if:{{{pagelink{{#var:cardcount}}|}}}|[{{{pagelink{{#var:cardcount}}}}} {{{pagetext{{#var:cardcount}}|{{{pagelink{{#var:cardcount}}}}}}}}]|[[{{{page{{#var:cardcount}}}}}|{{{pagetext{{#var:cardcount}}|page{{#var:cardcount}}}}}]]}}</div>}}<!-- --></div> }} </div> </div><templatestyles src="模板:卡片/styles.css" /></includeonly><noinclude>{{documentation}}== 模板参数 == <templatedata> { "params": { "wide": { "label": "宽屏模式", "description": "允许网格在宽屏模式下超出页面宽度", "example": "Yes", "type": "string", "default": "No" }, "count": { "label": "卡片数量", "description": "生成的卡片数量", "example": "1", "type": "number", "suggested": true, "default": "列数" }, "column": { "label": "列数", "description": "单行显示的卡片数量(最多6个)", "example": "4", "type": "number", "default": "1", "suggested": true }, "title1": { "label": "卡片1标题", "description": "卡片1上的标题文本", "example": "Red 1 Jared", "type": "string", "suggested": true }, "text1": { "label": "卡片1文本", "description": "卡片1上的内容文本", "type": "content", "suggested": true }, "bottom1": { "label": "卡片1底部", "description": "卡片1底部部分的文本", "type": "content" }, "page1": { "label": "卡片1按钮链接", "description": "卡片1按钮链接的页面", "example": "Ships", "type": "wiki-page-name" }, "pagetext1": { "label": "卡片1按钮文本", "description": "卡片1按钮上显示的文本", "example": "Don't click", "type": "string" }, "bylinetop1": { "label": "卡片1顶部署名", "description": "卡片1标题上方的署名文本", "type": "string" }, "bylinebottom1": { "label": "卡片1底部署名", "description": "卡片1标题下方的署名文本", "type": "string" }, "colorbg1": { "label": "卡片1背景颜色", "description": "卡片1的背景颜色", "example": "#ffffff" }, "colortext1": { "label": "卡片1文本颜色", "description": "卡片1的文本颜色", "example": "#000000" }, "colorbyline1": { "label": "卡片1署名颜色", "description": "卡片1署名的颜色", "example": "#72777d" }, "colortitle1": { "label": "卡片1标题颜色", "description": "卡片1标题的颜色", "example": "#222222" }, "colorbgbottom1": { "label": "卡片1底部背景颜色", "description": "卡片1底部部分的背景颜色", "example": "#eaecf0" }, "colorbottom1": { "label": "卡片1底部文本颜色", "description": "卡片1底部部分的文本颜色", "example": "#72777d" }, "colorbgbutton1": { "label": "卡片1按钮背景颜色", "description": "卡片1按钮的背景颜色", "example": "#eaecf0" }, "title2": { "label": "卡片2标题", "description": "卡片2上的标题文本", "example": "Red 2 Jared", "type": "string", "suggested": true }, "text2": { "label": "卡片2文本", "description": "卡片2上的内容文本", "type": "content", "suggested": true }, "bottom2": { "label": "卡片2底部", "description": "卡片2底部部分的文本", "type": "content" }, "page2": { "label": "卡片2按钮链接", "description": "卡片2按钮链接的页面", "example": "Ships", "type": "wiki-page-name" }, "pagetext2": { "label": "卡片2按钮文本", "description": "卡片2按钮上显示的文本", "example": "Don't click", "type": "string" }, "bylinetop2": { "label": "卡片2顶部署名", "description": "卡片2标题上方的署名文本", "type": "string" }, "bylinebottom2": { "label": "卡片2底部署名", "description": "卡片2标题下方的署名文本", "type": "string" }, "colorbg2": { "label": "卡片2背景颜色", "description": "卡片2的背景颜色", "example": "#ffffff" }, "colortext2": { "label": "卡片2文本颜色", "description": "卡片2的文本颜色", "example": "#000000" }, "colorbyline2": { "label": "卡片2署名颜色", "description": "卡片2署名的颜色", "example": "#72777d" }, "colortitle2": { "label": "卡片2标题颜色", "description": "卡片2标题的颜色", "example": "#222222" }, "colorbgbottom2": { "label": "卡片2底部背景颜色", "description": "卡片2底部部分的背景颜色", "example": "#eaecf0" }, "colorbottom2": { "label": "卡片2底部文本颜色", "description": "卡片2底部部分的文本颜色", "example": "#72777d" }, "colorbgbutton2": { "label": "卡片2按钮背景颜色", "description": "卡片2按钮的背景颜色", "example": "#eaecf0" }, "title3": { "label": "卡片3标题", "description": "卡片3上的标题文本", "example": "Red 3 Jared", "type": "string", "suggested": true }, "text3": { "label": "卡片3文本", "description": "卡片3上的内容文本", "type": "content", "suggested": true }, "bottom3": { "label": "卡片3底部", "description": "卡片3底部部分的文本", "type": "content" }, "page3": { "label": "卡片3按钮链接", "description": "卡片3按钮链接的页面", "example": "Ships", "type": "wiki-page-name" }, "pagetext3": { "label": "卡片3按钮文本", "description": "卡片3按钮上显示的文本", "example": "Don't click", "type": "string" }, "bylinetop3": { "label": "卡片3顶部署名", "description": "卡片3标题上方的署名文本", "type": "string" }, "bylinebottom3": { "label": "卡片3底部署名", "description": "卡片3标题下方的署名文本", "type": "string" }, "colorbg3": { "label": "卡片3背景颜色", "description": "卡片3的背景颜色", "example": "#ffffff" }, "colortext3": { "label": "卡片3文本颜色", "description": "卡片3的文本颜色", "example": "#000000" }, "colorbyline3": { "label": "卡片3署名颜色", "description": "卡片3署名的颜色", "example": "#72777d" }, "colortitle3": { "label": "卡片3标题颜色", "description": "卡片3标题的颜色", "example": "#222222" }, "colorbgbottom3": { "label": "卡片3底部背景颜色", "description": "卡片3底部部分的背景颜色", "example": "#eaecf0" }, "colorbottom3": { "label": "卡片3底部文本颜色", "description": "卡片3底部部分的文本颜色", "example": "#72777d" }, "colorbgbutton3": { "label": "卡片3按钮背景颜色", "description": "卡片3按钮的背景颜色", "example": "#eaecf0" }, "title4": { "label": "卡片4标题", "description": "卡片4上的标题文本", "example": "Red 4 Jared", "type": "string", "suggested": true }, "text4": { "label": "卡片4文本", "description": "卡片4上的内容文本", "type": "content", "suggested": true }, "bottom4": { "label": "卡片4底部", "description": "卡片4底部部分的文本", "type": "content" }, "page4": { "label": "卡片4按钮链接", "description": "卡片4按钮链接的页面", "example": "Ships", "type": "wiki-page-name" }, "pagetext4": { "label": "卡片4按钮文本", "description": "卡片4按钮上显示的文本", "example": "Don't click", "type": "string" }, "bylinetop4": { "label": "卡片4顶部署名", "description": "卡片4标题上方的署名文本", "type": "string" }, "bylinebottom4": { "label": "卡片4底部署名", "description": "卡片4标题下方的署名文本", "type": "string" }, "colorbg4": { "label": "卡片4背景颜色", "description": "卡片4的背景颜色", "example": "#ffffff" }, "colortext4": { "label": "卡片4文本颜色", "description": "卡片4的文本颜色", "example": "#000000" }, "colorbyline4": { "label": "卡片4署名颜色", "description": "卡片4署名的颜色", "example": "#72777d" }, "colortitle4": { "label": "卡片4标题颜色", "description": "卡片4标题的颜色", "example": "#222222" }, "colorbgbottom4": { "label": "卡片4底部背景颜色", "description": "卡片4底部部分的背景颜色", "example": "#eaecf0" }, "colorbottom4": { "label": "卡片4底部文本颜色", "description": "卡片4底部部分的文本颜色", "example": "#72777d" }, "colorbgbutton4": { "label": "卡片4按钮背景颜色", "description": "卡片4按钮的背景颜色", "example": "#eaecf0" }, "title5": { "label": "卡片5标题", "description": "卡片5上的标题文本", "example": "Red 5 Jared", "type": "string", "suggested": true }, "text5": { "label": "卡片5文本", "description": "卡片5上的内容文本", "type": "content", "suggested": true }, "bottom5": { "label": "卡片5底部", "description": "卡片5底部部分的文本", "type": "content" }, "page5": { "label": "卡片5按钮链接", "description": "卡片5按钮链接的页面", "example": "Ships", "type": "wiki-page-name" }, "pagetext5": { "label": "卡片5按钮文本", "description": "卡片5按钮上显示的文本", "example": "Don't click", "type": "string" }, "bylinetop5": { "label": "卡片5顶部署名", "description": "卡片5标题上方的署名文本", "type": "string" }, "bylinebottom5": { "label": "卡片5底部署名", "description": "卡片5标题下方的署名文本", "type": "string" }, "colorbg5": { "label": "卡片5背景颜色", "description": "卡片5的背景颜色", "example": "#ffffff" }, "colortext5": { "label": "卡片5文本颜色", "description": "卡片5的文本颜色", "example": "#000000" }, "colorbyline5": { "label": "卡片5署名颜色", "description": "卡片5署名的颜色", "example": "#72777d" }, "colortitle5": { "label": "卡片5标题颜色", "description": "卡片5标题的颜色", "example": "#222222" }, "colorbgbottom5": { "label": "卡片5底部背景颜色", "description": "卡片5底部部分的背景颜色", "example": "#eaecf0" }, "colorbottom5": { "label": "卡片5底部文本颜色", "description": "卡片5底部部分的文本颜色", "example": "#72777d" }, "colorbgbutton5": { "label": "卡片5按钮背景颜色", "description": "卡片5按钮的背景颜色", "example": "#eaecf0" }, "title6": { "label": "卡片6标题", "description": "卡片6上的标题文本", "example": "Red 6 Jared", "type": "string", "suggested": true }, "text6": { "label": "卡片6文本", "description": "卡片6上的内容文本", "type": "content", "suggested": true }, "bottom6": { "label": "卡片6底部", "description": "卡片6底部部分的文本", "type": "content" }, "page6": { "label": "卡片6按钮链接", "description": "卡片6按钮链接的页面", "example": "Ships", "type": "wiki-page-name" }, "pagetext6": { "label": "卡片6按钮文本", "description": "卡片6按钮上显示的文本", "example": "Don't click", "type": "string" }, "bylinetop6": { "label": "卡片6顶部署名", "description": "卡片6标题上方的署名文本", "type": "string" }, "bylinebottom6": { "label": "卡片6底部署名", "description": "卡片6标题下方的署名文本", "type": "string" }, "colorbg6": { "label": "卡片6背景颜色", "description": "卡片6的背景颜色", "example": "#ffffff" }, "colortext6": { "label": "卡片6文本颜色", "description": "卡片6的文本颜色", "example": "#000000" }, "colorbyline6": { "label": "卡片6署名颜色", "description": "卡片6署名的颜色", "example": "#72777d" }, "colortitle6": { "label": "卡片6标题颜色", "description": "卡片6标题的颜色", "example": "#222222" }, "colorbgbottom6": { "label": "卡片6底部背景颜色", "description": "卡片6底部部分的背景颜色", "example": "#eaecf0" }, "colorbottom6": { "label": "卡片6底部文本颜色", "description": "卡片6底部部分的文本颜色", "example": "#72777d" }, "colorbgbutton6": { "label": "卡片6按钮背景颜色", "description": "卡片6按钮的背景颜色", "example": "#eaecf0" } }, "description": "此模板是用于在页面上以网格或行布局生成卡片的模板。目前在可视化编辑中最多仅支持六张卡片,有关高级语法请参考模板页面。 ", "paramOrder": [ "count", "column", "wide", "title1", "text1", "bottom1", "page1", "pagetext1", "bylinetop1", "bylinebottom1", "title2", "text2", "bottom2", "page2", "pagetext2", "bylinetop2", "bylinebottom2", "title3", "text3", "bottom3", "page3", "pagetext3", "bylinetop3", "bylinebottom3", "title4", "text4", "bottom4", "page4", "pagetext4", "bylinetop4", "bylinebottom4", "title5", "text5", "bottom5", "page5", "pagetext5", "bylinetop5", "bylinebottom5", "title6", "text6", "bottom6", "page6", "pagetext6", "bylinetop6", "bylinebottom6", "colorbg1", "colortitle1", "colortext1", "colorbgbottom1", "colorbottom1", "colorbgbutton1", "colorbyline1", "colorbg2", "colortitle2", "colortext2", "colorbgbottom2", "colorbottom2", "colorbgbutton2", "colorbyline2", "colorbg3", "colortitle3", "colortext3", "colorbgbottom3", "colorbottom3", "colorbgbutton3", "colorbyline3", "colorbg4", "colortitle4", "colortext4", "colorbgbottom4", "colorbottom4", "colorbgbutton4", "colorbyline4", "colorbg5", "colortitle5", "colortext5", "colorbgbottom5", "colorbottom5", "colorbgbutton5", "colorbyline5", "colorbg6", "colortitle6", "colortext6", "colorbgbottom6", "colorbottom6", "colorbgbutton6", "colorbyline6" ], "format": "block" } </templatedata> </noinclude>
该页面使用的模板:
模板:Documentation
(
查看源代码
)
返回
模板:卡片
。
查看“︁模板:卡片”︁的源代码
来自光圈共享