Template:Sequential badges/item: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
m (add praetorian alignments)
(replace icon link inline template to handle unknown icon widths)
Line 1: Line 1:
<includeonly><tr>
<includeonly><tr>
<td>{{{sort}}}</td>
<td>{{{sort}}}</td>
<td>{{icon link inline
<td><span style="position: relative; white-space: normal;"><span style="position: absolute; text-align: center; pointer-events: none;">[[{{#explode:{{{icon}}}|&nbsp;|0}}|x22px|link=|alt=]]{{#if:{{#pos:{{{icon}}}|&nbsp;}}|[[{{#explode:{{{icon}}}|&nbsp;|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>
| icon = {{PAGENAME:{{#explode:{{{icon}}}|&nbsp;|0}}}}
| link = {{{page}}}
| text = {{{title}}}
}}</td>
<td>{{#ifeq:{{{summary}}}|
<td>{{#ifeq:{{{summary}}}|
   | {{#ifeq:{{{zone}}}||
   | {{#ifeq:{{{zone}}}||

Revision as of 04:10, 12 June 2022