Template:Bearlist: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
</noinclude> |
</noinclude> |
||
<includeonly><div> |
<includeonly><div style="margins:auto;"> |
||
{{#if: {{{bear1|}}} | <span style="display: inline-block; vertical-align: text-top; padding:5px 5px 0px 5px; margin:7.5px; border:1px solid lightgrey; text-align:center;">[[File:{{{image1|}}}|125px|border|link={{{bear1|}}}]]<br><p style="max-width:125px"><small>[[{{{bear1|}}}]]</p></small></span> | }}<nowiki> |
{{#if: {{{bear1|}}} | <span style="display: inline-block; vertical-align: text-top; padding:5px 5px 0px 5px; margin:7.5px; border:1px solid lightgrey; text-align:center;">[[File:{{{image1|}}}|125px|border|link={{{bear1|}}}]]<br><p style="max-width:125px"><small>[[{{{bear1|}}}]]</p></small></span> | }}<nowiki> |
||
</nowiki>{{#if: {{{bear2|}}} | <span style="display: inline-block; vertical-align: text-top; padding:5px 5px 0px 5px; margin:7.5px; border:1px solid lightgrey; text-align:center;">[[File:{{{image2|}}}|125px|border|link={{{bear2|}}}]]<br><p style="max-width:125px"><small>[[{{{bear2|}}}]]</p></small></span> | }}<nowiki> |
</nowiki>{{#if: {{{bear2|}}} | <span style="display: inline-block; vertical-align: text-top; padding:5px 5px 0px 5px; margin:7.5px; border:1px solid lightgrey; text-align:center;">[[File:{{{image2|}}}|125px|border|link={{{bear2|}}}]]<br><p style="max-width:125px"><small>[[{{{bear2|}}}]]</p></small></span> | }}<nowiki> |
Revision as of 11:31, 14 December 2023
Usage
{{Bearlist |bear1=Example bear |image1=Example.jpg |bear2=Black Bear (1997) |image2=BlackBear(1997).png }}
gives
- Additional bears can be added by adding bear3/image3, bear4/image4, etc
- Designed for use as an image-based list, useful for pages that are just a list of bears with a given quality
- Images are inline and left-aligned, so should start at the left of the page and fill only as many bears per row as will fit in the screen
- Must include both the name and image for each bear to function correctly
- Template currently maxes out at 50 bears; should be expanded to at least 100
- Change notes: Set max width for text area, try justifying full area if possible, fiddle with margin