Template:Town Infobox: Difference between revisions

Template page
(Replaced content with "<div id="right-sidebar"><table class="infobox item-infobox {{{type|item}}}-{{#ifeq:{{lc:{{{game|}}}}}|tfc|tfc-}}infobox" style="width:300px; max-width:300px; {{lang incomp...")
Tag: Replaced
No edit summary
Tag: 2017 source edit
 
(61 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div id="right-sidebar"><table class="infobox item-infobox {{{type|item}}}-{{#ifeq:{{lc:{{{game|}}}}}|tfc|tfc-}}infobox" style="width:300px; max-width:300px; {{lang incomplete|ar=float:left; margin: 0.5em 1 0.5em 0em;}}">
{{Infobox
<tr>
|bodyclass = mw-collapsible floatright
  <th class="infobox-header" id="top-header" colspan="2" style="background:#F3A957;">{{ name }}</th>
|image1 = [[File:{{{image|Soon.png}}}|325px|center]]
  </tr>
|imagerowclass1 = infobox-image


// IMAGES
|header2 = {{{name|}}}
|rowclass2 = infobox-title


-->{{#if:{{{image|}}}{{{team-colors|{{{two-models|}}}}}}
|label3 = {{#if: {{{founded|}}} | Founded }}
| <tr>
|data3 = {{{founded|}}}
    <td colspan="2" style="padding:0em;">
|rowclass3 = infobox-data infobox-col2
          | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|250px}}}|center]]}}<!-- End #if:game -->
        | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|250px}}}|center]]
      }}
    }}
    </td>
  </tr>
}}<!--


// Basic Information
|label4 = {{#if: {{{mayor|}}} | Mayor }}
|data4 = {{{mayor|}}}
|rowclass4 = infobox-data infobox-col2


--><tr>
|label5 = {{#if: {{{population|}}} | Population }}
<th class="infobox-header" colspan="2">{{lang
|data5 = {{{population|}}}
  | ar = معلومات أساسية
|rowclass5 = infobox-data infobox-col2
  | cs = Základní informace
 
  | da = Information
|label6 = {{#if: {{{status|}}} | Status }}
  | de = Informationen
|data6 = {{{status|}}}
  | en = Basic Information
|rowclass6 = infobox-data infobox-col1
  | es = Información básica
 
  | fi = Perustiedot
|label7 = {{#if: {{{keypeople|}}} | Key People }}
  | fr = Informations de base
|data7 = {{{keypeople|}}}
  | hu = Alapvető információk
|rowclass7 = infobox-data infobox-col1
  | it = Informazioni di Base
 
  | ja = インフォメーション
|header20 = {{#if: {{{coordinates|}}}{{{path|}}} | Location }}
  | ko = 기본 정보
|rowclass20 = infobox-header
  | nl = Basisinformatie
 
  | no = Grunnleggende informasjon
|label21 = {{#if: {{{coordinates|}}} | Coordinates }}
  | pl = Podstawowe informacje
|data21 = {{{coordinates|}}}
  | pt = Informações Básicas
|rowclass21 = infobox-data infobox-col2
  | pt-br = Informações básicas
 
  | ro = Informaţii de bază
|label22 = {{#if: {{{coordinates|}}}{{{path|}}} | World}}
  | ru = Информация
|data22 = {{{world|}}}
  | sv = Grundläggande Information
|rowclass22 = infobox-data infobox-col2
  | tr = Temel Bilgiler
 
  | zh-hans = 基本信息
|label23 = {{#if: {{{path|}}} | Nether Path}}
  | zh-hant = 資訊
|data23 = {{{path|}}}
  }}
|rowclass23 = infobox-data infobox-col1
</th>
 
</tr>
|header30 = {{#if: {{{dynmap|}}}{{{discord|}}} | Links}}
<tr>
|rowclass30 = infobox-header
<td class="infobox-label">Mayor</td>
 
<td>{{{mayor}}}</td>
|label31 = {{#if: {{{dynmap|}}}|[{{{dynmap}}} Dynmap]}}
  </tr>
|data31 = {{#if: {{{dynmap|}}}|&nbsp;}}
<tr>
|rowclass31 = infobox-data infobox-col2
  <td class="infobox-label">Status</td>
 
  <td class="infobox-data">{{{status}}}</td>
|label32 = {{#if: {{{discord|}}}|[{{{discord}}} Discord Server]}}
</tr>
|data32 = {{#if: {{{discord|}}}|&nbsp;}}
<tr>
|rowclass32 = infobox-data infobox-col2
  <td class="infobox-label">Population</td>
 
  <td class="infobox-data">{{{population}}}}</td></tr>
|data33 = {{#if: {{{dynmap|}}}{{{discord|}}} || &nbsp; }}
</tr>
 
</table>
}}<noinclude>
</div>
{{clear}}
{{documentation}}
[[Category:Minecraft templates]]
<templatedata>
{
"params": {
"image": {
"label": "Image",
"description": "Image of the town",
"type": "wiki-file-name",
"suggested": true
},
"name": {
"label": "Name",
"description": "Name of the town",
"required": true,
"suggested": true,
"example": "Genericville",
"type": "string"
},
"founded": {
"label": "Founded",
"description": "Date the town was founded",
"type": "date",
"suggested": true
},
"mayor": {
"description": "Current mayor of the town",
"type": "string",
"label": "Mayor",
"example": "NotKatuen"
},
"population": {
"label": "Population",
"description": "Current population of the town",
"type": "number"
},
"status": {
"label": "Status",
"description": "Activity status of the town",
"example": "Inactive",
"type": "string"
},
"coordinates": {
"label": "Coordinates",
"description": "X/Z Coordinates of the town's location",
"suggested": true,
"example": "6969,420",
"type": "string"
},
"world": {
"label": "World",
"description": "Name of the world the town is located in",
"example": "Overworld",
"type": "string",
"default": "Overworld"
},
"path": {
"label": "Nether path",
"description": "Details for finding the town in the nether.",
"example": "Blue path, Diorite block",
"type": "string",
"suggested": true
},
"dynmap": {
"label": "Dynmap Link",
"description": "URL for the dynmap view of the town",
"example": "https://minecraft.rtgame.co.uk/map/survival/#world;flat;-784,64,1413;3",
"type": "url",
"suggested": true
},
"discord": {
"label": "Discord Server",
"description": "Link to the Discord Server related to the town, if you absolutely need to have one. Please be sensible and ensure the link doesn't expire.",
"type": "url"
},
"keypeople": {
"label": "Key People",
"description": "Noteworthy individuals who are involved in the Town's creation or ongoing activities.",
"type": "string"
}
},
"description": "Outputs an infobox for a Minecraft server town",
"paramOrder": [
"name",
"image",
"coordinates",
"world",
"dynmap",
"founded",
"mayor",
"keypeople",
"population",
"status",
"path",
"discord"
],
"format": "block"
}
</templatedata></noinclude>

Latest revision as of 20:37, 7 May 2021

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

Outputs an infobox for a Minecraft server town

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the town

Example
Genericville
Stringrequired
Imageimage

Image of the town

Filesuggested
Coordinatescoordinates

X/Z Coordinates of the town's location

Example
6969,420
Stringsuggested
Worldworld

Name of the world the town is located in

Default
Overworld
Example
Overworld
Stringoptional
Dynmap Linkdynmap

URL for the dynmap view of the town

Example
https://minecraft.rtgame.co.uk/map/survival/#world;flat;-784,64,1413;3
URLsuggested
Foundedfounded

Date the town was founded

Datesuggested
Mayormayor

Current mayor of the town

Example
NotKatuen
Stringoptional
Key Peoplekeypeople

Noteworthy individuals who are involved in the Town's creation or ongoing activities.

Stringoptional
Populationpopulation

Current population of the town

Numberoptional
Statusstatus

Activity status of the town

Example
Inactive
Stringoptional
Nether pathpath

Details for finding the town in the nether.

Example
Blue path, Diorite block
Stringsuggested
Discord Serverdiscord

Link to the Discord Server related to the town, if you absolutely need to have one. Please be sensible and ensure the link doesn't expire.

URLoptional