Difference between revisions of "Template:UOAtlasFooter"

m
 
(29 intermediate revisions by the same user not shown)
Line 44: Line 44:
 
|#default = {{ucfirst:{{#var:pinGroup}} }}s
 
|#default = {{ucfirst:{{#var:pinGroup}} }}s
 
}} }}<!--
 
}} }}<!--
--><h{{#if: {{#varexists:noscroll}}|3|2}} style="white-space: nowrap;"><span class="icon-{{#replace: {{#var:pinGroup}}| |_}}" style="vertical-align: bottom; overflow: hidden; transform: unset;"><div style="display: inline-block;">[[Image:UO-icons.png|class=icon icon-{{#replace: {{#var:pinGroup}}| |_}}|link=]]</div></span>&nbsp;<span class="pin-types" data-pin="{{#replace:{{#var:pinGroup}}| |-}}" data-name="{{#var:group}}">{{#if:{{{embedText|}}}|{{{embedText|}}}|{{#var:group}} }}</span></h{{#if: {{#varexists:noscroll}}|3|2}}><!--
+
--><h{{#if: {{#varexists:noscroll}}|3|2}} style="white-space: nowrap;"><span class="icon-{{#replace: {{#var:pinGroup}}| |_}}" style="vertical-align: bottom; overflow: hidden; transform: unset;"><div style="display: inline-block;">[[Image:UO-icons.png|class=icon icon-{{#replace: {{#var:pinGroup}}| |_}}|link=]]</div></span>&nbsp;<span class="pin-types" data-pin="{{#replace:{{#var:pinGroup}}| |-}}" data-name="{{#var:group}}">{{ProperCase|{{#if:{{{embedText|}}}|{{{embedText|}}}|{{#var:group}} }} }}</span></h{{#if: {{#varexists:noscroll}}|3|2}}><!--
 
-->{{#vardefine: pinType|pins-{{#var:pinGroup}} }}<!--
 
-->{{#vardefine: pinType|pins-{{#var:pinGroup}} }}<!--
 
-->{{#arrayunique:{{#var: pinType}}}}<!--
 
-->{{#arrayunique:{{#var: pinType}}}}<!--
 
-->{{#arraysort:{{#var: pinType}}|asc}}<!--
 
-->{{#arraysort:{{#var: pinType}}|asc}}<!--
-->{{#arrayprint:{{#var: pinType}}|<br/>|@@@@ |<span style="z-index: 1; position: relative;" data-pair="{{#replace:@@@@|-|:}}">[[UO:{{#explode:@@@@|;|1}}|{{#explode:@@@@|;|0}}]]</span>}}
+
-->{{#ifeq:{{#var: pinType}}|pins-door|<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">}}<!--
 +
-->{{#arrayprint:{{#var: pinType}}|<br/>|@@@@ |{{#vardefine:val|{{#replace:{{#replace:{{#replace:{{#replace:@@@@|⓪|0}}|①|1}}|②|2}}|③|3}} }}<span style="z-index: 1; position: relative; cursor: pointer;" data-pair="pin{{#replace:{{#explode:{{#var:val}}|;|2}}|-|_}}">{{#ifeq:{{#explode:{{#var:val}}|;|3}}|no|[[UO:{{#explode:{{#var:val}}|;|1}}|{{#explode:{{#var:val}}|;|0}}]]|{{#explode:{{#var:val}}|;|0}}}}</span>}}<!--
 +
-->{{#ifeq:{{#var: pinType}}|pins-door|</div>}}
 
}}
 
}}
 
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
 
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>

Latest revision as of 10:10, 11 October 2020