Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
(undo) |
(try removing newlines) |
||
Line 11: | Line 11: | ||
| clan = Clan | | clan = Clan | ||
| 'type' is unspecified or invalid, see {{tl|Infobox}} for more details[[Category:Articles with template errors]]}} | | 'type' is unspecified or invalid, see {{tl|Infobox}} for more details[[Category:Articles with template errors]]}} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}|{{!}}-{{!}} [[Image:{{{image}}}{{!}}300px]]}}{{#if:{{{name|}}}|{{!}}-{{!}} '''Name''': {{{name}}}}}{{#if:{{{ign|}}}|{{!}}-{{!}} '''Ingame name''': {{{ign}}}}}{{#if:{{{alts|}}}|{{!}}-{{!}} '''Alts''': {{{alts}}}}}{{#if:{{{status|}}}|{{!}}-{{!}} '''Status''': {{{status}}}}}{{#if:{{{date|}}}|{{!}}-{{!}} '''Date''': {{{date}}}}}{{#if:{{{joined|}}}|{{!}}-{{!}} '''First joined''': {{{joined}}}}}{{#if:{{{lastseen|}}}|{{!}}-{{!}} '''Last seen''': {{{lastseen}}}}}{{#if:{{{formed|}}}|{{!}}-{{!}} '''Formed''': {{{formed}}}}}{{#if:{{{abandoned|}}}|{{!}}-{{!}} '''Abandoned''': {{{abandoned}}}}}{{#if:{{{disbanded|}}}|{{!}}-{{!}} '''Disbanded''': {{{disbanded}}}}}{{#if:{{{location|}}}|{{!}}-{{!}} '''Location''': {{{location}}}}}{{#if:{{{coords|}}}|{{!}}-{{!}} '''Coords''': {{{coords}}}}}{{#if:{{{members|}}}|{{!}}-{{!}} '''Members''': {{{members}}}}}{{#if:{{{clans|}}}|{{!}}-{{!}} '''Clans''': {{{clans}}}}}{{#if:{{{bases|}}}|{{!}}-{{!}} '''Bases''': {{{bases}}}}}|}{{ #switch: {{{type|}}} | ||
{{!}}- | |player = [[Category:Players]] | ||
{{!}} [[Image:{{{image}}}{{!}}300px]] | |||
}} | |||
{{#if:{{{name|}}}| | |||
{{!}}- | |||
{{!}} '''Name''': {{{name}}} | |||
}} | |||
{{#if:{{{ign|}}}| | |||
{{!}}- | |||
{{!}} '''Ingame name''': {{{ign}}} | |||
}} | |||
{{#if:{{{alts|}}}| | |||
{{!}}- | |||
{{!}} '''Alts''': {{{alts}}} | |||
}} | |||
{{#if:{{{status|}}}| | |||
{{!}}- | |||
{{!}} '''Status''': {{{status}}} | |||
}} | |||
{{#if:{{{date|}}}| | |||
{{!}}- | |||
{{!}} '''Date''': {{{date}}} | |||
}} | |||
{{#if:{{{joined|}}}| | |||
{{!}}- | |||
{{!}} '''First joined''': {{{joined}}} | |||
}} | |||
{{#if:{{{lastseen|}}}| | |||
{{!}}- | |||
{{!}} '''Last seen''': {{{lastseen}}} | |||
}} | |||
{{#if:{{{formed|}}}| | |||
{{!}}- | |||
{{!}} '''Formed''': {{{formed}}} | |||
}} | |||
{{#if:{{{abandoned|}}}| | |||
{{!}}- | |||
{{!}} '''Abandoned''': {{{abandoned}}} | |||
}} | |||
{{#if:{{{disbanded|}}}| | |||
{{!}}- | |||
{{!}} '''Disbanded''': {{{disbanded}}} | |||
}} | |||
{{#if:{{{location|}}}| | |||
{{!}}- | |||
{{!}} '''Location''': {{{location}}} | |||
}} | |||
{{#if:{{{coords|}}}| | |||
{{!}}- | |||
{{!}} '''Coords''': {{{coords}}} | |||
}} | |||
{{#if:{{{members|}}}| | |||
{{!}}- | |||
{{!}} '''Members''': {{{members}}} | |||
}} | |||
{{#if:{{{clans|}}}| | |||
{{!}}- | |||
{{!}} '''Clans''': {{{clans}}} | |||
}} | |||
{{#if:{{{bases|}}}| | |||
{{!}}- | |||
{{!}} '''Bases''': {{{bases}}} | |||
}} | |||
|} | |||
{{ #switch: {{{type|}}} | |||
| player = [[Category:Players]] | |||
| admin = [[Category:Players]][[Category:Admins]] | | admin = [[Category:Players]][[Category:Admins]] | ||
| place = [[Category:Places]] | | place = [[Category:Places]] |
Revision as of 19:48, 19 January 2016
Usage
All arguments except type are optional. This template is supposed to be universal for all uses. Please keep everything very short (no sentences!). Infoboxes are for quick information, not writing about yourself.
{{Infobox |type = <!-- The type of article this is. MUST be either admin, player, place, base, event, clan or minigame --> |image = <!-- An image to be displayed at the top of the infobox, upload the image and name appropriately --> |ign = <!-- The ingame name of a player, use only for exact minecraft account names --> |name = <!-- Commonly used name, or proper name. Can be used for both player, location, event and other --> |alts = <!-- A list of known alt accounts for a given player --> |status = <!-- The current status of something (active player, left, disbanded clan, etc) --> |date = <!-- The date of an event. Use for events and the such --> |joined = <!-- The date a player first joined the server --> |lastseen = <!-- When a player was last seen, use for players who are no longer active --> |location = <!-- Either an ingame location for bases, or irl location for players --> |coords = <!-- The coords of something. Must be given in x and y value --> |formed = <!-- The date a base or team was formed --> |abandoned = <!-- The date a base was abandoned --> |disbanded = <!-- The date a team was disbanded --> |members = <!-- A list of members a clan or base is known to have/had --> |clans = <!-- A list of clans a player or base is known to have been connected to --> |bases = <!-- A list of bases a player or clan is known to have occupied or otherwise been connected with --> }}
Base
For a base, you would generally need:
{{Infobox |type = base<!-- The type of article this is. MUST be either admin, player, place, base, event, clan or minigame --> |image = <!-- An image to be displayed at the top of the infobox, upload the image and name appropriately --> |name = <!-- Commonly used name, or proper name. Can be used for both player, location, event and other --> |status = <!-- The current status of something (active player, left, disbanded clan, etc) --> |location = <!-- Either an ingame location for bases, or irl location for players --> |coords = <!-- The coords of something. Must be given in x and y value --> |formed = <!-- The date a base or team was formed --> |abandoned = <!-- The date a base was abandoned --> |members = <!-- A list of members a clan or base is known to have/had --> }}
Player
For a player you would generally need:
{{Infobox |type = player<!-- The type of article this is. MUST be either admin, player, place, base, event, clan or minigame --> |image = <!-- An image to be displayed at the top of the infobox, upload the image and name appropriately --> |ign = <!-- The ingame name of a player, use only for exact minecraft account names --> |name = <!-- Commonly used name, or proper name. Can be used for both player, location, event and other --> |alts = <!-- A list of known alt accounts for a given player --> |status = <!-- The current status of something (active player, left, disbanded clan, etc) --> |joined = <!-- The date a player first joined the server --> |lastseen = <!-- When a player was last seen, use for players who are no longer active --> |location = <!-- Either an ingame location for bases, or irl location for players --> |clans = <!-- A list of clans a player or base is known to have been connected to --> |bases = <!-- A list of bases a player or clan is known to have occupied or otherwise been connected with --> }}