Difference between revisions of "Template:Guild infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Parameters)
 
(17 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
| <div class="block2" style="color:#ffffff;">{{{guildlevel|-}}}</div>
 
| <div class="block2" style="color:#ffffff;">{{{guildlevel|-}}}</div>
 
|-
 
|-
 +
{{ #if:{{{age|}}} |
 +
{{pipe}}-
 +
! style="background:#f4e6d4; color:#000000;border-radius:2px; width:100px;"  align="center" {{pipe}} Created:
 +
{{pipe}} <div class="block2" style="color:#ffffff;">{{{age}}}</div>
 +
}}
 
{{ #if:{{{comms|}}} |
 
{{ #if:{{{comms|}}} |
 
{{pipe}}-
 
{{pipe}}-
Line 19: Line 24:
 
! style="background:#f5e0c7; color:#000000;border-radius:2px; width:100px;"  align="center" {{pipe}} Guild Officers:
 
! style="background:#f5e0c7; color:#000000;border-radius:2px; width:100px;"  align="center" {{pipe}} Guild Officers:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{officers}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{officers}}}</div>
 +
}}
 +
{{ #if:{{{status|}}}|{{pipe}}- valign="top"
 +
! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} {{{status}}}
 
}}
 
}}
 
|}
 
|}
  
 
{{ #switch: {{FULLPAGENAME}}
 
{{ #switch: {{FULLPAGENAME}}
| Template:Guildinfobox =  
+
| Template:Guild infobox =  
 
| Guild Template =
 
| Guild Template =
 +
| {{ #if: {{{title|}}} | [[Category:Player Guild]] }}{{ #ifeq: {{{status}}} | Inactive| [[Category:Player Guild/Inactive]] }}
 
}}
 
}}
 
<noinclude>
 
<noinclude>
__NOTOC__
+
{{clear}}__NOTOC__
 
==Syntax==
 
==Syntax==
 
<pre>
 
<pre>
{{Skill infobox
+
{{Guild infobox
 
|title            =
 
|title            =
 
|image            =
 
|image            =
Line 36: Line 45:
 
|guildtype        =
 
|guildtype        =
 
|guildlevel      =
 
|guildlevel      =
 +
|age              =
 
|comms            =  
 
|comms            =  
 
|officers        =
 
|officers        =
 +
|status          =
 
}}
 
}}
 
</pre>
 
</pre>
Line 43: Line 54:
 
Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the  "< br>" function  
 
Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the  "< br>" function  
 
; title
 
; title
: Not Optional. Defaults to article name.
+
: Required. Adding the name of a guild will also apply the proper Player Guild category to a page.
 
; image
 
; image
 
: Optional. Defaults to a .png image of the article's name. If specified, use <code><nowiki>[[Image:pagename_guild.png|300px|]]</nowiki></code>
 
: Optional. Defaults to a .png image of the article's name. If specified, use <code><nowiki>[[Image:pagename_guild.png|300px|]]</nowiki></code>
;caption
+
; caption
:Optional.
+
: Optional. A brief description of the guild. (Try to keep it under 70 characters).
;guildtype
+
; guildtype
:Required, The type of community your guild is, such as Hardcore or Social
+
: Required, The type of community your guild is, such as Hardcore, Social, Private...
;guildlevel
+
; guildlevel
:Required, Level of your guild
+
: Required, Level of your guild.
;comms
+
; age
:Optional. list of communications platforms provided by your guild
+
: Optional. Records the creation date or year of a guild.
;officers
+
; comms
;Optional. list of your guilds officers
+
: Optional. A list of communications platforms provided by your guild (Discord for example).
 +
; officers
 +
: Optional. A list of guild officers.
 +
; status
 +
: Required. Must be either '''Active''' or '''Inactive'''.
  
 
==Description==
 
==Description==
 
Create an attractive "info card" for guilds. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all guilds.
 
Create an attractive "info card" for guilds. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all guilds.
Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page.
+
Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page. This infobox is used on pages built with a format listed at [[Guild:Player Guilds]].
 
 
  
 
===Image===
 
===Image===
Line 78: Line 92:
 
|guildtype        = Social
 
|guildtype        = Social
 
|guildlevel      = 10000000000
 
|guildlevel      = 10000000000
|comms            = [[Template:Guild infobox]]
+
|age              = 2018
 +
|comms            = Discord
 
|officers        = MushroomJack, MushroomJill
 
|officers        = MushroomJack, MushroomJill
 +
|status          = Active
 
}}
 
}}
 
</pre>
 
</pre>
Line 89: Line 105:
 
|guildtype        = Social
 
|guildtype        = Social
 
|guildlevel      = 10000000000
 
|guildlevel      = 10000000000
|comms            = [[Template:Guild infobox]]
+
|age              = 2018
 +
|comms            = Discord
 
|officers        = MushroomJack, MushroomJill
 
|officers        = MushroomJack, MushroomJill
 +
|status          = Active
 
}}
 
}}
 
[[Category:Formatting templates|Guild infobox]]
 
[[Category:Formatting templates|Guild infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:05, 22 April 2023

Button Cyan.png
title
File:Guild infobox guild.png
Guild Type:
-
Guild Level:
-



Syntax

{{Guild infobox
|title            =
|image            =
|caption          =
|guildtype        =
|guildlevel       =
|age              =
|comms            = 
|officers         =
|status           =
}}

Parameters

Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the "< br>" function

title
Required. Adding the name of a guild will also apply the proper Player Guild category to a page.
image
Optional. Defaults to a .png image of the article's name. If specified, use [[Image:pagename_guild.png|300px|]]
caption
Optional. A brief description of the guild. (Try to keep it under 70 characters).
guildtype
Required, The type of community your guild is, such as Hardcore, Social, Private...
guildlevel
Required, Level of your guild.
age
Optional. Records the creation date or year of a guild.
comms
Optional. A list of communications platforms provided by your guild (Discord for example).
officers
Optional. A list of guild officers.
status
Required. Must be either Active or Inactive.

Description

Create an attractive "info card" for guilds. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all guilds. Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page. This infobox is used on pages built with a format listed at Guild:Player Guilds.

Image

The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) If an image already exists which name does not match the article name, or in a different format (png), specify it. If the image is larger/smaller the box will expand/shrink to fit it, have to specify what size you want it to appear(see below) keep in mind that the text will only be 300px in length.

Examples

Don't mind that the Titles are wrong, the title takes the name of the page it is created on.

Here you can see examples of what The templates could look like. Please note the image format is wrong in this example.

{{Guild infobox
|title            = The Guild
|image            =[[File:Hammer (skill).jpg|300px]]
|caption          = A social guild
|guildtype        = Social
|guildlevel       = 10000000000
|age              = 2018
|comms            = Discord
|officers         = MushroomJack, MushroomJill
|status           = Active
}}
Button Cyan.png
The Guild
Hammer (skill).jpg
A social guild
Guild Type:
Social
Guild Level:
10000000000
Created:
2018
Guild Communications:
Discord
Guild Officers:
MushroomJack, MushroomJill
Active