百科链接卡片:用户指定图标、萌娘百科模板、修复模板页无效默认目标;中文文言加需🪜提示,六语言对应模板 |
将可插入模板归入可视化编辑器默认浏览分类;分类仅在noinclude内,不传递给正文 |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly><templatestyles src="Template:百科链接/样式.css" /><div class="tyzx-encyclopedia-link tyzx-encyclopedia-link--wikipedia noprint"><div class="tyzx-encyclopedia-link__image">[[File:Tyzx external Bouncywikilogo.gif|60px|link=|alt=维基百科]]</div><div class="tyzx-encyclopedia-link__heading">维基百科<span class="tyzx-encyclopedia-link__access">(需🪜)</span></div><div>{{{3|相关内容:}}}<span class="tyzx-encyclopedia-link__target">[https://{{#switch:{{{lang|zh}}}|zh=zh|en=en|fr=fr|ja=ja|ko=ko|lzh=zh-classical|zh-classical=zh-classical|#default=zh}}.wikipedia.org/wiki/{{urlencode:{{{2|{{{1|{{PAGENAME}}}}}}}}|WIKI}} {{{1|{{PAGENAME}}}}}]</span></div></div></includeonly><noinclude>== 用法 == | <includeonly><templatestyles src="Template:百科链接/样式.css" /><div class="tyzx-encyclopedia-link tyzx-encyclopedia-link--wikipedia noprint"><div class="tyzx-encyclopedia-link__image">[[File:Tyzx external Bouncywikilogo.gif|60px|link=|alt=维基百科]]</div><div class="tyzx-encyclopedia-link__heading">维基百科<span class="tyzx-encyclopedia-link__access">(需🪜)</span></div><div>{{{3|相关内容:}}}<span class="tyzx-encyclopedia-link__target">[https://{{#switch:{{{lang|zh}}}|zh=zh|en=en|fr=fr|ja=ja|ko=ko|lzh=zh-classical|zh-classical=zh-classical|#default=zh}}.wikipedia.org/wiki/{{urlencode:{{{2|{{{1|{{PAGENAME}}}}}}}}|WIKI}} {{{1|{{PAGENAME}}}}}]</span></div></div></includeonly><noinclude>== 用法 == | ||
<pre>{{接连维基百科|江苏省天一中学}} | <pre>{{接连维基百科|江苏省天一中学}} | ||
{{接连维基百科|江苏省天一中学 | {{接连维基百科|显示文字|江苏省天一中学}}</pre> | ||
模板页只展示明确填写目标的示例,不再链接模板自身名称。未填写参数时,正文中的调用仍默认使用当前词条名。请确认外站目标存在;模板不能自动检测外站红链。 | 模板页只展示明确填写目标的示例,不再链接模板自身名称。未填写参数时,正文中的调用仍默认使用当前词条名。请确认外站目标存在;模板不能自动检测外站红链。 | ||
== 参数 == | == 参数 == | ||
| 第16行: | 第16行: | ||
[[ja:Template:接连维基百科]] | [[ja:Template:接连维基百科]] | ||
[[ko:Template:接连维基百科]] | [[ko:Template:接连维基百科]] | ||
<templatedata>{"description": "维基百科 link card", "params": {"1": {"label": "Target / label", "type": "string"}, "2": {"label": "Label / target", "type": "string"}, "lang": {"label": "Wikipedia language", "type": "string", "default": "zh"}, "3": {"label": "Introduction", "type": "string"}}, "format": "inline"}</templatedata></noinclude> | <templatedata>{"description": "维基百科 link card", "params": {"1": {"label": "Target / label", "type": "string"}, "2": {"label": "Label / target", "type": "string"}, "lang": {"label": "Wikipedia language", "type": "string", "default": "zh"}, "3": {"label": "Introduction", "type": "string"}}, "format": "inline"}</templatedata> | ||
[[Category:模板]] | |||
</noinclude> | |||