Template:Wikidesk infobox: Difference between revisions
Template page
More actions
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">{{#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
| Name | Wikidesk infobox |
|---|