Difference between revisions of "User:King of Herdaz/Gallery template"
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- |
<includeonly><!-- |
||
GALLERY HEADER:-->{{#tag gallery| caption="{{{caption|}}}" mode="packed" heights={{{heights|200px}}}px><!-- |
GALLERY HEADER:-->{{#tag gallery| caption="{{{caption|}}}" mode="packed" heights={{{heights|200px}}}px>|<!-- |
||
FIRST FILE:-->{{{1}}}<!-- |
FIRST FILE:-->{{{1}}}<!-- |
||
FIRST ARTIST:-->|by <page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=an unknown artist}}" /><!-- |
FIRST ARTIST:-->|by <page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=an unknown artist}}" /><!-- |
Latest revision as of 21:52, 30 May 2022
WIP of a template that automatically generates artist attributions in galleries like {{image}}
does.
<includeon/ly><!-- -->[[file:<!-- FILE: --> {{{1}}}<!-- STYLE:-->|thumb|{{{side|center}}}|{{#if:{{{height|}}}|x{{{height}}}|{{{width|100px}}}|}}<!-- -->|<!-- ARTIST: --><div class="attribution">by <page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=an unknown artist}}" /></div><!-- CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!-- LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!-- -->]]</inclu/deonly><noin/clude>