Jump to navigation
Jump to search
Notmyhandle (talk | contribs) (creation, copied from https://en.uesp.net/wiki/Template:Perk_Tree_Setup) |
Notmyhandle (talk | contribs) (fix, copied from https://en.uesp.net/wiki/Template:Perk_Tree) |
||
Line 1: | Line 1: | ||
{{# | <includeonly><cleanspace> | ||
{{# | {{#inherit:width}} | ||
{{# | {{#define:width|240}} | ||
{{# | {{#define:image|{{{1|SR-perktree-{{PAGENAME}}.jpg}}}}} | ||
{{# | {{#define:label|{{PAGENAME}} Perk Tree}} | ||
{{# | {{#define:caption|{{{label}}}}} | ||
{{ | {{#define:float|left}} | ||
</cleanspace>{{#ifeq:{{{float|}}}|center|<div class="center"> | |||
}}<div {{#if:{{{caption|}}}|class="thumb {{#switch:{{{float|}}} | |||
| "left" | left = tleft | |||
| "right" | right = tright | |||
| "center" | center = tnone | |||
| "none" | none = tnone | |||
| #default = tright }}" | |||
| style="width:{{{width}}}px; {{#switch:{{{float|}}} | |||
| "left" | left = float: left; clear: left | |||
| "right" | right = float: right; clear: right | |||
| "center" | center = float: none; clear: both; margin-left: auto; margin-right: auto | |||
| "none" | none = float: none; clear: none | |||
| #default = float: right; clear: right}}" | |||
}}> | |||
<div {{#if:{{{caption|}}} | |||
| class="thumbinner" style="width:{{#expr:{{{width}}} + 2 }}px; {{#if:{{{border|}}}|{{#ifeq:{{{border|}}}|none|border: none|border-color:{{{border}}}}};}} | |||
| width:{{{width}}}px; padding:0;" | |||
}}"> | |||
<div class="markedimage" style="position: relative; {{#if:{{{caption|}}} | |||
| {{#if:{{{border|}}} | |||
| {{#ifeq:{{{border|}}}|none||border: 1px solid lightgray}} | |||
| border: 1px solid lightgray}}}}"><!-- | |||
-->[[file:{{{image}}}|{{{width}}}px|{{#if:{{{alt|}}}|{{{alt}}}|{{{label}}}}}|link={{{link|File:{{{image}}}}}}]]<!-- | |||
-->{{{perks|{{{markers|}}}}}}<!-- | |||
--></div> | |||
<div {{#if:{{{caption|}}}|class="thumbcaption"|style="font-size: 90%; padding-top:3px;"}}>{{#if:{{{caption_undefined|}}} | |||
| {{{label}}} | |||
| {{{caption|{{{label}}} }}} | |||
}} | |||
</div> | |||
</div> | |||
</div>{{#ifeq:{{{float|}}}|center| | |||
</div>}}</includeonly><noinclude> | |||
{{/Doc}} | |||
</noinclude> |