Difference between revisions of "Meta:Microformats"

From protonation
Jump to navigation Jump to search
(Νέα σελίδα με 'This wiki supports Microformats. ==Movie reviews== *Template:My review ==Validate== *[https://developers.google.com/structured-data/testing-tool/ Google Testing T...')
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
This wiki supports Microformats.
 
This wiki supports Microformats.
 +
 +
{{under construction}}
 +
 +
*[[Templates with microformats]]
  
 
==Movie reviews==
 
==Movie reviews==
*[[Template:My review]]
+
*[[microformats:hreview#Movie_Review]]
 +
 
 +
 
 +
*[[Template:My review]]:
 +
<syntaxhighlight lang="html">
 +
<div class="hreview" itemprop="review" itemscope="" itemtype="http://schema.org/Review">
 +
<div class="review_quote">
 +
  <div class="media">
 +
  <div class="pull-left" itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating"> <span class="media-img icon small rotten"></span> 
 +
  </div>
 +
  <div class="hidden-div">
 +
    <div class="item">
 +
    <div lang="en" class="url fn">[[{{PAGENAME}}]]
 +
    </div>
 +
    </div>
 +
    <div class="rating">
 +
    <div class="value">{{#show: {{PAGENAME}} | ? Has my rating }}
 +
    </div>
 +
    <div class="best">10
 +
    </div>
 +
    <div class="worst">0
 +
    </div>
 +
    </div>
 +
  </div>
 +
  <div class="media-body description">{{{1}}}
 +
    <div class="pull-right smaller"> 
 +
    </div>
 +
  </div>
 +
  </div>
 +
</div>
 +
<div class="review_source media">
 +
  <div class="pull-left">[[File:Ioannis Protonotarios avatar.jpg|64px]]
 +
  </div>
 +
  <div class="media-body reviewer vcard">
 +
  <div itemprop="author" class="url fn">[[Ioannis Protonotarios]]
 +
  </div> <div itemprop="sourceOrganization" class="subtle small"><small>MyMDb</small></div>
 +
  </div>
 +
</div>
 +
</div>
 +
</syntaxhighlight>
 +
 
 +
 
 +
[https://search.google.com/structured-data/testing-tool#url=http%3A%2F%2Fmeta.protonotarios.eu%2Fwiki%2Findex.php%3Ftitle%3DThe_Lord_of_the_Rings%3A_The_Fellowship_of_the_Ring Google structured data tool result] for [[The Lord of the Rings: The Fellowship of the Ring]]:
 +
*'''hreview'''
 +
**'''@type''' hreview
 +
**'''item''' The Lord of the Rings: The Fellowship of the Ring
 +
**'''description''' The best book adaptation ever!
 +
**'''reviewer'''
 +
***'''@type''' hcard
 +
***'''fn''' Ioannis Protonotarios
 +
***'''url''' Ioannis Protonotarios
 +
**'''rating'''
 +
***'''@type''' complex-rating
 +
***'''worst''' 0
 +
***'''value''' 10
 +
***'''best''' 10
 +
 
 +
 
 +
==Test pages==
 +
*[[Movie review microformats test]]
 +
*<del>[[Movie review microformats2 test]]</del>
 +
*[[Movie aggregate review microformats test]]
 +
 
 +
==Geo==
 +
*[[Template:Location]] Needs to redesign this to get latitude and longitude separately and then pass it to microformats
 +
*[[microformats:geo]]
  
 
==Validate==
 
==Validate==

Latest revision as of 01:01, 9 January 2017

This wiki supports Microformats.

VLC.svg Under construction

This page is under construction.


Movie reviews


<div class="hreview" itemprop="review" itemscope="" itemtype="http://schema.org/Review">
 <div class="review_quote">
  <div class="media">
   <div class="pull-left" itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating"> <span class="media-img icon small rotten"></span>  
   </div>
   <div class="hidden-div">
    <div class="item">
     <div lang="en" class="url fn">[[{{PAGENAME}}]]
     </div>
    </div>
    <div class="rating">
     <div class="value">{{#show: {{PAGENAME}} | ? Has my rating }}
     </div>
     <div class="best">10
     </div>
     <div class="worst">0
     </div>
    </div>
   </div>
   <div class="media-body description">{{{1}}} 
    <div class="pull-right smaller">  
    </div>
   </div>
  </div>
 </div>
 <div class="review_source media">
  <div class="pull-left">[[File:Ioannis Protonotarios avatar.jpg|64px]]
  </div>
  <div class="media-body reviewer vcard">
   <div itemprop="author" class="url fn">[[Ioannis Protonotarios]]
   </div> <div itemprop="sourceOrganization" class="subtle small"><small>MyMDb</small></div>
  </div>
 </div>
</div>


Google structured data tool result for The Lord of the Rings: The Fellowship of the Ring:

  • hreview
    • @type hreview
    • item The Lord of the Rings: The Fellowship of the Ring
    • description The best book adaptation ever!
    • reviewer
      • @type hcard
      • fn Ioannis Protonotarios
      • url Ioannis Protonotarios
    • rating
      • @type complex-rating
      • worst 0
      • value 10
      • best 10


Test pages

Geo

Validate