Modèle:Vote/Init : Différence entre versions

De Wiki @ Brest

 
(23 révisions intermédiaires par le même utilisateur non affichées)
Ligne 2 : Ligne 2 :
 
<html>
 
<html>
 
<style>
 
<style>
span.autoedit-trigger {color:red;}
+
.voting a{color:none;font-size:0px;}
span:hover.autoedit-trigger {color:blue;}
+
span.autoedit-trigger {color:blue;}
 +
span:hover.autoedit-trigger {color:green;}
 
</style>
 
</style>
 
</html>
 
</html>
 
== {{BASEPAGENAME}}  ==
 
== {{BASEPAGENAME}}  ==
Cette image a recueillit '''[[Has number of votes::{{#show: Public:{{BASEPAGENAME}} | ?Has number of votes}}]]''' votes.
+
{{#if: {{#ask:[[is new::{{BASEPAGENAME}}]]}} | [[is new item::vrai| ]]}}
 +
* Cette image a recueilli '''[[Has number of votes::{{#show: Public:{{BASEPAGENAME}} | ?Has number of votes}}]]''' vote(s).
 +
* <html><a href="##" onClick="window.history.back();">Retour au vote</a></html>
  
{{#autoedit:form=Vote/Start
+
[[Image:{{BASEPAGENAME}}|550px|center]]
  | target=Public:{{BASEPAGENAME}}
+
<div class='voting'>[[voting for item::{{BASEPAGENAME}}|]][[public vote::Public:{{BASEPAGENAME}}]]</div>
  | link text=Voter pour cette photo
+
  | query string=Vote/Start[votes]={{#expr:{{#show:Public:{{BASEPAGENAME}}|?Has number of votes}} + 1}}
+
  | reload
+
}}
+
 
+
[[Image:{{BASEPAGENAME}}|500px|center]]
+
[[voting for item::{{BASEPAGENAME}}|]][[public vote::Public:{{BASEPAGENAME}}|]]<br/>
+
 
[[Category:Vote]]
 
[[Category:Vote]]
 
</includeonly>
 
</includeonly>

Version actuelle en date du 30 juillet 2013 à 12:05