Difference between revisions of "Template:Test Faction Infobox"

From Discovery Wiki
Jump to navigationJump to search
(test)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Workinprogress|leader=[[User:Chovynz]]}}
+
<noinclude>{{Work in progress|leader=[[User:Chovynz]]}}{{Stub|
__TOC__
+
*This needs the <nowiki>{{{type}}} parameter</nowiki> to default to NPC
Thoughts:
+
*This needs the <nowiki>{{{server}}} parameter</nowiki> to default to GC
 
+
*DO NOT OVERWRITE THE EXISTING TEMPLATE WITH THIS ONE UNTIL THESE ARE DONE. ASK Chovynz. It's needs thorough testing before applying.
So... the template needs
+
*We will need to manually change the player factions, however this template will take care of all the NPC Factions, once the defaults are on.
*<nowiki>|server =</nowiki>
+
*That means, that eventually (DON'T START NOW), pages like '''Deep Space Engineering (player faction)''' will need to either change their names to '''Deep Space Engineering (player faction GC)''', and all player faction will have a redirect for awhile from '''(player faction)''' to the (player faction GC).
The banner will be automatically placed based on the server field.  
+
*It also means all player factions will need to have three fields added to their infobox information.
*Need banners for each server. Mark on To Do
+
<pre>| server = GC
*<nowiki>[[Category:<server> Player Factions]]</nowiki>
+
| type =
This will be set by server field too.
+
| affiliation = </pre>
[3:20:35 p.m.] Nathaniel (Hyung Soong) says: maybe even
+
*I'm intending on have a disambiguation page linking from the NPC factions, to a list of all the server factions of each name. Alternatively, Some other solution.}}
*<nowiki>|official=</nowiki>
+
<!--</noinclude>
*<nowiki>|official_affiliation=</nowiki>
+
{{#if: {{{type|}}}
[3:21:10 p.m.] Nathaniel (Hyung Soong) says: if yes then put that official at top, if not then put player group at top.
+
| {{{type}}}
 
+
| type is undefined. How do I add the parameter default when the infobox doesn't use it?
[[Category:DiscoUK Player Factions]]
+
}}
 
+
{{#ifeq:{{NAMESPACE}}|Template||
=Working Area=
+
{{#ifeq: {{{type}}}|NPC|{{#switch: {{{type}}}
==<Faction Name> - (player faction <server>)==
+
| NPC = [[Category:Factions]] [[Category:{{{name}}}]]
 
+
}}|}}
</noinclude>
+
{{#ifeq: {{{type}}}|GROUP|{{#switch: {{{server}}}
 +
| GC = [[Category:DiscoGC Player Groups]]
 +
| UK = [[Category:DiscoUK Player Groups]]
 +
| USA = [[Category:DiscoUSA Player Groups]]
 +
| DOD = [[Category:Discovery of Discovery Player Groups]]
 +
| BERLIN = [[Category:Berlin Player Groups]]
 +
| F7 = [[Category:Freeport 7 Player Groups]]
 +
| FLAW = [[Category:Flaw Player Groups]]
 +
| DELTA = [[Category:Delta Player Groups]]
 +
}}|}}
 +
{{#ifeq: {{{type}}}|OFFICIAL|{{#switch: {{{server}}}
 +
| GC = [[Category:DiscoGC Player Factions]]
 +
| UK = [[Category:DiscoUK Player Factions]]
 +
| USA = [[Category:DiscoUSA Player Factions]]
 +
| DOD = [[Category:Discovery of Discovery Player Factions]]
 +
| BERLIN = [[Category:Berlin Player Factions]]
 +
| F7 = [[Category:Freeport 7 Player Factions]]
 +
| FLAW = [[Category:Flaw Player Factions]]
 +
| DELTA = [[Category:Delta Player Factions]]
 +
}}|}}
 +
}}
 
{{#ifeq: {{{type}}}|NPC|:''This is {{#switch: {{{type}}}
 
{{#ifeq: {{{type}}}|NPC|:''This is {{#switch: {{{type}}}
 
|NPC = a NPC Faction
 
|NPC = a NPC Faction
Line 25: Line 45:
 
|GROUP = an unofficial player group
 
|GROUP = an unofficial player group
 
}}.''|:''This is {{#switch: {{{type}}}
 
}}.''|:''This is {{#switch: {{{type}}}
|NPC = a NPC Faction
+
| NPC = a NPC Faction
|OFFICIAL = an official player faction
+
| OFFICIAL = an official player faction
|GROUP = an unofficial player group
+
| GROUP = an unofficial player group
 
}} on the {{#switch: {{{server}}}
 
}} on the {{#switch: {{{server}}}
 
|GC = [http://discoverygc.com/ Discovery Gaming Community]
 
|GC = [http://discoverygc.com/ Discovery Gaming Community]
Line 37: Line 57:
 
|FLAW = Flaw
 
|FLAW = Flaw
 
|DELTA = Delta
 
|DELTA = Delta
|#default =
 
 
}} Server. {{#if: {{{affiliation|}}}
 
}} Server. {{#if: {{{affiliation|}}}
| For the affiliated NPC Faction see [[{{{affiliation}}}]].''
+
| For the affiliated NPC Faction see {{{affiliation}}}.''
 
|  
 
|  
 
}} }}
 
}} }}
Line 46: Line 65:
 
| colspan="2" class="infobox-name" | '''{{{name}}}'''
 
| colspan="2" class="infobox-name" | '''{{{name}}}'''
 
|-
 
|-
| colspan="2" style="padding: 0px; text-align: center;" | {{#switch: {{{server}}}
+
| colspan="2" style="padding: 0px; text-align: center;" | {{#ifeq: {{{type}}}|NPC||{{#switch: {{{server}}}
 
| GC = [[Image:FLGC-faction.jpg|264px]]
 
| GC = [[Image:FLGC-faction.jpg|264px]]
 
| UK = [[Image:FLUK-faction.jpg|264px]]
 
| UK = [[Image:FLUK-faction.jpg|264px]]
| USA = USA Banner
+
| USA = USA Server
| DOD = -&#61;Discovery of Discovery&#61;-
+
| DOD = -&#61;Discovery of Discovery&#61;- Server
| BERLIN = Berlin
+
| BERLIN = Berlin Server
| F7 = Freeport 7
+
| F7 = Freeport 7 Server
| FLAW = Flaw
+
| FLAW = Flaw Server
| DELTA = Delta
+
| DELTA = Delta Server
| #default =
+
}}}}
}}
 
|-
 
| colspan="2" style="padding: 0px; text-align: center;" | '''{{{type}}}'''
 
 
|-
 
|-
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
Line 71: Line 87:
 
}}
 
}}
 
|-
 
|-
| class="infobox-data-title" style="width: 110px;" | '''affiliation '''
+
{{#ifeq: {{{type}}}|NPC||
| style="padding-right: 1em;" | {{#if: {{{affiliation |}}}
+
{{!}} class="infobox-data-title" style="width: 110px;" {{!}} '''Affiliation '''
| {{{affiliation }}}
+
{{!}} style="padding-right: 1em;" {{!}}{{{affiliation}}}
| ''affiliation ''
+
{{!}}-}}
}}
 
|-
 
 
| class="infobox-data-title" | '''Alignment'''
 
| class="infobox-data-title" | '''Alignment'''
 
| style="padding-right: 1em;" | {{#switch: {{{alignment}}}
 
| style="padding-right: 1em;" | {{#switch: {{{alignment}}}
Line 84: Line 98:
 
| CORPORATION = Lawful/Corporation
 
| CORPORATION = Lawful/Corporation
 
| INDEPENDENT = Independent
 
| INDEPENDENT = Independent
 +
| ALIEN = Alien
 
| #default = {{{alignment}}}
 
| #default = {{{alignment}}}
 
}}
 
}}
Line 125: Line 140:
 
{{!}} colspan="2" {{!}} {{{secondary_role}}} }}
 
{{!}} colspan="2" {{!}} {{{secondary_role}}} }}
 
|}
 
|}
{{#ifeq: {{{type}}}|NPC||{{#switch: {{{server}}}
 
| GC = [[Image:FLGC-faction.jpg|500px]]
 
| UK = [[Image:FLUK-faction.jpg|500px]]
 
| USA = USA Banner
 
| DOD = -&#61;Discovery of Discovery&#61;-
 
| BERLIN = Berlin
 
| F7 = Freeport 7
 
| FLAW = Flaw
 
| DELTA = Delta
 
| #default = {{{server}}}
 
}}}}
 
 
 
 
<noinclude>
 
<noinclude>
 +
-->
 +
<div style="color:red;font-size:large;">Please be careful when using this template.</div>
 +
'''This Template will automatically add'''
 +
*Category <server faction>, + <server> infobox banner
 +
*Category <server group>, + <server> infobox banner
  
 +
'''Affiliation'''
 +
*Affiliation needs a <nowiki>[[link]]</nowiki> to be most effective.
 +
**if affiliation is not specified the affiliation value WILL NOT display (For those factions that aren't affiliated.)
  
 +
'''Type can be'''
 +
*NPC
 +
*OFFICIAL
 +
*GROUP
  
 +
**if the type is NPC, the entire "Affiliation" variable and "Server" variable WILL NOT display
 +
**if the type is OFFICIAL or GROUP, "Affiliation" and "Server" WILL display
 +
Currently this template bugs when all three are unspecified.
  
 
-->
 
 
=Usage=
 
=Usage=
 
<pre>{{Faction Infobox
 
<pre>{{Faction Infobox
Line 165: Line 180:
  
 
server can be one of these choices:
 
server can be one of these choices:
*GC
+
*GC (Default)
 
*UK
 
*UK
 
*USA
 
*USA
*PVP
+
*DOD
 
*BERLIN
 
*BERLIN
 
*F7
 
*F7
Line 178: Line 193:
 
*OFFICIAL
 
*OFFICIAL
 
*GROUP
 
*GROUP
 +
 +
affiliation
 +
*will need a <nowiki>[[link]]</nowiki> to be effective
  
 
=Example=
 
=Example=
 
<pre><nowiki>{{Test Faction Infobox
 
<pre><nowiki>{{Test Faction Infobox
| server = GC
+
| server =  
 
| name = Red Hessians
 
| name = Red Hessians
| type = Official
+
| type =  
 
| image = Freital.jpg
 
| image = Freital.jpg
 
| imgsz =
 
| imgsz =
Line 201: Line 219:
 
{{Test Faction Infobox
 
{{Test Faction Infobox
 
| server = GC
 
| server = GC
 +
| type = GROUP
 +
| affiliation = [[Red Hessians]]
 
| name = Red Hessians
 
| name = Red Hessians
| type = NPC
 
 
| image = Freital.jpg
 
| image = Freital.jpg
 
| imgsz =
 
| imgsz =
 
| origin = {{House Link | Rheinland}}
 
| origin = {{House Link | Rheinland}}
 
| alignment = UNLAWFUL
 
| alignment = UNLAWFUL
| affiliation =
 
 
| founding_date = 700
 
| founding_date = 700
 
| dissolution_date = 800
 
| dissolution_date = 800

Latest revision as of 02:17, 6 February 2012

150px-WIP2.png This page is currently being developed by one or more editors being led by User:Chovynz. Please refer to the talk page to learn about and/or contribute to the completion of this page. You can also contact the leader on their discussion page.

Talk Page

Please be careful when using this template.

This Template will automatically add

  • Category <server faction>, + <server> infobox banner
  • Category <server group>, + <server> infobox banner

Affiliation

  • Affiliation needs a [[link]] to be most effective.
    • if affiliation is not specified the affiliation value WILL NOT display (For those factions that aren't affiliated.)

Type can be

  • NPC
  • OFFICIAL
  • GROUP
    • if the type is NPC, the entire "Affiliation" variable and "Server" variable WILL NOT display
    • if the type is OFFICIAL or GROUP, "Affiliation" and "Server" WILL display

Currently this template bugs when all three are unspecified.

Usage

{{Faction Infobox
| server =
| name = 
| type =
| image = 
| imgsz =
| origin = 
| alignment = 
| affiliation =
| founding-date = 
| dissolution-date = 
| leader = 
| founder = 
| primary-role = 
| secondary-role = 
| base = 
}}

server can be one of these choices:

  • GC (Default)
  • UK
  • USA
  • DOD
  • BERLIN
  • F7
  • FLAW
  • DELTA

type can be one of these choices:

  • NPC
  • OFFICIAL
  • GROUP

affiliation

  • will need a [[link]] to be effective

Example

{{Test Faction Infobox
| server = 
| name = Red Hessians
| type = 
| image = Freital.jpg
| imgsz =
| origin = {{House Link | Rheinland}}
| alignment = UNLAWFUL
| founding_date = 700
| dissolution_date = 
| leader = 
| founder = 
| primary_role = Liberation of Rheinland
| secondary_role = Undermining corrupt Rheinland corporations, containing the Corsair expansion
| base = [[Vogtland Base]], [[Dresden]]
}}

Note: The imgsz variable allows you to specify the size an image is displayed at (Example: 128px) and is best used to keep an image from being stretched and distorted. If no value is placed in this field the image will be sized to the default value of 264px.

Result

GROUP

This is an unofficial player group on the Discovery Gaming Community Server. For the affiliated NPC Faction see Red Hessians.
Red Hessians
FLGC-faction.jpg
Origin Flag-rheinland.png Rheinland
Affiliation Red Hessians
Alignment Unlawful
Profile
Date of founding 700 A.S.
Date of dissolution 800 A.S.
Founder(s) Mr Founder Man
Current leader(s) Mr Big Guy
Base of operations Vogtland Base, Dresden
Primary role
Liberation of Rheinland
Secondary role
Undermining corrupt Rheinland corporations, containing the Corsair expansion

The No. Outcast splinter faction was founded in 800 AS, and it has had an illustrious past. It was the brainchild of Pedro Portillo, a gifted scientist involved in cardamine research. He was annoyed at the restrictions on research caused by the corruption in the Council of Dons, which divided efforts and prevented effective research. Portillo collected a group of like-minded scientists and the No. was formed.

The original name of the No. was actually the Independent Cardamine Research Division (ICRD), which, under Portillo, began making significant progress in the field of modifying cardamine. However, the scientists found that in order to collect source material and vital resources, they had to venture out of the safety of Galicia Research Station. The ICRD found Omicron-81 very safe, as no enemy could penetrate multiple Outcast systems to get there. However, when venturing into neighbouring Omicron-80’s far reaches to conduct research, they found a few bounty hunters patrolling, looking to snap up random patrols. Portillo’s Sabre, named No.Rest, and the defensive Maltese Navy contingent was barely enough to repulse the attack, and Portillo returned to Galicia needing more power in order to further his research.

Portillo approached a well-known Outcast on Seguro Refugio, Guerra Diaz, and asked him for help. Guerra was more willing than Portillo had expected, and offered to join the No. as his second in command. Portillo, seeing that Guerra was an able scientist as well as a fearsome warrior, agreed. Guerra immediately set to work organising Navy aid and recommended various Outcasts to Portillo for recruitment. He renamed his Sabre No.Regret.