Difference between revisions of "Template:Units&Clans"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
(Initial implementation of Clan/Unit infobox.)
 
m (Revert to previous)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| class="Units&Clans" style="border:2px solid #e69710; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; margin: 0px 0px 10px 10px;" cellpadding="4" cellspacing="1" rules="all" align="right"
{| class="Units&Clans" style="border:1px solid #250b2d; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}};" cellpadding="1" cellspacing="0" rules="all" align="right"
 
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{PAGENAME}}
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{PAGENAME}}
 
|-
 
|-
| colspan="3" style="text-align:center" | [[{{{Image}}} | {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]  
+
| colspan="3" style="text-align:center; padding:0" | [[{{{Image}}} | {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]
 
|-
 
|-
 
{{#if: {{{Tag|}}} |
 
{{#if: {{{Tag|}}} |
Line 18: Line 17:
 
{{!}} Website:
 
{{!}} Website:
 
{{!}} colspan="2" style="background:#383838" {{!}} {{{Website}}}
 
{{!}} colspan="2" style="background:#383838" {{!}} {{{Website}}}
 +
|}}
 +
|-
 +
{{#if: {{{Forums|}}} |
 +
{{!}} Unit Forums:
 +
{{!}} colspan="2" style="background:#383838" {{!}} {{{Forums}}}
 
|}}
 
|}}
 
|-
 
|-
Line 33: Line 37:
 
{{!}} TS3:
 
{{!}} TS3:
 
{{!}} colspan="2" style="background:#383838" {{!}} {{{TS3}}}
 
{{!}} colspan="2" style="background:#383838" {{!}} {{{TS3}}}
 +
|}}
 +
|-
 +
{{#if: {{{Servers|}}} |
 +
{{!}} Game Servers:
 +
{{!}} colspan="2" style="background:#383838" {{!}} {{{Servers}}}
 
|}}
 
|}}
 
|-
 
|-
Line 57: Line 66:
 
|}}
 
|}}
 
|-
 
|-
|}
+
|}</includeonly>
{{ClearRight}}
+
<noinclude>{{Documentation}} [[Category:Infoboxes]]</noinclude>
</includeonly>
 
 
 
<noinclude>
 
{{Units&Clans
 
| Image = File:Happy-Snake-wiki.png
 
| ImageSize =
 
| Tag = {Serp}
 
| Affiliation = Merc
 
| Website = www.mwll-wiki.clanjadewolf.net
 
| RecruitmentInfo =
 
| Discord = asdfagsadfasdf
 
| TS3 =
 
| Members = 1-3
 
| RecruitmentStyle = Invite Only
 
| Leaders = Serpentis
 
| Timezone = Whenever
 
|}}
 
 
 
==Usage==
 
<nowiki>{{Units&Clans</nowiki><br>
 
| Image = '''<nowiki>[[File:Name Of Image.png]]</nowiki>'''<br>
 
| ImageSize = '''Number only (in px; optional; default 350)'''<br>
 
| Tag = '''Unit tag (orientation)'''<br>
 
| Affiliation = '''Merchants / Clans / Inner Sphere / Multi-nation or other of Clan/Unit pick'''<br>
 
| Website = '''Unit website'''<br>
 
| RecruitmentInfo = '''Information on how to become a member'''<br>
 
| Discord = '''Unit Discord invite'''<br>
 
| TS3 = '''Unit TeamSpeak server info'''<br>
 
| Members = '''Member count (approximate)'''<br>
 
| RecruitmentStyle = '''Open / Invitation only / Closed'''<br>
 
| Leaders = '''List of unit leaders'''<br>
 
| Timezone = '''+/- GMT'''<br>
 
}}
 
 
 
===Notes===
 
All fields except image are optional.
 
 
 
{{Clear}}
 
 
 
==Template==
 
<pre>
 
{{Units&Clans
 
| Image =
 
| ImageSize =
 
| Tag =
 
| Affiliation =
 
| Website =
 
| RecruitmentInfo =
 
| Discord =
 
| TS3 =
 
| Members =
 
| RecruitmentStyle =
 
| Leaders =
 
| Timezone =
 
}}
 
</pre>
 

Latest revision as of 01:32, 15 May 2020

Documentation icon Template documentation[view] [edit] [history] [purge]

This infobox template is for community Clans and/or Units.

Usage

Units&Clans
Happy-Snake-wiki.png
Tag: {Serp}
Affiliation: Merc
Website: https://wiki.mechlivinglegends.net
Discord: asdfagsadfasdf
Members
Members: 1-3
Recruitment Style: Invite Only
Leaders: Serpentis
Timezone: Whenever

Blank Template

The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Most parameters are not required and will not be displayed when left blank or omitted.

{{Units&Clans
| Image = 
| ImageSize = 
| Tag = 
| Affiliation = 
| Website = 
| Forums = 
| RecruitmentInfo = 
| Discord = 
| TS3 = 
| Servers = 
| Members = 
| RecruitmentStyle = 
| Leaders = 
| Timezone = 
}}

Parameters

Parameter Required Function
Image Yes Image name: File:abc.jpg, File:xpz.png, Image:123.gif; Image name must be prefixed with Image: or File: to function.
ImageSize No Image size is the width of the image. Will also determine the width of the infobox. Defaults to 350px when omitted.
Tag No Clan/Unit Tag.
Affiliation No Merchants / Clans / Inner Sphere / Multi-nation or other of Clan/Unit pick
Website No The Clan/Unit's personal website.
Forums No The Clan/Unit's private forum or MWLL forum topic.
RecruitmentInfo No Information on how to become a member or link to Clan/Unit's recruitment page.
Discord No Invitation to Clan/Unit's personal Discord server.
TS3 No Clan/Unit's personal TeamSpeak server info.
Servers No List of game servers hosted by Clan/Unit.
Members No Member count (approximate).
RecruitmentStyle No Clan/Unit's recruitment style. eg: Open / Invitation only / Closed.
Leaders No List of Clan/Unit's leaders. If multiple, must use <ul> and <li> to display properly.
Timezone No The time zone it is typical to find the most members of a Clan/Unit online. In +/- GMT time.