Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Wikidesk infobox: Difference between revisions

Template page
Add alt text to infobox image for image SEO (fix missing alt attribute)
Render Name/Role as real table rows inside the infobox table instead of a separate header div (structure-only change, no param/label changes)
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|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>
<div class="wv-infobox">{{#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"><tr class="wv-infobox-row"><th class="wv-infobox-label">Name</th><td class="wv-infobox-data">{{{title|{{PAGENAME}}}}}</td></tr>{{#if: {{{subtitle|}}} |<tr class="wv-infobox-row"><th class="wv-infobox-label">Role</th><td class="wv-infobox-data">{{{subtitle}}}</td></tr>}}{{{content|}}}</table>{{#if: {{{footer|}}} |<div class="wv-infobox-footer">{{{footer}}}</div>}}</div><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 12:30, 9 September 2026

NameWikidesk infobox

Template:Documentation