Template:InfoboxFrame: Difference between revisions

From He is Coming Official Wiki
Created page with "<includeonly> <div class="borderline-wrapper"> {| class="infobox-neutral" style="border: 4px solid {{{bordercolor|#fff}}}; width:324px; margin:2em auto; background:#241319; box-sizing:border-box;" |- | style="width:24px; height:24px; padding:0; vertical-align:top;" | {{{topleft|}}} | style="width:24px; height:24px; padding:0; vertical-align:top;" | {{{topright|}}} |- | colspan="2" style="padding:0;" | {{{content|}}} |- | style="width:24px; height:24px; padding:0; vertica..."
 
Benjiminio (talk | contribs)
m added empty links to elements so that they no longer link back to their own asset page (assuming no desired functionality)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="borderline-wrapper">
<div style="position: relative; width:fit-content; box-sizing:border-box;">
{| class="infobox-neutral" style="border: 4px solid {{{bordercolor|#fff}}}; width:324px; margin:2em auto; background:#241319; box-sizing:border-box;"
<div style="position: absolute; left:-4px; top:-2px; padding: 0;">
|-
[[File:TL_{{#switch:{{{theme|default}}}|Woodland=Woodland|Swampland=Swampland|Kingmaker=Kingmaker|Greyscale}}.png|24px|link=]]</div><div style="position: absolute; left:-4px; bottom:-2px; padding: 0;">
| style="width:24px; height:24px; padding:0; vertical-align:top;" | {{{topleft|}}}
[[File:BL_{{#switch:{{{theme|default}}}|Woodland=Woodland|Swampland=Swampland|Kingmaker=Kingmaker|Greyscale}}.png|24px|link=]]</div><div style="position: absolute; right:-4px; bottom:-2px; padding: 0;">
| style="width:24px; height:24px; padding:0; vertical-align:top;" | {{{topright|}}}
[[File:BR_{{#switch:{{{theme|default}}}|Woodland=Woodland|Swampland=Swampland|Kingmaker=Kingmaker|Greyscale}}.png|24px|link=]]</div><div style="border:4px solid {{#switch:{{{theme|unspecified}}}|Woodland = #7fa33f|Swampland = #587fcb|Kingmaker = #cd811e|#F4F4F4}}; background:#241319; padding-left:18px; padding-right: 18px;">
|-
{{{content|test}}}</div></div>
| colspan="2" style="padding:0;" | {{{content|}}}
</includeonly><noinclude>
|-
{{InfoboxFrame|theme=Woodland|content=Woodland}}
| style="width:24px; height:24px; padding:0; vertical-align:bottom;" | {{{bottomleft|}}}
{{InfoboxFrame|theme=Swampland|content=Swampland}}
| style="width:24px; height:24px; padding:0; vertical-align:bottom;" | {{{bottomright|}}}
{{InfoboxFrame|theme=Kingmaker|content=Kingmaker}}
|}
{{InfoboxFrame|content=any unrecognized theme}}
</div>
</includeonly>
<noinclude>
Flexible infobox frame with 4 customizable corners and border color.
Flexible infobox frame with 4 customizable corners and border color.
* Parameters:
* Parameters:
** topleft, topright, bottomleft, bottomright — Content for each corner (typically an image).
** theme — Woodland, Swampland, Kingmaker, Greyscale
** bordercolor — Hex color for border (default #fff).
** content — The infobox or content to be framed.
** content — The infobox or content to be framed.
</noinclude>
</noinclude>

Latest revision as of 11:53, 23 October 2025


Woodland


Swampland


Kingmaker


any unrecognized theme

Flexible infobox frame with 4 customizable corners and border color.

  • Parameters:
    • theme — Woodland, Swampland, Kingmaker, Greyscale
    • content — The infobox or content to be framed.