Wikimodule Component

NOTICE:

This is a component page used internally by the SCP Wiki. It is intended to be used and included on other pages.

rating: +36+x

Hi, I'm RounderhouseRounderhouse and this is a component you can plug in at the bottom of your articles (but above the Wikiwalk footer and Licensebox). It will display 15 SCPs and 15 tales randomly pulled from your body of work, as well as your author page and art pages should you have them. The design of it is modelled after Wikipedia/MediaWiki's collections module, which is available with the rest of Wikipedia's design and layout under CC BY SA 3.0. This component was designed with BHL design philosophies and aesthetics in mind, but it works perfectly fine on base Sigma-9. Double credit to smltsmlt for helping me with troubleshooting some issues!


How to Include:

Stick the appropriate include onto the bottom of your page, above the licensebox and wikiwalk footers. That's mandatory. I suggest you put it below anything else you may have at the bottom, such as footnote blocks. That's just my advice.


Clean Version:

[[include component:wikimodule |normal= --]]]


Rating Version:

[[include component:wikimodule |ratings= --]]]


How to Customize for Themes

This module uses three variables, that you can set to your liking to customize the appearance of the module. Be sure to put the CSS module for these after the module include.

root: {
--wm-bg: /* Accepts an RGB value; determines the background color of the module (white by default) */;
--wm-border: /* Accepts an RGB value; determines the border color of the module (black by default) */;
--wm-accent: /* Accepts an RGB value; determines the accent color of the module (red by default) */;
}

FAQ

Q: Will it work on collabs?

A: No, it will only show the pages for the person who actually created the page that it's on.

Q: Can it show my ratings?

A: There is both a clean and a rating version. You can use either.

Q: Will it work with themes?

A: It depends. The colors are variables, so it really just depends on how the creator of the theme decides to color their variables. I haven't tested it any, so go figure. If it's ugly on a theme, you can always restyle it to the best of your abilities.

Q: Will it work on other sites?

A: This module, and any that uses Listpages to automatically grab articles, will only display pages from the site that the module is on. i.e you can use it on a sandbox, but it will only display your sandbox pages tagged 'scp' and 'tale' - so probably none. Also, to use on other sites, you will have to prepend ':scp-wiki:` `to component:wikimodule`.

Q: I just refreshed my page, why are the articles still the same?

A: The cache takes 60 seconds between refreshes to reset. Give it a minute.

Q: ROUNDERHOUSE, why are you so cool?

A: It's genetic.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License