Dotta's Mediawiki Tips

From wizzypedia
Revision as of 13:51, 6 July 2022 by Dotta (talk | contribs) (Created page with "= Templates = * Read the documentation on templates: [https://www.mediawiki.org/wiki/Help:Templates Help:Templates] === CSS For Templates === Look at how elegant this <pre>Image<pre> template is on Mediawiki [https://www.mediawiki.org/w/index.php?title=Template:Image&action=edit Template:Image on Mediawiki]. They also load custom CSS just for this template, which is handy. === Dynamic Gallery === If you want to have a dynamic gallery, you can't use the typical <pre>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Templates

CSS For Templates

Look at how elegant this

Image<pre> template is on Mediawiki [https://www.mediawiki.org/w/index.php?title=Template:Image&action=edit Template:Image on Mediawiki]. They also load custom CSS just for this template, which is handy.

=== Dynamic Gallery ===

If you want to have a dynamic gallery, you can't use the typical <pre>gallery

tag, you have to do it like this:

{{#tag:gallery|
{{Test/Dotta/GalleryItem}}
|mode=packed-hover|caption=foo|
}}

More generically, this is the syntax for using tags with the parser functions src