Template:Infobox Smasher: Difference between revisions

m
microdata fixes
(visually de-emphasizing aliases per talk page feedback, support for multiple sponsors, multiple crews, additional Microdata attributes)
m (microdata fixes)
Line 12: Line 12:
<link itemprop="mainEntityofPage" href="{{fullurl:File:{{{image}}}}}" />
<link itemprop="mainEntityofPage" href="{{fullurl:File:{{{image}}}}}" />
<link itemprop="contentUrl" href="{{filepath:{{{image}}}}}" />
<link itemprop="contentUrl" href="{{filepath:{{{image}}}}}" />
<div itemprop="thumbnail">[[File:{{{image}}}|160px|center|{{PAGENAME}}]]</div>
<link itemprop="thumbnailUrl" href="{{filepath:{{{image}}}|160}}" />[[File:{{{image}}}|160px|center|{{PAGENAME}}]]
{{#if:{{{caption|}}}|
{{#if:{{{caption|}}}|
<div itemprop="caption" style="margin-top:.6em;font-size: 85%;">{{{caption}}}</div>}}
<div itemprop="caption" style="margin-top:.6em;font-size: 85%;">{{{caption}}}</div>}}
Line 110: Line 110:
             <li style="margin:0" {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="sponsor" itemscope itemtype="http://schema.org/Organization"}}>
             <li style="margin:0" {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="sponsor" itemscope itemtype="http://schema.org/Organization"}}>
                 {{#ifeq:{{#sub:{{#var:s}}|0|2}}|&#91;&#91;|
                 {{#ifeq:{{#sub:{{#var:s}}|0|2}}|&#91;&#91;|
                     <link itemprop="mainEntityOfPage" href="{{fullurl:{{#var:s}}}}" />
                     <link itemprop="mainEntityOfPage" href="{{fullurl:{{#sub:{{#var:s}}|2|-2}}}}" />
                 }}
                 }}
                 <span itemprop="name">{{#var:s}}</span>
                 <span itemprop="name">{{#var:s}}</span>
Line 131: Line 131:
             <li style="margin:0" {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"}}>
             <li style="margin:0" {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"}}>
                 {{#ifeq:{{#sub:{{#var:c}}|0|2}}|&#91;&#91;|
                 {{#ifeq:{{#sub:{{#var:c}}|0|2}}|&#91;&#91;|
                     <link itemprop="mainEntityOfPage" href="{{fullurl:{{#var:c}}}}" />
                     <link itemprop="mainEntityOfPage" href="{{fullurl:{{#sub:{{#var:c}}|2|-2}}}}" />
                 }}
                 }}
                 <span itemprop="name">{{#var:c}}</span>
                 <span itemprop="name">{{#var:c}}</span>
703

edits