openSUSE / wiki

openSUSE Wiki
http://en.opensuse.org
25 stars 17 forks source link

Chameleon skin does not define "shell" CSS class #36

Closed Qantas94Heavy closed 5 years ago

Qantas94Heavy commented 5 years ago

There are some pages that use Template:Shell, but no formatting is applied as there is no shell CSS class in the Chameleon skin.

Should we add this back, or just replace them with <pre>, <code>or something like that?

guoyunhe commented 5 years ago

I have updated the template image

guoyunhe commented 5 years ago

@Qantas94Heavy Can you confirm if the issue has been solved? If so, we can close this issue. Otherwise, we can continue debug. Thanks!

Qantas94Heavy commented 5 years ago

Mostly resolved :+1: Only slight issue is that MediaWiki link formatting in {{Shell}} has no effect, i.e.:

{{Shell|[https://build.opensuse.org/package/show/openSUSE%3ATools/osc-plugin-install osc-plugin-install] devel:tools rpmdevtools}}

gets rendered as

[https://build.opensuse.org/package/show/openSUSE%3ATools/osc-plugin-install osc-plugin-install] devel:tools rpmdevtools
guoyunhe commented 5 years ago

This is because MediaWiki doesn't render any wiki code in <pre> tags. For your use case, you can move the link out of the shell block.

[https://build.opensuse.org/package/show/openSUSE%3ATools/osc-plugin-install Download osc-plugin-install]

{{Shell| osc-plugin-install devel:tools rpmdevtools}}
guoyunhe commented 5 years ago

@Qantas94Heavy I updated the template and some css. You should be able to add link in Shell template now. Remember to clean up browser cache.

Qantas94Heavy commented 5 years ago

Thanks for that! I think we can close this now.