Template:Infobox Sandbox: Difference between revisions

Sandbox for Template Design because idk how to make it properly
 
Added autoheaders tag
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| child = {{#ifeq:{{{embed|}}}|yes|yes}}
| headerstyle = {{#ifeq:{{{embed|}}}|yes||background-color:#ededed}} <!-- Makes sure the headers are darker -->
| bodyclass  = vcard
| autoheaders = yes
| aboveclass  = fn org
| headerstyle = {{#ifeq:{{{embed|}}}|yes||background-color:#ededed}}
| title      = {{#ifeq:{{{embed|}}}|yes|<div style="font-weight:bold; text-align:center;">Building details</div>}}
| above      = {{{building_name|{{{hotel_name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}}}}
| subheader  = {{#if:{{{native_building_name|{{{native_name|}}}}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}"}}>{{{native_building_name|{{{native_name}}}}}}</div>}}
| imagestyle = text-align: center
| captionstyle = text-align: center


| image1    = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{logo_width|}}}}}}|sizedefault=250px|upright={{{logo_upright|1.1}}}|alt={{{logo_alt|}}}}}
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} <!-- Title is the page name unless otherwise specified -->
| caption1  = {{{logo_caption|}}}
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|alt={{{alt|}}}}} <!-- Not adding images is ok too -->
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{image_width|}}}}}}|sizedefault=frameless|upright={{{image_upright|1.1}}}|border=yes|alt={{{image_alt|{{{alt|}}}}}}}}
| caption    = {{{caption|}}} <!-- Image caption -->
| caption2  = {{{caption|{{{image_caption|}}}}}}
| image3    = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type|}}}}}}
|alt    = {{{pushpin_map_alt|{{{map_alt|}}}}}}
|coordinates = {{{coordinates|}}}
|float  = center
|mark    = {{{map_dot_mark|Red pog.svg}}}
|marksize= 7
|label  = {{{pushpin_label|{{{map_dot_label|}}}}}}
|relief  = {{{pushpin_relief|{{{relief|}}}}}}
|border  = infobox
|caption = {{{pushpin_map_caption|{{{map_caption|Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}}}}}}
|width  = {{{pushpin_mapsize|{{{map_size|}}}}}}
}} |<!-- else if map_type is blank
-->{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}}<!-- end if map_type
-->}}
| caption3  = {{#if:{{{pushpin_map|{{{map_type|}}}}}} |<!-- leave blank -->| {{{map_caption|}}} }}
| image4      = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-zoom={{{mapframe-zoom|13}}}|mapframe-frame-width={{{mapframe-frame-width|250}}}}}
| caption4    = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}}}


| header1    = Main Info
| header1    = Main Info
| label2    = Username
| label2    = Username
| data2      = {{{username|}}}
| data2      = {{{username|}}}
| label3    = Birth Date
| label3    = Birth Date
| data3      = {{{birthdate|}}}
| data3      = {{{birthdate|}}}
| label4    = Home Country
| label4    = Home Country
| data4      = {{{homecountry|}}}
| data4      = {{{homecountry|}}}
| header5    = Rolling Lounge Info
| header5    = Rolling Lounge Info
| label6    = Highest role
| label6    = Highest role
| data6      = {{{highestrole|}}}
| data6      = {{{highestrole|}}}
| label7    = Skill Role
| label7    = Skill Role
| data7      = {{{skillrole|}}}
| data7      = {{{skillrole|}}}
| header8    = Social Media
| header8    = Social Media
| label9    = YouTube
| label9    = YouTube
| data9      = {{{youtube|}}}
| data9      = {{{youtube|}}}
| label10    = Twitter
 
| label10    = X/Twitter
| data10      = {{{twitter|}}}
| data10      = {{{twitter|}}}
| label11    = Discord Server
| label11    = Discord Server
| data11      = {{{discord|}}}
| data11      = {{{discord|}}}
| belowstyle = {{{belowstyle|}}}
}}
| below    = {{{footnotes|}}}
}}<!-- end of infobox