Template:Sequential badges/item: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
m (strip newline)
m (separator correction)
 
(14 intermediate revisions by the same user not shown)
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; width: {{{#userparam|22}}}px; text-align: center; pointer-events: none;">[[{{#explode:{{{icon}}}|&nbsp;/&#32;|0}}|x22px|link=|alt=]]{{#if:{{#pos:{{{icon}}}|&nbsp;/&#32;}}|[[{{#explode:{{{icon}}}|&nbsp;/&#32;|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 = {{#dplreplace:{{#show:{{{page}}}|?Has image|link=none}}|File:(.*?)(,.*{{!}}$)|\1}}
<td>{{#ifeq:{{{summary}}}|
| link = {{{page}}}
  | {{#ifeq:{{{zone}}}||
| text = {{#replace:{{#show:{{{page}}}|?Has title}}|,|&nbsp;/}}
    | {{#if:{{#pos:{{{zone}}}|&nbsp;}}
      | Multiple locations
      | [[{{{zone}}}]] {{coords|{{{x}}}|{{{y}}}|{{{z}}}}}
      }}
    }}
  | {{{summary}}}
}}{{#ifeq:{{{alignment}}}||
  | &#32;<span style="white-space: nowrap;">{{#if:{{#pos:{{{alignment|}}}|Hero}}|[[File:CreateSymbol Hero.png|22px|link=|alt=Hero]]}} {{#if:{{#pos:{{{alignment|}}}|Vigilante}}|[[File:CreateSymbol Vigilante.png|22px|link=|alt=Vigilante]]}} {{#if:{{#pos:{{{alignment|}}}|Villain}}|[[File:CreateSymbol Villain.png|22px|link=|alt=Villain]]}} {{#if:{{#pos:{{{alignment|}}}|Rogue}}|[[File:CreateSymbol Rogue.png|22px|link=|alt=Rogue]]}} {{#if:{{#pos:{{{alignment|}}}|Loyalist}}|[[File:CreateSymbol Praetorian.png|22px|link=|alt=Loyalist]]}} {{#if:{{#pos:{{{alignment|}}}|Resistance}}|[[File:CreateSymbol Resistance.png|22px|link=|alt=Resistance]]}}</span>
}}</td>
}}</td>
<td>{{#if:{{{zone|}}}|{{#if:{{#pos:{{{zone}}}|,}}|Multiple locations|[[{{{zone}}}]] {{coords|page={{{page}}}}}}}}}</td>
</tr></includeonly><noinclude>[[Category:SMW Formatting Templates]]</noinclude>
</tr></includeonly><noinclude>[[Category:SMW Formatting Templates]]</noinclude>

Latest revision as of 04:15, 12 June 2022