2022-10-31 00:09:50 +08:00
|
|
|
|
# Write
|
2019-04-02 13:05:43 +08:00
|
|
|
|
|
2022-11-18 19:05:03 +08:00
|
|
|
|
_A MediaWiki skin based on Bootstrap 4._
|
2019-05-13 19:44:58 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
![Write](assets/write.png)
|
2020-08-04 19:41:53 +08:00
|
|
|
|
|
2019-05-13 19:44:58 +08:00
|
|
|
|
## Installation
|
|
|
|
|
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- Download and place the file(s) in a directory called Write in your `skins/`
|
2020-08-04 19:34:39 +08:00
|
|
|
|
folder.
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- Add the following code at the bottom of your `LocalSettings.php`:
|
2019-05-13 19:44:58 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
wfLoadSkin( 'Write' );
|
2019-05-13 19:44:58 +08:00
|
|
|
|
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- Done - Navigate to `Special:Version` on your wiki to verify that the skin is
|
2020-08-04 19:34:39 +08:00
|
|
|
|
successfully installed.
|
2019-05-13 19:44:58 +08:00
|
|
|
|
|
|
|
|
|
## Customization
|
|
|
|
|
|
2019-07-12 04:37:02 +08:00
|
|
|
|
### Global settings
|
|
|
|
|
|
2020-07-28 19:33:59 +08:00
|
|
|
|
#### Theme color
|
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
It is possible to set the color theme by inserting `$wgWriteColor` to your
|
2020-08-04 19:34:39 +08:00
|
|
|
|
`LocalSettings.php`:
|
2019-07-11 04:51:30 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteColor = '#FF0000';
|
2022-11-27 15:25:14 +08:00
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
Possible values are either hex values of HTML colors, or named values as used
|
|
|
|
|
in CSS.
|
2019-07-11 04:51:30 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteColor = 'blue';
|
2022-11-27 15:25:14 +08:00
|
|
|
|
|
2022-10-31 18:28:11 +08:00
|
|
|
|
Default value is `#3366cc` as used in Qiuwen Baike.
|
2019-07-12 04:37:02 +08:00
|
|
|
|
|
2020-07-28 20:25:58 +08:00
|
|
|
|
#### Site logo
|
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
By default, the site logo is not shown at all. But if you want to show your
|
|
|
|
|
logo with this skin, you can place it:
|
2020-07-28 20:25:58 +08:00
|
|
|
|
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- in the upper main bar next to the site title,
|
|
|
|
|
- in the sidebar as usual in other skins like Monobook, Vector.
|
2020-07-28 20:25:58 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
You just have to set `$wgWriteShowLogo` in your `LocalSettings.php`:
|
2020-07-28 20:25:58 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteShowLogo = 'main'; // for a small logo (28×28 px) in the main bar
|
|
|
|
|
$wgWriteShowLogo = 'sidebar'; // for big logo in the sidebar
|
2020-07-28 20:25:58 +08:00
|
|
|
|
|
|
|
|
|
But don't forget to set the logo path at `$wgLogo`!
|
|
|
|
|
|
|
|
|
|
The default value is `'none'`.
|
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
Additionaly, if you have `$wgWriteShowLogo = 'main';`, you can specify these:
|
2022-11-27 15:25:14 +08:00
|
|
|
|
|
2020-09-07 18:06:30 +08:00
|
|
|
|
// use only logo without text (i.e. without site name)
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteUseLogoWithoutText = true;
|
2020-09-07 18:06:30 +08:00
|
|
|
|
|
2020-07-28 19:33:59 +08:00
|
|
|
|
#### Responsive skin
|
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
Note that this skin is responsive by default, i.e. it fits the screen both on
|
2022-08-28 16:11:55 +08:00
|
|
|
|
desktops and on mobile screens. If you need unresponsive design, just set in
|
2020-08-04 19:34:39 +08:00
|
|
|
|
`LocalSettings.php`:
|
2019-07-12 04:37:02 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteResponsive = false;
|
2020-07-28 19:33:59 +08:00
|
|
|
|
|
|
|
|
|
#### Content width
|
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
You can set the content width with `$wgWriteContentWidth`, which has four
|
2021-03-13 17:19:51 +08:00
|
|
|
|
options:
|
|
|
|
|
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- `default`
|
|
|
|
|
- `full`
|
|
|
|
|
- `narrow`
|
|
|
|
|
- `wide`
|
2021-03-13 17:19:51 +08:00
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
At large screens, the main content container (with articles, texts, etc.) is
|
|
|
|
|
9/12 of the screen width and sidebar menu takes 2/12 of the screen width. It
|
|
|
|
|
means that 1/12 of the screen width on the right side remains white. This is
|
|
|
|
|
the default and looks good.
|
2020-07-28 19:33:59 +08:00
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
But there can be cases when you need your wiki to extend to the full width of
|
2022-10-31 00:09:50 +08:00
|
|
|
|
the screen even on the large screens. Then you can use `$wgWriteContentWidth`
|
2020-08-04 19:34:39 +08:00
|
|
|
|
variable in your `LocalSettings.php` and set that to `full`:
|
2020-07-28 19:33:59 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteContentWidth = 'full';
|
2020-07-28 19:33:59 +08:00
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
Then the main content container will take 10/12 of the screen width (and 2/12
|
|
|
|
|
remain for the sidebar menu).
|
2020-07-28 19:33:59 +08:00
|
|
|
|
|
2021-03-12 04:01:29 +08:00
|
|
|
|
If you want a narrow main content (i.e. 8/12 for the main content, 2/12 for
|
|
|
|
|
the sidebar on the left and 2/12 for the white space on the right), use
|
|
|
|
|
`narrow`:
|
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteContentWidth = 'narrow';
|
2021-03-12 04:01:29 +08:00
|
|
|
|
|
2021-03-13 17:19:51 +08:00
|
|
|
|
If you need a wide main content with a narrow left sidebar, use `wide`. Then
|
|
|
|
|
the sidebar will be 1/12 and the main content 10/12:
|
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
$wgWriteContentWidth = 'wide';
|
2021-03-13 17:19:51 +08:00
|
|
|
|
|
2019-07-12 04:37:02 +08:00
|
|
|
|
### User settings
|
|
|
|
|
|
2020-07-28 20:25:58 +08:00
|
|
|
|
#### Basic font size
|
|
|
|
|
|
2020-08-04 19:34:39 +08:00
|
|
|
|
Every user is able to change the default font size in their user settings. It's
|
|
|
|
|
found in `Special:Preferences` under the skin preferences.
|
|
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
You can contribute to the git repository:
|
2020-08-04 19:34:39 +08:00
|
|
|
|
|
2022-10-31 00:09:50 +08:00
|
|
|
|
https://git.qiuwen.wiki/qiuwen/Write
|
2020-08-04 19:34:39 +08:00
|
|
|
|
|
2019-04-02 13:05:43 +08:00
|
|
|
|
## License
|
|
|
|
|
|
2022-11-27 15:25:14 +08:00
|
|
|
|
Originally created at 1st Faculty of Medicine, Charles University and maintained
|
2022-10-31 00:09:50 +08:00
|
|
|
|
by Petr Kajzar, 2019–2022.
|
|
|
|
|
|
|
|
|
|
Modified by Qiuwen Baike Contributors, since 2022.
|
2019-04-02 13:05:43 +08:00
|
|
|
|
|
2019-05-13 19:44:58 +08:00
|
|
|
|
This skin is:
|
|
|
|
|
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- based on [Skin:Example](https://www.mediawiki.org/wiki/Skin:Example)
|
2020-08-04 19:34:39 +08:00
|
|
|
|
(provided under CC0 license),
|
2023-03-04 12:16:28 +08:00
|
|
|
|
- using [Bootstrap](https://getbootstrap.com/) v4.6.0 (provided under MIT license),
|
|
|
|
|
- using [popper.js](https://popper.js.org/) v1.16.1 (provided under MIT license),
|
|
|
|
|
- created for [WikiSkripta](https://www.wikiskripta.eu) medical wiki,
|
|
|
|
|
- and released under Creative Commons Zero v1.0 Universal license.
|
2019-05-13 19:44:58 +08:00
|
|
|
|
|
2021-08-22 05:23:09 +08:00
|
|
|
|
This software is distributed without any warranty.
|
2020-08-04 19:34:39 +08:00
|
|
|
|
|
2020-08-04 19:41:53 +08:00
|
|
|
|
For additional info please refer to the [COPYING file](COPYING).
|