使用方法/页面结构:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第76行: 第76行:
| [[MediaWiki:Footer-tagline]] || 编辑页脚
| [[MediaWiki:Footer-tagline]] || 编辑页脚
|}
|}
这里需要注意的是当使用 [https://www.mediawiki.org/wiki/Skin:example Example] 皮肤时,因为其结构简略,并不具备 '''[[MediaWiki:Footer-tagline]]''' 模块,需要自行在
{{hc|head=父级目录/mediawiki/skins/Example/templates|output=<syntaxhighlight lang="bash" light="8">
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles and
        to mitigate a VoiceOver bug. }}
<footer id="footer" class="mw-footer" role="contentinfo" {{{html-user-language-attributes}}}>
        {{!}}{{#data-icons}}{{>FooterList}}{{/data-icons}}
        {{!}}<div id="footer-list">
        {{#data-last-modified}}{{>LastModifiedLine}}{{/data-last-modified}}
        <div id="copyright">{{#data-copyright}}{{{html}}}{{/data-copyright}}</div>
        {{!}}{{#data-info}}{{>FooterList}}{{/data-info}}
        {{!}}{{#data-places}}{{>FooterList}}{{/data-places}}
        {{!}}</div>
</footer>
</syntaxhighlight>}}


== 其他 ==
== 其他 ==

2026年11月25日 (三) 09:24的版本

    1. 链接

修订历史 url + &action=history

    1. logo

页面结构

页头

页脚

根据 Mediawiki Manual:Footer 描述,可编辑 MediaWiki:Footer-tagline 插入页脚信息。

MediaWiki:Footer-tagline 编辑页脚

这里需要注意的是当使用 Example 皮肤时,因为其结构简略,并不具备 MediaWiki:Footer-tagline 模块,需要自行在

父级目录/mediawiki/skins/Example/templates
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles and
        to mitigate a VoiceOver bug. }}
<footer id="footer" class="mw-footer" role="contentinfo" {{{html-user-language-attributes}}}>
        {{!}}{{#data-icons}}{{>FooterList}}{{/data-icons}}
        {{!}}<div id="footer-list">
        {{#data-last-modified}}{{>LastModifiedLine}}{{/data-last-modified}}
        <div id="copyright">{{#data-copyright}}{{{html}}}{{/data-copyright}}</div>
        {{!}}{{#data-info}}{{>FooterList}}{{/data-info}}
        {{!}}{{#data-places}}{{>FooterList}}{{/data-places}}
        {{!}}</div>
</footer>

其他

此外还有一些其他可编辑的选项。

Lastmodifiedatby MediaWiki:Lastmodifiedatby
othercontribs MediaWiki:othercontribs
Copyright-footer MediaWiki:Copyright-footer
Privacy MediaWiki:Privacy 自定义链接显示的文本
Privacypage MediaWiki:Privacypage 自定义链接到哪个wiki页面
Aboutsite MediaWiki:Aboutsite 自定义链接显示的文本
Aboutpage MediaWiki:Aboutpage 自定义链接到哪个wiki页面
Disclaimers MediaWiki:Disclaimers 自定义链接显示的文本
Disclaimerpage MediaWiki:Disclaimerpage 自定义链接到哪个wiki页面

自定义

全局 CSS 自定义 MediaWiki:Common.css
全局 JS 自定义 MediaWiki:Common.js
Vector 皮肤 CSS 自定义 MediaWiki:Vector.css
Example 皮肤 CSS 自定义 MediaWiki:Example.css
外部图像白名单 MediaWiki:External_image_whitelist
tabs-tab-label MediaWiki:tabs-tab-label The default label for a tab. The $1 stands for the index of the tab.
tabs-toggle-open MediaWiki:tabs-toggle-open The default opening label for toggle boxes.
tabs-toggle-close MediaWiki:tabs-toggle-close The default closing label for toggle boxes.
tabs-dropdown-label MediaWiki:tabs-dropdown-label The default label for a dropdown menu.