Project:Dirty Wiki Tricks: Difference between revisions

From Drive: The SciFi Comic
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 14: Line 14:
*'''Requirements:''' Admin rights for MediaWiki namespace, CSS knowledge for coding.
*'''Requirements:''' Admin rights for MediaWiki namespace, CSS knowledge for coding.
==External link icons==
==External link icons==
*'''Description:''' Added icons to the [http://drivecomic.com drivecomic.com], [http://sheldoncomics.com sheldoncomics.com] and [http://patreon.com patreon.com] domains by using <code>[href*=""]</code> as a CSS attribute selector on [[MediaWiki:Common.css]].
*'''Description:''' Added icons to the [http://drivecomic.com drivecomic.com], [http://sheldoncomics.com sheldoncomics.com], [http://patreon.com patreon.com], and [http://gocomics.com gocomics.com] domains by using <code>[href*=""]</code> as a CSS attribute selector on [[MediaWiki:Common.css]].
*'''Reason:''' The [http://explainxkcd explainxkcd wiki] looks rad with custom external link icons.
*'''Reason:''' The [http://explainxkcd explainxkcd wiki] looks rad with custom external link icons.
*'''Requirements:''' Admin rights for MediaWiki namespace, CSS knowledge for coding.
*'''Requirements:''' Admin rights for MediaWiki namespace, CSS knowledge for coding.


[[Category:Overview]]
[[Category:Overview]]

Revision as of 08:46, 15 February 2018

This page is made to document "hacks" and tricks to utilise the wiki in ways that are not necessarily obvious to the average editor. This might be important for users from other wikis as well as for users from this wiki, to better understand the inner workings, especially considering that most of this was done to circumvent actions that would require sysop access.

Allowing external images

  • Description: Added the drivecomic.com domain to MediaWiki:External image whitelist.
  • Reason: Adding comic pages is great for this wiki, including images only from the drivecomic.com domain is more than enough. The alternative would have been to make changes to $wgAllowExternalImagesFrom, which requires sysop access.
  • Requirements: Admin rights as well as reading up the right formatting on MediaWiki.

If and ifeq parsers

  • Description: Added templates from http://bluwiki.com/go/Category:Advanced_templates by copying and pasting without taking the time and effort to understand it.
  • Reason: Parsers are usually part of extensions, which require sysop access. These templates work! Their formatting is a bit different, but that's no issue at all unless you want to import templates from other wikis.
  • Requirements: Basic knowledge about templates.

Mobile site

  • Description: Used the @media screen property in CSS to create a different style for narrow screens on MediaWiki:Common.css.
  • Reason: Skins and extensions require sysop access. And the font on the wiki as well as some other elements are not optimal for mobile viewing.
  • Requirements: Admin rights for MediaWiki namespace, CSS knowledge for coding.

External link icons