Topic on Skin talk:Chameleon

MAzZYBiG (talkcontribs)

Hi all!

Please help me to change printable output in Chameleon skin.

I want to remove:

1) urls nearby images

2) pencil icon at the bottom of any page


Can't find this code.

Thank you

F.trott (talkcontribs)
MAzZYBiG (talkcontribs)

Can you say me where is this code? Exact files.

Thank you

F.trott (talkcontribs)

MediaWiki:Common.css is a page on the wiki. E.g. on MW.org it would be MediaWiki:Common.css. Additional style files you can put where ever you want on the server. The style files of Chameleon are in .../skins/chameleon/resources/styles. You should never change them directly.

MAzZYBiG (talkcontribs)

Thank you but I know about css.

Now I want to find out what php files generates this code.

F.trott (talkcontribs)

Styles are registered in chameleon/src/Hooks/SetupAfterCache.php

The generation of CSS is then handled by the Bootstrap extension. Registration of style modules is handled by Bootstrap/src/BootstrapManager.php, generation of the css is done by Bootstrap/src/ResourceLoaderBootstrapModule.php, starting from the getStyles() method.

MAzZYBiG (talkcontribs)

Please forget about styles and css.

I want to know how print page builds. It there any files responsible for that?

F.trott (talkcontribs)

There is no special PHP code for printing, just different styling. Chameleon defines print-specific styles in skins/chameleon/resources/styles/print.less, Bootstrap is defining some more styles in extensions/Bootstrap/resources/bootstrap/less/print.less. Finally and most importantly, MediaWiki itself is defining styles. Have a look at resources/Resources.php and search for modules defined for 'media' => 'print'.

MAzZYBiG (talkcontribs)

Ok

Thank you very much!

Reply to "Change print template"