Diferencia entre revisiones de «Plantilla:Row/image+artist»

De La Coppermind
Ir a la navegación Ir a la búsqueda
m (tweak no-value error to be a ? marker)
m (Restore changes by User:Sira overwritten by database update)
 
(No se muestran 3 ediciones intermedias de otro usuario)
Línea 2: Línea 2:
 
{| class="infobox side"
 
{| class="infobox side"
 
|-
 
|-
! colspan=2 class=title | A image row
+
! colspan=2 class=title | An image row
|-</noinclude>
 
 
|-
 
|-
 
</noinclude>
| colspan=2 style='text-align: center;' | [[File:{{{1}}}|{{{width|200px}}}]]<!--
 
  +
|-
 
| colspan=2 style='text-align: center;' | [[Archivo:{{{1}}}|{{{width|200px}}}]]<!--
  +
  +
ATTRIBUTION:
 
-->{{#if:{{{no-artist|}}}<!--
 
-->{{#if:{{{no-artist|}}}<!--
 
-->|<!--
 
-->|<!--
-->|<br><small>by <includeonly><page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=?}}" /></includeonly><noinclude>@artist</noinclude></small><!--
+
-->|<div class="attribution">por <includeonly><page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=?}}" /></includeonly><noinclude>@artist</noinclude></div><!--
 
-->}}
 
-->}}
 
|-
 
|-
<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).
   
  +
As this template is usually included within the parent {{t|infobox}} definition, those templates will have to support the passing of the arguments needed.
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 row in {{t|art}} like the {{{tracer}}}, pass an {{{attribute}}} argument to this template: {{t|{{PAGENAME}}|2=attribute=tracer}}. If the File page has no artist or {{{attribute}}} set, it will show {{t|missing artist}} warning. To hide the artist attribution, pass {{t|{{PAGENAME}}|2=no-artist=y}}. To change the row-width pass {{{width}}} (which defaults to 200px).
 
 
[[Category: Rows|image+artist]]
 

Revisión actual del 20:31 6 ene 2022

An image row
[[Archivo:{{{1}}}|200px]]
por @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.