Difference between revisions of "Template:Row/image+artist"

From The Coppermind
Jump to navigation Jump to search
m (tweak the docs a little)
m (tweak)
Line 11: Line 11:
 
-->}}
 
-->}}
 
|-
 
|-
<noinclude>
+
<noinclude>[[category: rows|{{SUBPAGENAME}}]]
 
|}
 
|}
 
 
This template should be used on {{t|infobox}} templates, to include a infobox-spanning image row. It also includes a subheading to attribute the art to the creator by pulling from the {{t|art|2=artist=}} property on the File page. To attribute to a different attribution property like the <code>|tracer=</code>, pass an <code>|attribute=</code> argument to this template: <code>|attribute=tracer</code>. If the File page has no artist or <code>|attribute=</code> set, it will show {{t|missing artist}} warning. To hide the artist attribution, pass <code>|no-artist=y</code>. To change the row-width pass <code>|width=</code> (which defaults to 200px).
 
This template should be used on {{t|infobox}} templates, to include a infobox-spanning image row. It also includes a subheading to attribute the art to the creator by pulling from the {{t|art|2=artist=}} property on the File page. To attribute to a different attribution property like the <code>|tracer=</code>, pass an <code>|attribute=</code> argument to this template: <code>|attribute=tracer</code>. If the File page has no artist or <code>|attribute=</code> set, it will show {{t|missing artist}} warning. To hide the artist attribution, pass <code>|no-artist=y</code>. To change the row-width pass <code>|width=</code> (which defaults to 200px).
   
As this template is usually included within the parent {{t|infobox}} definition, it may not be possible to pass in some of the attributes without
+
As this template is usually included within the parent {{t|infobox}} definition, those templates will have to support the passing of the arguments needed.
 
[[category: rows|image+artist]]
 

Revision as of 20:42, 24 April 2020

A image row
[[File:{{{1}}}|200px]]
by @artist

This template should be used on {{infobox}} templates, to include a infobox-spanning image row. It also includes a subheading to attribute the art to the creator by pulling from the {{art|artist=}} property on the File page. To attribute to a different attribution property like the |tracer=, pass an |attribute= argument to this template: |attribute=tracer. If the File page has no artist or |attribute= set, it will show {{missing artist}} warning. To hide the artist attribution, pass |no-artist=y. To change the row-width pass |width= (which defaults to 200px).

As this template is usually included within the parent {{infobox}} definition, those templates will have to support the passing of the arguments needed.