Difference between revisions of "User:King of Herdaz/Gallery template"
Jump to navigation
Jump to search
(getting this started) |
m |
||
Line 7: | Line 7: | ||
WIP of a template that automatically generates artist attributions in galleries like {{t|image}} does. |
WIP of a template that automatically generates artist attributions in galleries like {{t|image}} does. |
||
<nowiki>< |
<nowiki><includeon/ly><!-- |
||
-->[[file:<!-- |
-->[[file:<!-- |
||
FILE: --> {{{1}}}<!-- |
FILE: --> {{{1}}}<!-- |
||
Line 15: | Line 15: | ||
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!-- |
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!-- |
||
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!-- |
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!-- |
||
-->]]</ |
-->]]</inclu/deonly><noin/clude></nowiki> |
Revision as of 21:36, 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>