Template:Infobox entity: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<!--------- Infobox --------->
{{#invoke:infobox|infobox
{{Infobox|
| invimage = none
<!-- IMG -->
| rows =
|bodyclass = mw-collapsible floatright
{{ #if: {{{health|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Minecraft Earth|[[MCE:Health|Health points]]|[[Health|Health points]]}}|{{{health}}} }} }}
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:MissingMob.png|400px]]}}
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
|imagerowclass1 = infobox-image
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
 
{{ #if: {{{classification|}}} | {{Infobox row|{{tooltip|Classification|Java Edition only}}|{{{classification}}} }} }}
<!-- Header -->
{{ #if: {{{family|}}} | {{Infobox row|{{tooltip|Family|Bedrock Edition only}}|{{{family}}} }} }}
|header1 = {{{name|{{PAGENAME}}}}}
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
|rowclass1 = infobox-title
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
 
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
 
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
 
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
<!-- Header -->
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
|header2 = Stats
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
|rowclass2 = infobox-title
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
 
| footer =
 
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
|label3 = Health points
}}<noinclude>
|data3 = {{{hp|0}}}
{{Documentation}}
|rowclass3 = data-coords infobox-data infobox-col1
<!-- Put categories/interwiki on the documentation page -->
 
 
|label4 = Armor
|data4 = {{{Armor|5}}}
|rowclass4 = data-coords infobox-data infobox-col1
 
}}
 
<includeonly>{{Infobox|
 
|label2 = Location
|data2 = <span class="data-world">{{{active|}}} server</span>{{#if:{{{active|}}}|{{nbsp}}{{nbsp}}—{{nbsp}}{{nbsp}}<span class="data-located">on [[{{SITENAME}}:About| {{SITENAME}}]]}}</span>
|rowclass2 = data-location infobox-subtitle infobox-data infobox-col1
 
|label3 = Version
|data3 = {{{version|{{Home/settings|versionReal}}}}}
|rowclass3 = data-coords infobox-data infobox-col2
 
|label4 = Command
|data4 = {{#if: {{{command|}}}{{{name}}} | <div style="overflow-x: scroll;">{{CMD|server {{{command|{{{name|{{PAGENAME}}}}}}}}}}</div> | }}
|rowclass4 = data-warp infobox-data infobox-col2
 
|label5     = Established
|data5 = {{#if: {{{established|}}}|{{#time: F j, Y|{{{established|}}}}}<br><span style="font-weight: 300;">({{Time ago|{{{established|}}}}})</span>|}}
|rowclass5 = data-founded infobox-data infobox-col2
 
|header6 = {{#if:{{{worlds|}}}{{{mode|}}}|Details}}
|rowclass6 = infobox-header
 
|label7 = Worlds
|data7 = {{{worlds|}}}
|rowclass7 = data-type infobox-data infobox-col2
 
|label8 = Gamemode
|data8 = {{{mode|}}}
|rowclass8 = data-type infobox-data infobox-col2
 
|header20 = {{#if:{{{restricted|}}}{{{limit|}}}|Access}}
|rowclass20 = infobox-header
 
|label21 = Restrictions
|data21 = {{{restricted|}}}
|rowclass21 = data-shops infobox-data infobox-col2
 
|label22 = Player limit
|data22 = {{{limit|}}}
|rowclass22 = data-services infobox-data infobox-col2
 
|header60 = {{#if:{{{worldmapurl|}}}|{{Infobox buttons|type=server|worldmapurl={{{worldmapurl|}}}}}}}|<span></span>
|rowclass60 = infobox-button-bar
 
}}</includeonly>
 
<!-------------------
Short description
{CLASS>TYPE} {LOCATIONTYPE} in the {SYSTEM} system
------------------->
 
<includeonly>{{Short description|{{{name|{{PAGENAME}}}}} is a {{{mode|}}} server on {{SITENAME}}.}}</includeonly>
 
 
<!----------------Categorization -------------- Locations ------>
 
<includeonly>[[Category:Servers]]</includeonly>
 
<!--Server ---------------->
 
<includeonly>{{#switch: {{{restricted}}} | true | yes = [[Category:Restricted servers]]|}}</includeonly>
 
 
<!----- SEO ----->
 
<includeonly>{{#vardefine:infoboxseo|1}}{{#seo:
|title = {{{name}}} Server - {{SITENAME}}
|site_name = {{SITENAME}}
|type = article
|locale = {{PAGELANGUAGE}}
|image = {{#if:{{{image|}}}|{{{image}}}|CubeyBanner.png}}
}}</includeonly><noinclude>
{{/doc}}
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
</noinclude>
</noinclude>

Revision as of 19:12, 25 May 2024

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Infobox entity/doc. Changes can be proposed in the talk page.