Difference between revisions of "User:Amidatelion"

From BTAWiki
Jump to navigation Jump to search
 
(82 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is to verify that [https://www.reddit.com/user/amidatelion /u/amidatelion] / amidatelion(at)outlook(dot)com is, in fact, the Amidatelion who [https://www.bta3062.com/index.php?title=Special:Contributions/Amidatelion admins this wiki].
+
==Faction Store Inventory==
 +
The Federated Suns faction store can be accessed in any of their systems after allying with them. [[Faction Stores|A list of all faction stores can be found here.]]
  
===(DEPRECATED) Creating Faction Pages ===
+
'''Legend:'''
{{warning|1= This entire section has been deprecated by Fulmir's automated template. It's left up to help with any manual edits that may need to be done, particularly the module descriptions.}}  
+
*{{Highlight|Faction Unique|LightBlue}}
  
 
+
{| class="wikitable " style="text-align: center"
<div class="toccolours mw-collapsible mw-collapsed">
+
! Faction
<div style="font-weight:bold;line-height:1.6;">AC/2</div>
+
! Weapons
<div class="mw-collapsible-content">
+
! Ammunition
 
+
! Equipment
Faction pages are made from several categories:
+
! Full 'Mechs
 
+
! 'Mech Parts
* Infobox 
+
! Vehicles
* Sub-Commands (for major factions)
+
! Battle Armor
* Description 
+
! Contracts
* Enemy Factions 
+
|-
* Faction Store Inventory 
+
! [[File:Davion_logo.png|link=Federated Suns|75px]]
* Starting Mechs
+
[[Federated Suns|Federated Suns (Davion)]]
* Faction Mechs
+
| [[Weapons#BA Light Recoilless Rifle|BA Light Recoilless Rifle]]</br>[[Weapons#Single Shot|BA Magshot Gauss Rifle]]</br>[[Weapons#BA Light Recoilless Rifle|BA Light Recoilless Rifle]]</br>[[Weapons#Single Shot|BA Magshot Gauss Rifle]]</br>[[Weapons#BA SMG|BA SMG]]</br>[[Weapons#Bomb Bays|Cluster Bomb]]</br>[[Weapons#Bomb Bays|HiEx Bomb]]</br>[[Weapons#Bomb Bays|Inferno Bomb]]</br>[[Weapons#Mech Taser|Mech Taser]]</br>[[Weapons#Rotary Autocannons|Rotary AC/2]]</br>[[Weapons#Rotary Autocannons|Rotary AC/5]]</br>[[Weapons#Ultra Autocannons|UAC/2]]</br>[[Weapons#Ultra Autocannons|UAC/5]]</br>[[Weapons#Ultra Autocannons|UAC/10]]</br>[[Weapons#Ultra Autocannons|UAC/20]]</br>
 
+
| [[Ammunition#|Ammo LRM ARTIV]]</br>[[Ammunition#|Ammo RAC/2]]</br>[[Ammunition#|Ammo RAC/2 [Half]]]</br>[[Ammunition#|Ammo RAC/5]]</br>[[Ammunition#|Ammo RAC/5 [Half]]]</br>[[Ammunition#|Ammo SRM ARTIV]]</br>[[Ammunition#|Ammo Taser]]</br>[[Ammunition#|Ammo UAC/2]]</br>[[Ammunition#|Ammo UAC/5]]</br>[[Ammunition#|Ammo UAC/10]]</br>[[Ammunition#|Ammo UAC/20]]</br>
Since all the factions are new, we make BD deal with the Infobox and Description because new factions are probably going to be homebrew. Enemy Factions currently have to be filled out by hand, consult the code at <code>BT Advanced Factions\factions\faction_NAME.json</code>.
+
| [[Weapon_Attachments#Artemis IV FCS|Artemis IV FCS]]</br>[[Weapon_Attachments#Autocannon FCS|Autocannon FCS]]</br>[[Foot_Actuators#Foot Roundhouse + +|Foot Roundhouse + +]]</br>[[Cooling#Heat Sink Freezer (D)|Heat Sink Freezer (D)]]</br>[[Lower_Leg_Actuators#Lower Leg Muay Thai + +|Lower Leg Muay Thai + +]]</br>[[Shoulder_Actuators#Shoulder Tackle + +|Shoulder Tackle + +]]</br>{{Highlight|[[Armor#Ultra Ferro-Fibrous Armor|Ultra Ferro]]|LightBlue}}</br>[[Upper_Arm_Actuators#Upper Arm Impede + +|Upper Arm Impede + +]]</br>
 
+
| [[Argus#AGS-4D|Argus AGS-4D]]</br>[[Battleaxe#BKX-8K|Battleaxe BKX-8K]]</br>[[Bushwacker#BSW-X1|Bushwacker BSW-X1]]</br>[[Chimera#CMA-1S|Chimera CMA-1S]]</br>[[Dervish#DV-7D|Dervish DV-7D]]</br>[[Enfield#END-6Q|Enfield END-6Q]]</br>[[Enforcer II#ENF-5D|Enforcer II ENF-5D]]</br>[[Fireball#ALM-8D|Fireball ALM-8D]]</br>[[JagerMech II#JM7-F|JagerMech II JM7-F]]</br>[[Osiris#OSR-3D|Osiris OSR-3D]]</br>[[Penetrator#PTR-4D|Penetrator PTR-4D]]</br>[[Salamander#PPR-5S|Salamander PPR-5S]]</br>[[Griffin_(60T)#GRF-2N-X|Super Griffin GRF-2N-X]]</br>[[Super Wasp#WSP-2A-X|Super Wasp WSP-2A-X]]</br>[[Swordsman#SWD-3|Swordsman SWD-3]]</br>[[Talon#TLN-5W|Talon TLN-5W]]</br>[[Templar#TLR1-O|Templar TLR1-O]]</br>[[Titan#TI-1A|Titan TI-1A]]</br>[[Valkyrie II#VLK-II-2A|Valkyrie II VLK-II-2A]]</br>[[Valkyrie#VLK-QD|Valkyrie VLK-QD]]</br>[[Wasp LAM#WSP-103|Wasp LAM WSP-103]]</br>
The Faction Store Inventory section is the single most complicated bit: in order to get it to work, you need to update the [[Module:Factions|Module Factions]] page, the [[Template:TableFactionStore|Faction Store Table]], and then you need to generate a [[Template:FactionStoreRasalhague|formatted entry]] for that table.
+
| [[JagerMech II#JM7-D|JagerMech II JM7-D]]</br>[[Valkyrie II#VLK-II-2A|Valkyrie II VLK-II-2A]]</br>
 
+
| [[Paladin#Paladin Prototype Defense System|Paladin Prototype Defense System]]</br>
Starting Mechs simply calls the appropriate Starter template.
+
| [[Grenadier Battle Armor#|Grenadier Battle Armor]]</br>[[Infiltrator Mk II Battle Armor#|Infiltrator Mk II Battle Armor]]</br>
 
+
|
Faction Mechs uses the Template and Module below.
+
|-
 
+
|}
 
 
====Mech Factions Script Overview====
 
 
 
Script page: [[Module:Factions]]
 
 
 
In short, this script does two things.
 
 
 
'''factionMechs''': This takes in a factionId (ex: Davion, ClanNovaCat, EridaniLightHorse, etc) and outputs a list of mechs, by weight class, fielded by that faction. This is used for faction entries to show all mechs fielded by a faction.
 
; Code Overview
 
: This is fairly simple. It searches the wiki database for mechs that have the given faction in their tags list. Then it defines a function for making links, this function adjusts some specific mech variants slightly so they link to correct pages. Next we create mechList, which will be our final return, and four unordered lists for each weight class of mech. The list elements are then populated based on mech tonnage in a for loop, and finally added to the return div element, which is finally returned.
 
 
 
'''mechFactions''': This takes a mech variant (ex: AS7-D, CP-10-HQ, MAD-5S, etc) and outputs a list of factions that use that mech. This is used on mech pages to list the factions where a given mech variant can be fought. The list is outputted as a collapsible div with a list containing the major factions that field that mech. Any faction with sub-commands will have a further expandable section listing the sub-commands fielding the mech.
 
; Code Overview
 
: This function gets the mech variant given, and then iterates through its tags, tags in <code>factionIdsToNames</code> are deemed to be faction tags and processed further. These faction tags are added to a dictionary of parent tags to child tags. If a tag isn't in <code>spamFactionsToParents</code> then it's added as its own parent. We then create the HTML framework using mediawiki with a parent list element. The dictionary of tags is then gone through in alphabetical order by parent tag. Single tags are just added to the list as individual items, tags with multiple children are added as their own sub-list. The idea here is that the list of parent tags is which parent faction to go fight to acquire a mech, while specific sub-factions are listed under that. Finally the tag is appended to the parent unordered list tag. When all parent factions have been iterated through the list is returned.
 
</div>
 

Latest revision as of 03:25, 1 May 2024