Template:Infobox: Difference between revisions

From Simplicitypvp
Jump to navigation Jump to search
No edit summary
No edit summary
 
(131 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| align="right" style="margin:0 0 0.5em 1em; border:1px solid gray; text-align:left; border-radius: 0.5em; box-shadow: 0.5em 0.5em 0.4em #888;" cellpadding="5" cellspacing="3"
<includeonly>
! colspan="2" style="font-size:110%; text-align:center; background-color:gray;color:white; border-radius: 0.2em;" | {{{name|{{PAGENAME}}}}}
{| align="right" style="margin:0 0 0.5em 1em; border:1px solid gray; text-align:left; border-radius: 0.5em; box-shadow: 0.5em 0.5em 0.5em #888;" cellpadding="5" cellspacing="3" width=300px
! colspan="2" style="font-size:110%; text-align:center; background-color:gray; color:white; border-radius: 0.2em;" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" align="center" | {{{type|Type of article must be specified!}}}
| colspan="2" align="center" | {{ #switch: {{{type|}}}
<!-- Image -->
| player = Player
{{#if:{{{image|}}}|
| admin = Player (OP)
{{!}}-
| place = Place
{{!}} [[Image:{{{image}}}]]
| base = Base
|}}
| event = Event
<!-- Name line -->
| minigame = Minigame
{{#if:{{{name|}}}|
| clan = Clan
{{!}}-
| literature = Literature
{{!}} '''Name''': {{{name}}}
| 'type' is unspecified or invalid, see {{tl|Infobox}} for more details[[Category:Articles with template errors]]}}
|}}
|- {{#if: {{{image|}}} | | style="display: none;" }}
<!-- ign line -->
| [[Image:{{{image}}}{{!}}300px]]
{{#if:{{{ign|}}}|
|- {{#if: {{{name|}}} | | style="display: none;" }}
{{!}}-
| '''Name:''' {{{name}}}
{{!}} '''Ingame name''': {{{ign}}}
|- {{#if: {{{ign|}}} | | style="display: none;" }}
|}}
| '''In-game name:''' {{{ign}}}  
<!-- Date line -->
|- {{#if: {{{alts|}}} | | style="display: none;" }}
{{#if:{{{date|}}}|
| '''Alts:''' {{{alts}}}  
{{!}}-
|- {{#if: {{{status|}}} | | style="display: none;" }}
{{!}} '''Date''': {{{date}}}
| '''Status:''' {{{status}}}  
|}}
|- {{#if: {{{date|}}} | | style="display: none;" }}
<!-- First joined line -->
| '''Date:''' {{{date}}}  
{{#if:{{{joined|}}}|
|- {{#if: {{{joined|}}} | | style="display: none;" }}
{{!}}-
| '''First joined:''' {{{joined}}}  
{{!}} '''First joined''': {{{joined}}}
|- {{#if: {{{lastseen|}}} | | style="display: none;" }}
|}}
| '''Last seen:''' {{{lastseen}}}  
<!-- Last seen line -->
|- {{#if: {{{formed|}}} | | style="display: none;" }}
{{#if:{{{lastseen|}}}|
| '''Formed:''' {{{formed}}}  
{{!}}-
|- {{#if: {{{abandoned|}}} | | style="display: none;" }}
{{!}} '''Last seen''': {{{lastseen}}}
| '''Abandoned:''' {{{abandoned}}}  
|}}<!-- Formed line -->
|- {{#if: {{{disbanded|}}} | | style="display: none;" }}
{{#if:{{{formed|}}}|
| '''Disbanded:''' {{{disbanded}}}  
{{!}}-
|- {{#if: {{{location|}}} | | style="display: none;" }}
{{!}} '''Formed''': {{{formed}}}
| '''Location:''' {{{location}}}  
|}}<!-- Abandoned -->
|- {{#if: {{{coords|}}} | | style="display: none;" }}
{{#if:{{{abandoned|}}}|
| '''Coords:''' {{{coords}}}  
{{!}}-
|- {{#if: {{{members|}}} | | style="display: none;" }}
{{!}} '''Abandoned''': {{{abandoned}}}
| '''Members:''' {{{members}}}  
|}}<!-- Disbanded line -->
|- {{#if: {{{clans|}}} | | style="display: none;" }}
{{#if:{{{disbanded|}}}|
| '''Clans:''' {{{clans}}}  
{{!}}-
|- {{#if: {{{bases|}}} | | style="display: none;" }}
{{!}} '''Disbanded''': {{{disbanded}}}
| '''Bases:''' {{{bases}}}
|}}<!-- Location line -->
|- {{#if: {{{schematic|}}} | | style="display: none;" }}
{{#if:{{{location|}}}|
| '''Schematic:''' {{{schematic}}}  
{{!}}-
{{!}} '''Location''': {{{location}}}
|}}<!-- Coords line -->
{{#if:{{{coords|}}}|
{{!}}-
{{!}} '''Coords''': {{{coords}}}
|}}
<!-- Alts line -->
{{#if:{{{alts|}}}|
{{!}}-
{{!}} '''Alts''': {{{alts}}}
|}}
|}
|}
<includeonly>[[Category:{{{type}}}s]]</includeonly><noinclude>
{{ #switch: {{{type|}}}
| player = [[Category:Players]]
| admin = [[Category:Players]][[Category:Admins]]
| place = [[Category:Places]]
| base = [[Category:Places]][[Category:Bases]]
| event = [[Category:Events]]
| minigame = [[Category:Minigames]]
| clan = [[Category:Clans]]
| literature = [[Category:Literature]]
|}}</includeonly><noinclude>
== Usage ==
== Usage ==
All arguments except type are optional. This template is supposed to be universal for all uses.
Copypaste the below into the very top of the article you're creating. Fill in the things that are relevant, the type MUST be filled in, but other than that you can delete lines that aren't relevant to the article. Please keep everything very short (no sentences!). Infoboxes are for quick information, not writing about yourself.
 
<pre>
<pre>
<nowiki>
<nowiki>
{{Infobox
{{Infobox
|type      = <!-- The type of article this is. Must be given in singular, with capital inital -->
|type      = <!-- The type of article this is. MUST be either admin, player, place, base, event, clan, literature or minigame -->
|image      = <!-- An image to be displayed at the top of the infobox (images will be enabled wiki-wide later) -->
|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 -->
|ign        = <!-- The ingame name of a player, use only for exact minecraft account names -->
|nickname  = <!-- Commonly used name, or proper name. Can be used for both player, location, event and other -->
|name      = <!-- Commonly used name, or proper name. Can be used for both player, location, event and other -->
|date      = <!-- The date of an event. Use for events and the such -->
|alts      = <!-- A list of known alt accounts for a given player -->
|joined    = <!-- The date a player first joined the server -->
|status    = <!-- The current status of something (active player, left, disbanded clan, etc) -->
|lastseen  = <!-- When a player was last seen, use for players who are no longer active -->
|date      = <!-- The date of an event. Use for events and the such -->
|location  = <!-- Either an ingame location for bases, or irl location for players -->
|joined    = <!-- The date a player first joined the server -->
|coords    = <!-- The coords of something. Must be given in x and y value -->
|lastseen  = <!-- When a player was last seen, use for players who are no longer active -->
|alts      =  <!-- A list of known alt accounts for a given player -->
|location  = <!-- Either an ingame location for bases, or irl location for players -->
|formed    = <!-- The date a base or team was formed -->
|coords    = <!-- The coords of something. Must be given in x and z value -->
|abandoned  = <!-- The date a base was abandoned -->
|formed    = <!-- The date a base or team was formed -->
|disbanded  = <!-- The date a team was disbanded -->
|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 -->
|schematic  = <!-- A schematic related to the project -->
}}
}}
</nowiki>
</nowiki>
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 09:20, 10 January 2024

Usage

Copypaste the below into the very top of the article you're creating. Fill in the things that are relevant, the type MUST be filled in, but other than that you can delete lines that aren't relevant to the article. 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, literature 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 z 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 -->
|schematic  = <!-- A schematic related to the project -->
}}