模板:Sister project/doc
来自中文乐谱库
Lua错误:无法创建进程:proc_open(/dev/null): failed to open stream: Operation not permitted[[Category:模板:SUBJECTSPACE ZH说明文件]]
模板介紹
本模板为一系列姊妹计划链接模板的元模板,亦即本模板用于构建其他模板。注意其他语言中文维基百科的链接不应使用此页中的链接,而不是使用跨维基链接将它们添加到侧栏。
使用方法
|text=– 填充文本。|project=– 选择需要连接的姊妹项目的标志。|below=– 在正文下方的全角行显示文本,慎用。|position=– 输入left可向左对齐,可以通过|position={{{position|}}}设置本模板如何对齐。
範例
{{sister
|project=commons
|text=[[维基共享资源]]中相关的多媒体资源:'''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''
}}
Lua错误:无法创建进程:proc_open(/dev/null): failed to open stream: Operation not permitted
注意事项
如果条目正文中有了外部链接,那么本模板通常应该置于外部链接章节的第一行。如果没有此章节,则置于最后一节的第一行。
在消歧义页中,本模板应置于文本上方。
模板数据
这是用于新版-{zh-cn:可视化编辑器;zh-tw:視覺化編輯器;}-及其他工具的-{zh-cn:模板数据;zh-tw:模板資料}--{zh-cn:文档;zh-tw:文件;}-。
Sister project-{zh-cn:模板数据;zh-tw:模板資料}-
<templatedata>{ "description": "Creates a small box with a links to an article on a sister projects of wikipedia.", "params": {
"project": {
"label": "Project",
"description": "The project to link to e.g. commons, meta, wikibooks, wikidata, wikiquote, wikipedia, wikisource, wiktionary, wikinews, wikispecies, wikiversity, wikivoyage, mediawiki, outreachwiki, or incubator. The default displays the Wikimedia logo.",
"type": "string",
"required": true
},
"text": {
"label": "Text",
"description": "Text of the message e.g. Wikimedia Commons has media related to: Commons:Alcatraz",
"type": "string",
"required": true
},
"below": {
"label": "Below",
"description": "Optional text to display in a full-width row below the main content. Use sparingly.",
"type": "string",
"required": false
},
"position": {
"label": "Position",
"description": "Position to display the box: 'left' floats the box to the left rather than the default, which is on the right.",
"type": "string",
"required": false
}
}}</templatedata>
參見
- {{sister-inline}},不带边框的姊妹计划链接模板的元模板
- {{side box}},添加浮动边框的元模板,作用如同{{sister}}