Template:Wikidesk infobox: Difference between revisions

From WikiDesk
Jump to navigation Jump to search
Deploy Template:Wikidesk infobox (2026-08-27 07:30:54)
 
Add alt text to infobox image for image SEO (fix missing alt attribute)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="wv-infobox"><div class="wv-infobox-header"><div class="wv-infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if: {{{subtitle|}}} |<div class="wv-infobox-subtitle">{{{subtitle}}}</div>}}</div>{{#if: {{{image|}}} |<div class="wv-infobox-image-wrap">{{#ifexist: {{{image}}} |[[{{{image}}}|frameless|center|280px]] |{{#ifexist: File:{{{image}}} |[[File:{{{image}}}|frameless|center|280px]] |<html><img src="{{{image}}}" alt="Official Image" style="max-width:100%;height:auto;border-radius:4px;" /></html>}}}}{{#if: {{{image_caption|}}} |<div class="wv-infobox-caption">{{{image_caption}}}</div>}}</div>}}<table class="wv-infobox-table">{{{content|}}}</table>{{#if: {{{footer|}}} |<div class="wv-infobox-footer">{{{footer}}}</div>}}</div><noinclude>
<div class="wv-infobox"><div class="wv-infobox-header"><div class="wv-infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if: {{{subtitle|}}} |<div class="wv-infobox-subtitle">{{{subtitle}}}</div>}}</div>{{#if: {{{image|}}} |<div class="wv-infobox-image-wrap">{{#ifexist: {{{image}}} |[[{{{image}}}|frameless|center|280px|alt={{{image_caption|{{{title|{{PAGENAME}}}}}}}}]] |{{#ifexist: File:{{{image}}} |[[File:{{{image}}}|frameless|center|280px|alt={{{image_caption|{{{title|{{PAGENAME}}}}}}}}]] |<html><img src="{{{image}}}" alt="{{{image_caption|{{{title|{{PAGENAME}}}}}}}}" style="max-width:100%;height:auto;border-radius:4px;" /></html>}}}}{{#if: {{{image_caption|}}} |<div class="wv-infobox-caption">{{{image_caption}}}</div>}}</div>}}<table class="wv-infobox-table">{{{content|}}}</table>{{#if: {{{footer|}}} |<div class="wv-infobox-footer">{{{footer}}}</div>}}</div><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>
<!-- deployed: 2026-08-27 07:30:54 -->

Latest revision as of 11:39, 5 September 2026

Wikidesk infobox

Template:Documentation