Difference between revisions of "Template:Clanbox"

From The Shartak Wiki
Jump to navigationJump to search
m
(/sub Officially recognized clans / Clans)
 
(37 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| border=0 cellpadding=2 cellspacing=0 align=right width=300 style="margin:0 0 0.5em 0.5em;border:1px solid #AAAAAA;border-collapse:collapse;font-size:95%;"
+
<includeonly>{| cellpadding="4" cellspacing="0" style="border: solid 1px #ccc; background-color: #f9f9f9; border-collapse: collapse; float: right; font-size: 95%; margin: 0 0 .5em .5em; width: 300px"
| bgcolor=#66aa66 align=center colspan=2 style="padding:5px;font-size:large;color:#003300;" | '''{{{clan_name}}}'''
+
|colspan="2" style="background-color: #8b8; font-size: large; padding: 5px; text-align: center"| '''{{{clan_name|&nbsp;}}}'''{{#ifeq:{{{clan_image|}}}|||
|-  
+
{{!}}-style="background-color: #ffffff; text-align: center;"
| bgcolor=#BBBBBB align=center colspan=2 | {{{clan_image}}}
+
{{!}}colspan="2"{{!}}{{{clan_image}}}}}{{#ifeq:{{{official_id|}}}|||
|-
+
{{!}}-style="background-color: #c3ddc3; text-align: center;"
| valign=top style="width:120px;padding-left:4px;" | '''Abbreviation:'''
+
{{!}}colspan="2"{{!}}[http://www.shartak.com/clanview.cgi?id={{{official_id}}} In-game page]}}
| {{{clan_abbrev}}}
+
|-style="vertical-align: top; width: 120px"
|-
+
|'''Leadership:'''||{{{clan_leaders|}}}
| bgcolor=#eeeeee valign=top style="width:120px;padding-left:4px;" | '''Leadership:'''
+
|-style="background-color: #f2f2f2; vertical-align: top"
| bgcolor=#eeeeee | {{{clan_leaders}}}
+
|'''Members:'''||{{{clan_membership|}}}
|-
+
|-style="vertical-align: top"
| valign=top style="width:120px;padding-left:4px;" | '''Clan membership:'''
+
|'''Goals:'''||{{{clan_goals|}}}
| {{{clan_membership}}}
+
|-style="background-color: #f2f2f2; vertical-align: top"
|-
+
|'''Recruitment policy:'''||{{{clan_recruit|}}}
| bgcolor=#eeeeee valign=top style="width:120px;padding-left:4px" | '''Clan goals:'''
+
|-style="vertical-align: top"
| bgcolor=#eeeeee | {{{clan_goals}}}
+
|'''Contact:'''||{{{clan_contact|}}}
|-
+
|}
| valign=top style="width:120px;padding-left:4px;" | '''Recruitment policy:'''
+
{{#ifeq:{{{active|}}}|no|{{#ifeq:{{{sort_as|}}}||[[Category:Inactive clans]]|[[Category:Inactive clans|{{{sort_as}}}]]}}|{{#ifeq:{{{sort_as|}}}||[[Category:Clans]]|[[Category:Clans|{{{sort_as}}}]]}}{{#ifeq:{{{open_to|}}}|||{{#ifeq:{{{sort_as|}}}||[[Category:Clans for {{{open_to}}}]]|[[Category:Clans for {{{open_to}}}|{{{sort_as}}}]]}}}}{{#ifeq:{{{official_id|}}}|||{{#ifeq:{{{sort_as|}}}||[[Category:Clans]]|[[Category:Clans|{{{sort_as}}}]]}}}}}}</includeonly>
| {{{clan_recruit}}}
+
<noinclude><br style="clear: both" />Each [[clan]] should use this template to present their information in the way visitors expect.
|-
+
 
| bgcolor=#eeeeee valign=top style="width:120px;padding-left:4px;" | '''Contact:'''
+
== Usage ==
| bgcolor=#eeeeee | {{{clan_contact}}}
+
<nowiki>{{Clanbox|</nowiki>
|}<includeonly>[[Category:Clans]]</includeonly><noinclude>[[Category:Templates|Clanbox]]</noinclude>
+
clan_name='''Clan Name'''|
 +
official_id=|
 +
open_to='''everyone'''|
 +
clan_image=|
 +
clan_leaders=|
 +
clan_membership=|
 +
clan_goals=|
 +
clan_recruit=|
 +
clan_contact=|
 +
sort_as=|
 +
}}
 +
 
 +
=== Fields ===
 +
Required fields are in bold text.
 +
* '''''clan_name''''': The name.
 +
* ''official_id'': If the clan is registered, its ID is the number at the end of the address of its in-game page. If it's not registered, leave this field blank.
 +
* '''''open_to''''': Must be ''everyone'', ''outsiders'', or ''natives'', with no capitalization.
 +
* ''clan_image'': An image for the clan. Large images should be used like <nowiki>[[Image:ClanImage.jpg|300px]]</nowiki>, where 300 is the width in pixels to shrink the image to on the page.
 +
* ''clan_leaders'': The leader(s), if any.
 +
* ''clan_membership'': The number of members.
 +
* ''clan_goals'': The goals, if any.
 +
* ''clan_recruit'': Recruiting policies, if any.
 +
* ''clan_contact'': Preferred methods of contact.
 +
* ''sort_as'': Sort key; leave blank in most cases. If your clan's name is "The Wimps", this should be "Wimps, The" to be sorted in the W's.
 +
Additionally, adding ''active=no'' to the template will categorize the clan page in [[:Category:Inactive clans]] instead of the customary clan categories.
 +
 
 +
[[Category:Templates|Clanbox]]</noinclude>

Latest revision as of 00:11, 13 March 2010


Each clan should use this template to present their information in the way visitors expect.

Usage

{{Clanbox|
clan_name=Clan Name|
official_id=|
open_to=everyone|
clan_image=|
clan_leaders=|
clan_membership=|
clan_goals=|
clan_recruit=|
clan_contact=|
sort_as=|
}}

Fields

Required fields are in bold text.

  • clan_name: The name.
  • official_id: If the clan is registered, its ID is the number at the end of the address of its in-game page. If it's not registered, leave this field blank.
  • open_to: Must be everyone, outsiders, or natives, with no capitalization.
  • clan_image: An image for the clan. Large images should be used like [[Image:ClanImage.jpg|300px]], where 300 is the width in pixels to shrink the image to on the page.
  • clan_leaders: The leader(s), if any.
  • clan_membership: The number of members.
  • clan_goals: The goals, if any.
  • clan_recruit: Recruiting policies, if any.
  • clan_contact: Preferred methods of contact.
  • sort_as: Sort key; leave blank in most cases. If your clan's name is "The Wimps", this should be "Wimps, The" to be sorted in the W's.

Additionally, adding active=no to the template will categorize the clan page in Category:Inactive clans instead of the customary clan categories.