Template:Infobox/Faction: Difference between revisions

Template page
(Overhauled the Faction template to include business info.)
No edit summary
Tag: Manual revert
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[Category:Factions]]{{#ifeq: {{{Type}}} | Business |[[Category:Businesses]]|[[Category:{{{Type}}}]]}}<table class="infobox-table floatright" style="padding-top:0">
<includeonly>[[Category:Factions]]
{{#switch: {{{FactionSwitch}}}  
| Business = [[Category:Businesses]]
| Criminal = [[Category:Criminal (Factions)]]
| Public Sector = [[Category:Public Sector (Factions)]]
| #default = [[Category:{{{FactionSwitch}}}]]
}}<table class="infobox-table floatright" style="padding-top:0">
<tr id="infobox-table-img-bg">
<tr id="infobox-table-img-bg">
<td width="100%" colspan="3" class="infobox-table-img" style="text-align: center; padding:0 !important;">{{#if:{{{Image|}}}|[[File:{{{Image}}}|400px]]|[[File:Placeholder.png|400px]]}}</td>
<td width="100%" colspan="3" class="infobox-table-img" style="text-align: center; padding:0 !important;">{{#if:{{{Image|}}}|[[File:{{{Image}}}|400px]]|[[File:Placeholder.png|400px]]}}</td>
Line 7: Line 13:
</tr>{{#if:{{{Status|}}}{{{DateFormed|}}}{{{DateDisbanded|}}}{{{Aliases|}}}|{{#if:{{{Status|}}}|<tr>
</tr>{{#if:{{{Status|}}}{{{DateFormed|}}}{{{DateDisbanded|}}}{{{Aliases|}}}|{{#if:{{{Status|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Status</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Status</td>
<td width="60%" style="padding:3px;">[[Category:{{{Status}}} (Factions)]]{{{Status}}}</td>
<td width="60%" style="padding:3px;">[[Category:{{{Status}}} (Factions)]] [[:Category:{{{Status}}} (Factions)|{{{Status}}}]]</td>
</tr>}}{{#if:{{{FactionType|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Type</td>
<td width="60%" style="padding:3px;">[[Category:{{{FactionType}}}]] [[:Category:{{{FactionType}}}|{{{FactionType}}}]]</td>
</tr>}}{{#if:{{{DateFormed|}}}|<tr>
</tr>}}{{#if:{{{DateFormed|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">{{#ifeq: {{{Type}}} | Business |Date Opened|Date Established}}</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">{{#ifeq: {{{Type}}} | Business |Date Opened|Date Established}}</td>
Line 17: Line 26:
<td width="40%" valign="top" colspan="2" style="padding:3px;">Alliases</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Alliases</td>
<td width="60%" style="padding:3px;">{{{Aliases}}}</td>
<td width="60%" style="padding:3px;">{{{Aliases}}}</td>
</tr>}}}}{{#ifeq: {{{Type}}} | Business || {{#if:{{{Motto|}}}{{{Mission|}}}{{{Color|}}}{{{Location|}}}|<tr>
</tr>}}}}{{#ifeq: {{{FactionSwitch}}} | Business || {{#if:{{{Motto|}}}{{{Mission|}}}{{{Color|}}}{{{Location|}}}|<tr>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Gang Information</th>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Gang Information</th>
</tr>{{#if:{{{Motto|}}}|<tr>
</tr>{{#if:{{{Motto|}}}|<tr>
Line 31: Line 40:
<td width="40%" valign="top" colspan="2" style="padding:3px;">Primary Turf</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Primary Turf</td>
<td width="60%" style="padding:3px;">{{{Location}}}</td>
<td width="60%" style="padding:3px;">{{{Location}}}</td>
</tr>}}}}}}{{#ifeq: {{{Type}}} | Business|{{#if:{{{BusinessType|}}}{{{Owner|}}}{{{CEO|}}}{{{Address|}}}|<tr>
</tr>}}}}}}{{#ifeq: {{{FactionSwitch}}} | Business|{{#if:{{{Owner|}}}{{{CEO|}}}{{{Address|}}}|<tr>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Business Information</th>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Business Information</th>
</tr>{{#if:{{{BusinessType|}}}|<tr>
</tr>{{#if:{{{Owner|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Business Type</td>
<td width="60%" style="padding:3px;">[[{{{BusinessType}}}]]</td>
</tr>}}{{#if:{{{Owner|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Owner</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Owner</td>
<td width="60%" style="padding:3px;">[[{{{Owner}}}]]</td>
<td width="60%" style="padding:3px;">[[{{{Owner}}}]]</td>
Line 50: Line 56:
</tr>{{#if:{{{Allies|}}}|<tr>
</tr>{{#if:{{{Allies|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Allies</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Allies</td>
<td width="60%" style="padding:3px;">[[{{{Allies}}}]]</td>
<td width="60%" style="padding:3px;">{{{Allies}}}</td>
</tr>}}{{#if:{{{Enemies|}}}|<tr>
</tr>}}{{#if:{{{Enemies|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Enemies</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Enemies</td>
<td width="60%" style="padding:3px;">[[{{{Enemies}}}]]</td>
<td width="60%" style="padding:3px;">{{{Enemies}}}</td>
</tr>}}{{#if:{{{Investors|}}}|<tr>
</tr>}}{{#if:{{{Investors|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Investor(s)</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Investor(s)</td>
<td width="60%" style="padding:3px;">[[{{{Investors}}}]]</td>
<td width="60%" style="padding:3px;">{{{Investors}}}</td>
</tr>}}{{#if:{{{Affiliations|}}}|<tr>
</tr>}}{{#if:{{{Affiliations|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Affiliate(s)</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Affiliate(s)</td>
<td width="60%" style="padding:3px;">[[{{{Affiliations}}}]]</td>
<td width="60%" style="padding:3px;">{{{Affiliations}}}</td>
</tr>}}}}
</tr>}}}}
{{#if:{{{MapImage|}}}|<tr>
{{#if:{{{MapImage|}}}|<tr>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Map</th>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">{{#switch: {{{FactionSwitch}}}
| Criminal = Territory Map
| #default = Location Map}}</th>
</tr>
</tr>
<tr id="infobox-table-img-bg style="padding-top:10px;">
<tr id="infobox-table-img-bg style="padding-top:10px;">
Line 68: Line 76:
</tr>}}
</tr>}}
</table>
</table>
{{Short description|Faction in Let's RP}}
{{Short description|{{#switch: {{{FactionSwitch}}}
<templatestyles src="Template:InfoboxOld/styles.css" />
| Business = {{{FactionType}}} {{{FactionSwitch}}}
 
| Criminal = {{{FactionSwitch}}} {{{FactionType}}}
| Public Sector = {{{FactionSwitch}}} {{{FactionType}}}
| #default = {{{FactionSwitch}}}
}} in Let's RP}}
<templatestyles src="Template:Infobox/styles.css" />
</includeonly><noinclude>
</includeonly><noinclude>
{{/doc}}
{{/doc}}
[[Category:Infobox Templates]][[Category:Templates]]
[[Category:Infobox Templates]][[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 21:02, 22 February 2023

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Infobox/Faction/doc. Changes can be proposed in the talk page.
Template:Infobox/Faction invokes Template:Infobox/styles.css using TemplateStyles.

You can copy and paste the template parameters from below, or use the Template Wizard in the visual editor.

Usage

{{Infobox/Faction
| FactionSwitch = Business / Criminal / Public Sector
| Image = 
| Caption = 
| Status = Active / Closed / Disbanded
| DateFormed = 
| DateDisbanded = 
| Aliases = 
| FactionType = Cafe / Nightclub / Shop / Motorcycle Club / Street Gang / Mob / Syndicate / Family / Mafia / Outfit / Crew / Etc....
| Motto = 
| Mission =
| Color = 
| Location =
| Owner =
| CEO =
| Address =
| Allies = 
| Enemies = 
| Investors =
| Affiliations = 
| MapImage =
}}


A template used for the creation of Faction articles.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Type of FactionFactionSwitch

Is this a Business, Crime Organization, or Public Sector.

Suggested values
Business Criminal Public Sector
Stringrequired
Faction LogoImage

Logo of the business or crime faction.

Filesuggested
StatusStatus

Is the faction still active?

Suggested values
Active Inactive Disbanded Closed
Stringsuggested
DateFormedDateFormed

When did the faction form?

Default
YYYY-MM-DD
Numbersuggested
DateDisbandedDateDisbanded

If relevant, when did the faction disband or close?

Default
YYYY-MM-DD
Dateoptional
AliasesAliases

Alternative names the faction is known by.

Stringsuggested
Faction TypeFactionType

What type of faction is this??

Suggested values
Motorcycle Club Street Gang Mob Syndicate Family Mafia Outfit Crew Cafe Nightclub Garage Shop
Stringsuggested
Gang Only | MottoMotto

The motto or common saying of the faction.

Stringoptional
Gang Only | MissionMission

What are the goals of this faction?

Stringoptional
Gang Only | ColorColor

Does this gang have an associated color or tag?

Stringoptional
Gang Only | LocationLocation

The address or general location the gang can be found.

Stringoptional
Business Only | Business TypeBusinessType

What type of business is this?

Suggested values
Cafe Nightclub Shop
Stringoptional
Business Only | OwnerOwner

Who owns the business?

Stringoptional
Business Only | CEOCEO

Who runs the business?

Stringoptional
Business Only | AddressAddress

What's the address of the business?

Stringoptional
AlliesAllies

Does the faction have any friends or allies?

Templatesuggested
EnemiesEnemies

Does the faction have any rival or enemies?

Templatesuggested
InvestorsInvestors

Does the faction have an investor?

Templateoptional
AffiliationsAffiliations

Is the faction affiliated with any other factions?

Templatesuggested
MapImageMapImage

Picture of the location on a map where the business or faction can be found.

Filesuggested