Difference between revisions of "Template:Guild infobox"
m (Added an optional parameter, auto-category for Player Guild) |
|||
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 25: | Line 30: | ||
| Template:Guildinfobox = | | Template:Guildinfobox = | ||
| Guild Template = | | Guild Template = | ||
+ | {{ #if: {{{title|}}} | [[Category:Player Guild]] }} | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
Line 36: | Line 42: | ||
|guildtype = | |guildtype = | ||
|guildlevel = | |guildlevel = | ||
+ | |age = | ||
|comms = | |comms = | ||
|officers = | |officers = | ||
Line 43: | Line 50: | ||
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 | ||
− | : | + | : Required. Defaults to article name. |
; 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 or Social. |
− | ;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 | + | : Optional. A list of communications platforms provided by your guild (Discord for example). |
+ | ; officers | ||
+ | ; Optional. A list of guild officers. | ||
==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. | ||
− | |||
===Image=== | ===Image=== | ||
Line 78: | Line 86: | ||
|guildtype = Social | |guildtype = Social | ||
|guildlevel = 10000000000 | |guildlevel = 10000000000 | ||
+ | |age = 2018 | ||
|comms = [[Template:Guild infobox]] | |comms = [[Template:Guild infobox]] | ||
|officers = MushroomJack, MushroomJill | |officers = MushroomJack, MushroomJill | ||
Line 89: | Line 98: | ||
|guildtype = Social | |guildtype = Social | ||
|guildlevel = 10000000000 | |guildlevel = 10000000000 | ||
+ | |age = 2018 | ||
|comms = [[Template:Guild infobox]] | |comms = [[Template:Guild infobox]] | ||
|officers = MushroomJack, MushroomJill | |officers = MushroomJack, MushroomJill |
Revision as of 09:23, 14 April 2023
title
| |
---|---|
File:Guild infobox guild.png | |
Guild Type: | -
|
Guild Level: | -
|
Syntax
{{Skill infobox |title = |image = |caption = |guildtype = |guildlevel = |age = |comms = |officers = }}
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. Defaults to article name.
- 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 or Social.
- 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.
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.
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 = [[Template:Guild infobox]] |officers = MushroomJack, MushroomJill }}
The Guild
| |
---|---|
A social guild
| |
Guild Type: | Social
|
Guild Level: | 10000000000
|
Created: | 2018
|
Guild Communications: | |
Guild Officers: | MushroomJack, MushroomJill
|