Template:Sequential badges/item: Difference between revisions
Jump to navigation
Jump to search
(replace icon link inline template to handle unknown icon widths) |
m (icon center fix) |
||
Line 1: | Line 1: | ||
<includeonly><tr> | <includeonly><tr> | ||
<td>{{{sort}}}</td> | <td>{{{sort}}}</td> | ||
<td><span style="position: relative; white-space: normal;"><span style="position: absolute; text-align: center; pointer-events: none;">[[{{#explode:{{{icon}}}| |0}}|x22px|link=|alt=]]{{#if:{{#pos:{{{icon}}}| }}|[[{{#explode:{{{icon}}}| |1}}|x22px|link=|alt=]]}}</span>[[{{{page}}}|<span style="display: inline-block; padding-left: {{#expr:{{{#userparam|22}}} + 4}}px; white-space: normal; text-decoration: inherit;">{{{title}}}</span>]]</span></td> | <td><span style="position: relative; white-space: normal;"><span style="position: absolute; width: {{{#userparam|22}}}px; text-align: center; pointer-events: none;">[[{{#explode:{{{icon}}}| |0}}|x22px|link=|alt=]]{{#if:{{#pos:{{{icon}}}| }}|[[{{#explode:{{{icon}}}| |1}}|x22px|link=|alt=]]}}</span>[[{{{page}}}|<span style="display: inline-block; padding-left: {{#expr:{{{#userparam|22}}} + 4}}px; white-space: normal; text-decoration: inherit;">{{{title}}}</span>]]</span></td> | ||
<td>{{#ifeq:{{{summary}}}| | <td>{{#ifeq:{{{summary}}}| | ||
| {{#ifeq:{{{zone}}}|| | | {{#ifeq:{{{zone}}}|| |