De Wiki @ Brest
Ligne 33 : | Ligne 33 : | ||
} | } | ||
}}<includeonly>{{#ifeq: {{{file}}} | Oui | }}<includeonly>{{#ifeq: {{{file}}} | Oui | ||
− | | <div style="float:left;"> | + | | <div style="float:left;border: 1px dotted black;">{{#autoedit:form=Vote |
+ | | target=Vote/{{{element}}} | ||
+ | | link text=<span style="color:#80BFFF">Voter pour cette photo</span> | ||
+ | | query string= | ||
+ | Vote[votes]={{#expr:{{#show:Vote/{{{element}}}|?Has number of votes}} + 1}} | ||
+ | | summary=Adding vote {{#expr:{{#show:Vote/{{{element}}}|?Has number of votes}} + 1}}. | ||
+ | }} | ||
+ | {{#expr:{{#show:Vote/{{{element}}}|?Has number of votes}} + 1}}<div class="img-crop ratio-4-to-3">[[Image:{{{element|}}}|160px|link={{{element}}}]]</div></div> | ||
| * [[Liste/{{PAGENAME}}::{{{element|}}}]] | | * [[Liste/{{PAGENAME}}::{{{element|}}}]] | ||
}}[[Catégorie:Bazar/Listes]]</includeonly><noinclude>[[Catégorie:Bazar/Modèles]]{{Modèle:BazarDoc}}</noinclude> | }}[[Catégorie:Bazar/Listes]]</includeonly><noinclude>[[Catégorie:Bazar/Modèles]]{{Modèle:BazarDoc}}</noinclude> |
Version du 11 juillet 2013 à 14:58
{{#css: .img-crop, .img-crop img{ width: 150px; /* gotta be responsive these days */ } .img-crop{ border-color: 1px dotted #ededed; /* some background color for short images */ overflow: hidden; width:160px; height:110px; margin:16px; padding:0; } .img-crop:before, .img-crop img{ /* vertically center the image */ display: inline-block; vertical-align: middle; horizontal-align: middle; } .img-crop:before{ /* pseudo element to vertically align image to */ content: "";
/* Magic Number */ /* Set this to your desired height(to width) ratio */ padding-top: 75%; /* % of original image width */ } .img-crop img{ /* removes(sorta) image from the flow */ padding-left: 100%; margin: -999em -100%; } }}
| ||||
|
[edit] Description: Arguments:
Usage: |