Wikimedia-AU / MediaWiki-skin

This repo has moved to Gerrit.
https://gerrit.wikimedia.org/r/q/project:mediawiki/skins/WMAU
2 stars 1 forks source link

Add story tile feature (image, title, desc. etc.) #5

Open samwilson opened 3 years ago

samwilson commented 3 years ago

Building on https://wikimedia.org.au/wiki/Stories

Should be able to be in multiples of e.g. ⅓, ¼ of the page.

samwilson commented 3 years ago

The idea here is to have something like Bootstrap's card: https://getbootstrap.com/docs/5.0/components/card/#example

I wonder if this should actually be done in a separate extension, e.g. a parser function like:

{{#card:
| link = Foo
| image = Foo.jpg
| title = Foo
| body = Lorem ipsum.
}}

Which would output something like:

<div class="card" >
    <a href="/Foo">
        <img src="/images/Foo.jpg" width="300" />
        <span class="card-title">Foo</span>
        <span class="card-body">Lorem ipsum.</span> 
    </a>
</div>

The key point being that the whole card is a link.