Skin:Cosmos/zh

Cosmos is a skin designed and based off Fandom's Oasis skin. Designed to improve upon their design, and provide an efficient MediaWiki skin for non-Fandom users, or for users transitioning out of Fandom. If you would like to learn how to contribute, please read our guide.

-{zh-hans:配置; zh-hant:組態;}-
These settings will apply when Cosmos is the active skin.


 * Associative arrays

SocialProfile
These configuration settings require SocialProfile to be installed in order to use them.

PortableInfobox
These configuration settings require PortableInfobox to be installed in order to use them.

-{zh-hans:界面; zh-hant:介面;}-

 * MediaWiki&#58;Cosmos-tagline
 * Modifies the sitename text in the wiki header. Defaults to the value of MediaWiki:Sitename.


 * MediaWiki&#58;Cosmos-navigation
 * Modifies the site navigation for this skin; defaults to MediaWiki:Sidebar, although it is recommended to copy MediaWiki:Sidebar to MediaWiki:Cosmos-navigation and follow the Cosmos navigation format for the best results. This navigation can be up to 3 levels deep, and allows a few variables to be used:

The navigation should be in the format of:
 * (alternatively, )  will display a link to Special:NewVideos only when the Video extension is enabled.
 * (alternatively, ) will display a link to Special:WantedPages only when the Video extension is not enabled.
 * will display a link to Special:WantedPages regardless of if the Video extension is enabled or not.
 * Community
 * mainpage|mainpage-description
 * recentchanges-url|recentchanges
 * portal-url|portal
 * link|Tab title/level one
 * Level 2 tab title
 * Level 3 content 1

{$NEWVIDEOS_CONDITIONAL} {$WANTEDPAGES_CONDITIONAL}
 * cosmos-explore
 * recentchanges-url|recentchanges
 * randompage-url|randompage
 * Special:NewFiles|cosmos-newfiles

and, defaults to:

{$NEWVIDEOS_CONDITIONAL} {$WANTEDPAGES_CONDITIONAL}
 * cosmos-explore
 * recentchanges-url|recentchanges
 * randompage-url|randompage
 * Special:NewFiles|cosmos-newfiles

Parser functions
Cosmos provides a couple parser functions:


 * Description: Allows to add additional body class to particular pages to allow for further per-page customisation with CSS. Available as of version 6.2.0.
 * Usage:
 * Description: provides a magic word to hide the rail on particular pages. Available as of version 6.0.0.
 * Usage: Put  at the top of the page you want to hide the rail on.
 * Description: provides a magic word to hide the rail on particular pages. Available as of version 6.0.0.
 * Usage: Put  at the top of the page you want to hide the rail on.

注釋

 * On large wikis, it is recommended to set either or  (both available since version 6.2.0), otherwise it can have significant performance impact.
 * As of version 6.2.0, MediaWiki:Cosmos-navigation is cached to provide performance improvements and not fetch this on every page load. This cache is reset when any interface message is updated.
 * As of version 5.0.0 Cosmos has a special page, Special:ThemeDesigner, that allows some theme-related Cosmos configs be modified on-wiki. It also comes with the themdesigner right, which is given to sysops by default and is required in order to enter Special:ThemeDesigner. This is a highly experimental feature.
 * As of version 4.0.0, Cosmos supports MediaWiki 1.36.
 * Cosmos uses the Special:Statistics article count, therefore setting Manual:$wgArticleCountMethod and afterwards running maintenance/UpdateArticleCount.php will make that counter use all content pages.
 * Counter will not display at all if user does not have the  userright.
 * An "Admin Dashboard" icon will appear if the extension is enabled and you have the needed right (adminlinks).
 * Links to Special:AddVideo will appear if the Video extension is enabled and you have the needed right (addvideo).
 * Cosmos uses cookies for the sitenotice by default. If the DismissableSiteNotice extension is enabled, then Cosmos will convert to that extension instead.
 * Cosmos supports Echo notifications. If the Echo extension is enabled and the user is logged in then Cosmos will display notification icons next to the personal tools menu.
 * Cosmos has a create article method to easily create articles through a popup.
 * Will not appear if user does not have both the  and   rights.
 * Cosmos supports the mobile responsiveness preference provided by MediaWiki core.
 * Cosmos is tested and works with VisualEditor.
 * There are body classes for the main page, whether a user is logged in or not, and whether is set to a light or dark theme (  or   classes).

Planned features

 * All the formerly planned features have now been implemented. If you wish to request a feature, please do so on the talk page of this skin.