« Modèle:ImageLabel » : différence entre les versions

De Inkipédia
Aller à la navigation Aller à la recherche
m (1 révision importée : http://splatoonwiki.org/wiki/Luna_Blaster_Neo)
Aucun résumé des modifications
 
Ligne 1 : Ligne 1 :
<includeonly><div style="display: inline-block; text-align: {{#if:{{{align|}}}|{{{align}}}|left}};{{#if:{{{width|}}}| width: {{{width}}};|}}">[[File:{{{1}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}{{#if:{{{link|}}}|{{!}}link={{{link}}}{{!}}{{{title|link}}}}}{{!}}left]] {{#if:{{{text|}}}|{{{text}}}|{{{2}}}}}</div></includeonly><noinclude>Provides a quick and easy way to manage text decorated with an image with varying size, alignment and link characteristics.
<includeonly><div style="display: inline-block; text-align: {{#if:{{{align|}}}|{{{align}}}|left}};{{#if:{{{width|}}}| width: {{{width}}};|}}">[[File:{{{1}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}{{#if:{{{link|}}}|{{!}}link={{{link}}}{{!}}{{{title|link}}}}}{{!}}right]] {{#if:{{{text|}}}|{{{text}}}|{{{2}}}}}</div></includeonly><noinclude>Provides a quick and easy way to manage text decorated with an image with varying size, alignment and link characteristics.


Usage:
Usage:

Dernière version du 18 juin 2016 à 22:23

Provides a quick and easy way to manage text decorated with an image with varying size, alignment and link characteristics.

Usage:

{{ImageLabel|image|text}}

Required Parameters:

  • image - The filename of the image to display

Optional Parameters:

  • text - If present, the text to display next to the image (blank if not present)
  • size= If present, the MediaWiki size parameter for the image.
  • link= If present, the link target of the image.
  • title= If present, the mouseover title of the image. If not present, the value of link (if any) is used.
  • align= If present, the alignment of the text.
  • width= If present, the CSS width value for the entire label.