Template:Infobox: Difference between revisions

From Simplicitypvp
Jump to navigation Jump to search
(fuck this fucking template)
No edit summary
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>
NOTICE: Yes we are aware of the spacing problem when not adding options, no we don't know why it does that. Yes we have read https://en.wikipedia.org/wiki/Wikipedia:Conditional_tables and tried both option A and B. The shit doesn't work. If you insist on trying to fix this, increment the following counter as appropriate. Time wasted on this problem: 10 hours
{| 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
</noinclude><includeonly>{| 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" style="font-size:110%; text-align:center; background-color:gray; color:white; border-radius: 0.2em;" | {{{name|{{PAGENAME}}}}}
|-
|-
Line 12: Line 11:
| minigame = Minigame
| minigame = Minigame
| clan = Clan
| clan = Clan
| literature = Literature
| '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|}}} | | style="display: none;" }}
{{!}}-
| [[Image:{{{image}}}{{!}}300px]]
{{!}} [[Image:{{{image}}}{{!}}300px]]
|- {{#if: {{{name|}}} | | style="display: none;" }}
}}
| '''Name:''' {{{name}}}
{{#if:{{{name|}}}|
|- {{#if: {{{ign|}}} | | style="display: none;" }}
{{!}}-
| '''In-game name:''' {{{ign}}}  
{{!}} '''Name''': {{{name}}}
|- {{#if: {{{alts|}}} | | style="display: none;" }}
}}
| '''Alts:''' {{{alts}}}  
{{#if:{{{ign|}}}|
|- {{#if: {{{status|}}} | | style="display: none;" }}
{{!}}-
| '''Status:''' {{{status}}}  
{{!}} '''Ingame name''': {{{ign}}}
|- {{#if: {{{date|}}} | | style="display: none;" }}
}}
| '''Date:''' {{{date}}}  
{{#if:{{{alts|}}}|
|- {{#if: {{{joined|}}} | | style="display: none;" }}
{{!}}-
| '''First joined:''' {{{joined}}}  
{{!}} '''Alts''': {{{alts}}}
|- {{#if: {{{lastseen|}}} | | style="display: none;" }}
}}
| '''Last seen:''' {{{lastseen}}}  
{{#if:{{{status|}}}|
|- {{#if: {{{formed|}}} | | style="display: none;" }}
{{!}}-
| '''Formed:''' {{{formed}}}  
{{!}} '''Status''': {{{status}}}
|- {{#if: {{{abandoned|}}} | | style="display: none;" }}
}}
| '''Abandoned:''' {{{abandoned}}}  
{{#if:{{{date|}}}|
|- {{#if: {{{disbanded|}}} | | style="display: none;" }}
{{!}}-
| '''Disbanded:''' {{{disbanded}}}  
{{!}} '''Date''': {{{date}}}
|- {{#if: {{{location|}}} | | style="display: none;" }}
}}
| '''Location:''' {{{location}}}  
{{#if:{{{joined|}}}|
|- {{#if: {{{coords|}}} | | style="display: none;" }}
{{!}}-
| '''Coords:''' {{{coords}}}  
{{!}} '''First joined''': {{{joined}}}
|- {{#if: {{{members|}}} | | style="display: none;" }}
}}
| '''Members:''' {{{members}}}  
{{#if:{{{lastseen|}}}|
|- {{#if: {{{clans|}}} | | style="display: none;" }}
{{!}}-
| '''Clans:''' {{{clans}}}  
{{!}} '''Last seen''': {{{lastseen}}}
|- {{#if: {{{bases|}}} | | style="display: none;" }}
}}
| '''Bases:''' {{{bases}}}  
{{#if:{{{formed|}}}|
|- {{#if: {{{schematic|}}} | | style="display: none;" }}
{{!}}-
| '''Schematic:''' {{{schematic}}}  
{{!}} '''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|}}}
{{ #switch: {{{type|}}}
Line 86: Line 56:
| minigame = [[Category:Minigames]]
| minigame = [[Category:Minigames]]
| clan = [[Category:Clans]]
| clan = [[Category:Clans]]
| literature = [[Category:Literature]]
|}}</includeonly><noinclude>
|}}</includeonly><noinclude>
== Usage ==
== 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.
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 either admin, player, place, base, event, clan or minigame -->
|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 -->
|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 -->
Line 102: Line 74:
|lastseen  = <!-- When a player was last seen, use for players who are no longer active -->
|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 -->
|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 -->
|coords    = <!-- The coords of something. Must be given in x and z value -->
|formed    = <!-- The date a base or team was formed -->
|formed    = <!-- The date a base or team was formed -->
|abandoned  = <!-- The date a base was abandoned -->
|abandoned  = <!-- The date a base was abandoned -->
Line 109: Line 81:
|clans      = <!-- A list of clans a player or base is known to have been connected to -->
|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 -->
|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>
=== Base ===
For a base, you would generally need:
<pre>
<nowiki>
{{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 -->
}}
</nowiki>
</pre>
=== Player ===
For a player you would generally need:
<pre>
<nowiki>
{{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 -->
}}
</nowiki>
</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 -->
}}