703
edits
Rigel Kent (talk | contribs) (temporary handler for blank alias) |
Rigel Kent (talk | contribs) (visually de-emphasizing aliases per talk page feedback, support for multiple sponsors, multiple crews, additional Microdata attributes) |
||
Line 1: | Line 1: | ||
<noinclude>{{Infobox Smasher/doc}}</noinclude><includeonly><div role="complementary" aria-label="Infobox" class="infobox" style="box-sizing:border-box;width: 21em;font-size:90%;text-align:center" {{#ifeq:{{NAMESPACE}}|Smasher|itemscope itemtype="http://schema.org/Person"}}> | <noinclude>{{Infobox Smasher/doc}}</noinclude><includeonly><div role="complementary" aria-label="Infobox" class="infobox" style="box-sizing:border-box;width: 21em;font-size:90%;text-align:center" {{#ifeq:{{NAMESPACE}}|Smasher|itemscope itemtype="http://schema.org/Person"}}> | ||
<div style="margin:.3em; background-color: #eee | <div style="margin:.3em; background-color: #eee; font-weight:bold"><!-- | ||
-->< | --><div style="font-size:130%;" {{#ifeq:{{{name|{{PAGENAME}}}}}|{{{realname}}}||itemprop="{{#if:{{{realname|}}}|alternateName|name}}"}}><!-- | ||
-->{{{name|{{PAGENAME}}}}}<!-- | -->{{{name|{{PAGENAME}}}}}<!-- | ||
--></ | --></div><!-- | ||
-->{{#forargs:alias| | -->{{#forargs:alias|i|a| | ||
{{#if:{{{alias{{#var: | {{#if:{{{alias{{#var:i}}|}}}| "<i itemprop="alternateName">{{#var:a}}</i>"}} | ||
}} | }} | ||
</div> | </div> | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
<div {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="image" itemscope itemtype="http://schema.org/ImageObject"}}> | <div {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="image" itemscope itemtype="http://schema.org/ImageObject"}}> | ||
<link itemprop=" | <link itemprop="mainEntityofPage" href="{{fullurl:File:{{{image}}}}}" /> | ||
</div> | <link itemprop="contentUrl" href="{{filepath:{{{image}}}}}" /> | ||
<div itemprop="thumbnail">[[File:{{{image}}}|160px|center|{{PAGENAME}}]]</div> | |||
{{#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>}} | ||
</div>}} | |||
{| style="width:100%;border-spacing:.4em;text-align: left;" | {| style="width:100%;border-spacing:.4em;text-align: left;" | ||
|- | |- | ||
Line 102: | Line 104: | ||
{{#if:{{{sponsor|}}}| | {{#if:{{{sponsor|}}}| | ||
! Sponsor(s) | ! Sponsor(s) | ||
{{!}} itemprop="sponsor" {{ | {{!}} | ||
<ul style="margin:0;list-style:none none;"><!-- | |||
-->{{#forargs:sponsor|i|s| | |||
{{#if:{{{sponsor{{#var:i}}|}}}| | |||
<li style="margin:0" {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="sponsor" itemscope itemtype="http://schema.org/Organization"}}> | |||
{{#ifeq:{{#sub:{{#var:s}}|0|2}}|[[| | |||
<link itemprop="mainEntityOfPage" href="{{fullurl:{{#var:s}}}}" /> | |||
}} | |||
<span itemprop="name">{{#var:s}}</span> | |||
</li> | |||
}} | |||
}} | |||
</ul> | |||
}} | |||
|- | |- | ||
{{#if:{{{former sponsors|}}}| | {{#if:{{{former sponsors|}}}| | ||
Line 110: | Line 125: | ||
{{#if:{{{crew|}}}| | {{#if:{{{crew|}}}| | ||
! [[Crew]](s) | ! [[Crew]](s) | ||
{{!}} itemprop="affiliation" {{ | {{!}} | ||
<ul style="margin:0;list-style:none none;"><!-- | |||
-->{{#forargs:crew|i|c| | |||
{{#if:{{{crew{{#var:i}}|}}}| | |||
<li style="margin:0" {{#ifeq:{{NAMESPACE}}|Smasher|itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"}}> | |||
{{#ifeq:{{#sub:{{#var:c}}|0|2}}|[[| | |||
<link itemprop="mainEntityOfPage" href="{{fullurl:{{#var:c}}}}" /> | |||
}} | |||
<span itemprop="name">{{#var:c}}</span> | |||
</li> | |||
}} | |||
}} | |||
</ul> | |||
}} | |||
|- | |- | ||
{{#if:{{{former crews|}}}| | {{#if:{{{former crews|}}}| |
edits