Difference between revisions of "User:Tvol"

From UFOpaedia
Jump to navigation Jump to search
 
(35 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
I'm hanging-out on the [https://discordapp.com/invite/0kl6nyAsBOjaIBdU XCOM discord server] if you want to chat directly or over voice (dependent on availability and what I'm doing at the time).
 
I'm hanging-out on the [https://discordapp.com/invite/0kl6nyAsBOjaIBdU XCOM discord server] if you want to chat directly or over voice (dependent on availability and what I'm doing at the time).
  
 
+
I have stopped working on the wiki for the time being until I get an answer back from the admins about whether or not they are going to let me change the site's CSS. Half of my editing time now consists of trying to manage the insane number of style tags required to get things to work; it's very pre-1995 stuff to be doing, and frankly, I don't have the time.
  
 
== Useful Things ==
 
== Useful Things ==
Line 11: Line 11:
  
 
[[User:Tvol/Colours|Colours guide]] (for my own personal sanity and possibly yours; this should be formalized in CSS and not on a random page).
 
[[User:Tvol/Colours|Colours guide]] (for my own personal sanity and possibly yours; this should be formalized in CSS and not on a random page).
 +
 +
[https://cdn.discordapp.com/attachments/271743187461210123/277681108391559168/Ability_Mockup.png Mockup from @Mavoc via Discord for the Ability template.]
 +
 +
== Subpages ==
 +
 +
[[User:Tvol/Panel]]
 +
 +
 +
[[User:Tvol/Colours]]<br />
 +
[[User:Tvol/Guides]]<br />
 +
[[User:Tvol/Sandbox]]<br />
 +
[[User:Tvol/Sandbox/cssTranscludeTest.css]]<br />
 +
[[User:Tvol/Sandbox/Template]]<br />
 +
[[User:Tvol/Sandbox/Transclusion]]
  
 
== TODO ==
 
== TODO ==
 +
 +
=== Bot Jobs ===
 +
 +
* Systematically check for all HTML tags that have been depreciated in HTML 5 and update or remove them. Make sure they are well-formed.
 +
:* Since these depreciations are largely intended to be replaced by CSS, doing this without access to site-wide CSS is pointless.
 +
* Assign correct copyright for images (requires template).
 +
* Append a notice to all editors on all ability templates:
 +
<pre><!-- NOTICE TO EDITORS: For the sake of future maintainability, please do not remove parameters nor rearrange them. This will make it easier in future to update this template using a bot and regular expressions if necessary. --></pre>
  
 
=== Templates ===
 
=== Templates ===
Line 20: Line 42:
  
 
==== To Create ====
 
==== To Create ====
* Style templates for XCOM table and XCOMPsi table. Do so for rows as well. Do so for anything I touch in future. This is the entirely '''''wrong''''' way to do this. It should be handled by CSS classes, but since I don't have access to the CSS here will have to make do. These tables will not be portable between skins because of this (though no less so than the current versions). This could be handled by one switch function.
+
* {{tl|Infobox}}
* {{tl|No Direct Call}} : Template to warn that the template page it's on should not be called and it's parent template should be used instead.
+
:* {{tl|Ability infobox (LW2)}}
* {{tl|SPARK Tree (LW2)}} : Same as class and psi trees but for SPARKs. Remove SPARK option from {{tl|Class Tree (LW2)}}. (No, do not create a parent template for these. They're too specialized.) Will require 12 columns (4 groups of 3 cols for the first line, and 3 groups of 4 cols for the remainder).
+
:* {{tl|Equipment infobox (LW2)}}
* {{tl|Stat Progression (LW2)}} : Throw-out the changing on demand for psi and just make three new tempates. {{tl|Stat Progression (Psi)(LW2)}}, {{tl|Stat Progression (Soldier)(LW2)}}, and {{tl|Stat Progression (Spark)(LW2)}}. Convert {{tl|Stat Progression (LW2)}} to instead be a switch function that calls the appropriate sub-template. Doing so should have the side benefit of reducing server load from parser functions.
+
::* Subtypes may not be required but included for completeness.
* {{tl|TopBox}} : Base template for notices to be displayed at the top of the page.
+
::* {{tl|Armor infobox (LW2)}}
* {{tl|Construction Notice}} : Template to warn about major changes being done.
+
::* {{tl|Grenade infobox (LW2)}}
* {{tl|Credits}} or {{tl|Cr}} : Credits icon, inlined.
+
::* {{tl|PCS infobox (LW2)}}
 +
::* {{tl|Weapon infobox (LW2)}}
 +
* Inline/table display, see problems below
 +
:* {{tl|Equipment (LW2)}}
 +
::* {{tl|Armor (LW2)}}
 +
::* {{tl|Grenade (LW2)}}
 +
::* {{tl|PCS (LW2)}}
 +
::* {{tl|Weapon (LW2)}}
 
* {{tl|Disambiguation}} : Disambiguation page.
 
* {{tl|Disambiguation}} : Disambiguation page.
 
* {{tl|Stub}} : Article stubs.
 
* {{tl|Stub}} : Article stubs.
* {{tl|Back}} : Go up one level.
 
 
* {{tl|Sandbox}} : Mark sandboxes as such.
 
* {{tl|Sandbox}} : Mark sandboxes as such.
* {{tl|Candidate for deletion}} : Mark pages for deletion.
+
* {{tl|Candidate for deletion}} and {{tl|Delete}} : Mark pages for deletion.
* {{tl|Subpage Handler}} : Check for various subpages and display links if they exist, e.g. /Info , /Sandbox. Also allow for manual addition of at least three subpages. (A line of inline-blocks in a div should work well.)
+
* {{tl|Constants}} : Mark that the template uses constants/defaults and provide links to each constant's subpage, up to say, 12? This could be folded into {{tl|documentation}}
* Templates that can be used to dynamically construct weapons with their appropriate mods. (That'll be a joy I'm sure. Overlaying one image on another is hard enough. It may not even be possible to do via HTML. Composited images and a stupid-huge switch function may be required. This is very low priority.)
+
* {{tl|Subpage handler}} : Check for various subpages and display links if they exist, e.g. /Info , /Sandbox. Also allow for manual addition of at least three subpages. (A line of inline-blocks in a div should work well, or flex-box now that a skin update is coming.)
* {{tl|Related}} : Link to related templates as a reminder to change the others when updating one. E.g., {{tl|Class Tree (LW2)}}, {{tl|SPARK Tree (LW2)}}, and {{tl|Psi Tree (LW2)}} would be considered related to each other.
+
*Status effects
 +
:* {{tl|Status effect (LW2)}}
 +
::* Armor
 +
::* Berserk
 +
::* Bound
 +
::* Burning
 +
::* Concealed
 +
::* Confused
 +
::* Default
 +
::* Disoriented
 +
::* Haywire
 +
::* Mind Controlled
 +
::* Overwatch
 +
::* Panic
 +
::* Poison
 +
::* Revealed
 +
::* Stunned
 +
::* Unconscious
 +
*Class icons
 +
:* {{tl|Class (LW2)}}
 +
::* Assault
 +
::* Grenadier
 +
::* Gunner
 +
::* Ranger
 +
::* Sharpshooter
 +
::* Shinobi
 +
::* Specialist
 +
::* Technical
 +
::* Psi Operative
 +
::* SPARK
 +
*Stat bonuses
 +
:* {{tl|Stat bonus (LW2)}}
 +
::* Aim
 +
::* Dodge
 +
::* Hack
 +
::* Health
 +
::* Mobility
 +
::* Psi
 +
::* Will
 +
 
 +
===== Problems =====
 +
 
 +
Inline/table display templates must be implemented very differently, but use the same data. This is a problem because it would result in duplication of information in different places, making it harder for editors to maintain in future. Template branching may be the best solution here, such that the default is inline display, with one "master" template for each subject/item. Gods I wish we had type checking and enums. Wishful thinking.
 +
 
 +
See [https://meta.wikimedia.org/wiki/Help:Advanced_templates#Variable_templates Variable Templates] for ideas. (After some thought, copying the selection logic into each implementation template makes the most sense. This would only need to be done once and will be less complicated than passing every parameter through a handler, which would get messy, fast.)
  
 
==== To Edit ====
 
==== To Edit ====
  
 
* {{tl|documentation}} : Add link to /Sandbox .
 
* {{tl|documentation}} : Add link to /Sandbox .
 +
* {{tl|TopBox}} : Make improvements. Set display to inline-block, and expose <code>clear</code> so that they can be along-side each other but also take-up the whole width if important. Will need min-widths, blah blah. Also consider flex.
 +
* {{tl|Construction Notice}} : Make improvements.
 +
* {{tl|No Direct Call}} : Make improvements.
 +
:* Generalize template as a "do not transclude" template. Allow other reasons, e.g. a template being just so subpages are accessible.
 +
 +
* Upon finalizing default values, all templates should be converted from using a Constants subpage and switch function, to using a subpage for each parameter.
  
 
===== Stat Progression (LW2) =====
 
===== Stat Progression (LW2) =====
Line 46: Line 124:
 
===== Ability (LW2) =====
 
===== Ability (LW2) =====
 
* {{tl|Ability_(LW2)}}
 
* {{tl|Ability_(LW2)}}
* Edit and/or (probably and) all LW2 ability templates such that the info icon links to their respective info pages.
+
* Support inline use by inserting the name in front of icon.
** Perform check on whether or not info page exists. If it does not, prevent display of info button entirely regardless of parameter value passed. This will be more robust and require less input from users. Will need to change s_info so that it is only the template's FULLPAGENAME so I can work with it for checks.
+
* '''CSS Required''' : Display div with info text and invert colour of info icon when info icon is hovered over.
* Support both inline (default; use inline-block you derp) and table use.
 
** <strike>Will require changing divs in text part to spans for inline use.</strike> On second thought, it may be better to not provide that text at all.
 
** Move container divs from Class Trees to Ability template.
 
  
 
===== Documentation =====
 
===== Documentation =====
Line 60: Line 135:
 
=== Images ===
 
=== Images ===
  
* Upload Folders: Alerts, Corpses, DarkEvents, Equipment, Events, Facilities, Icons, POIs, Schematics, Research, Weapons.
+
* Upload Folders: <s>Alerts, Corpses, DarkEvents, Equipment, Events, Facilities, Icons, POIs, Schematics, Research,</s> Weapons. (Update: I think I got all these aside from weapons. Check if I did that.)
 
* Compose Todo and Shortcut icons and upload.
 
* Compose Todo and Shortcut icons and upload.
  
 
=== CSS ===
 
=== CSS ===
* Apparently we have a CSS plugin. This allows for CSS to be changed on a per-page basis.
 
** With access to CSS, displaying a div or span on rollover would be possible.
 
 
==Scratch Pad==
 
 
===Abilities Template===
 
 
inline{{Ability_(LW2)/Sandbox
 
| s_image = UIPerk_runandgun.png
 
| s_name = Run and Gun
 
| s_caption = Run and Gun
 
| s_link = Assault_(LW2)
 
| s_descr = Take an action after dashing. Three-turn cooldown.
 
| s_info =  Bacon!?!
 
| b_name = {{{ b_name | 0 }}}
 
| b_descr = {{{ b_descr | 0 }}}
 
| b_info = {{{ b_info | 0 }}}
 
}} text
 
 
inline<span id="ability" style="display: inline-block;"><!--
 
    --><div id="abilityImageContainer" style="position: relative; display: inline-block;"><!--
 
        --><div id="abilityImage" style="display: inline-block;"><!--
 
          -->[[File:UIPerk_runandgun.png|38px| {{{ s_caption | Run and Gun }}} {{ #if: {{{ s_link |}}} | {{!}} link= {{{ s_link }}} |}}]]<!--
 
        --></div><!--
 
        -->{{ #ifexpr: {{{ b_info | 0 }}}<!--
 
            -->|<div id="abilityInfoIcon" style="position: absolute; height: 18px; width: 18px; left: 30px; top: 26px;"><!--
 
            -->[[File:infoIcon.png|18px|{{{s_info|}}}]]<!--
 
            --></div><!--
 
            -->|}}<!--
 
    --></div><!--
 
    -->{{ #ifexpr: {{{ b_name | 0 }}} or {{{ b_descr | 0 }}}<!--
 
        -->|<div id="abilityTextContainer"><!--
 
        -->{{ #ifexpr: {{{ b_name | 0 }}}<!--
 
            -->|<div id="abilityName" style="font-weight: bold; padding-top: 5px;">{{{ s_name | No Name Given }}}</div><!--
 
            -->|}}<!--
 
        -->{{ #ifexpr: {{{ b_descr | 0 }}}<!--
 
            -->|<div id="abilityDescription" style="font-style: italic; padding-top: 3px">{{{ s_descr | No Description Given }}}</div><!--
 
            -->|}}<!--
 
        --></div><!--
 
        -->|}}<!--
 
--></span>text
 
 
  
 +
Anything here will require access to the site's CSS to do.
  
===Active Tree===
+
* Fix {{tl|related}} link colours.
 +
* {{tl|Ability (LW2)}} : Display div with info text and invert colour of info icon when info icon is hovered over.
 +
* {{tl|Weapon composite image}}
 +
:* Overlay weapon images inside a div to reconstruct a weapon + mods (could be useful for guides). Provide scaling ability. '''Definitely do not try without site CSS access. This will be dicey even with it. Classes are necessary to make this manageable, otherwise code duplication in style tags will be insane.'''
  
{{Class Tree (LW2)/Sandbox
+
==== Classes to Create ====
|Squaddie1={{Ability_(LW2)/Sandbox
 
| s_image = UIPerk_runandgun.png
 
| s_name = Run and Gun
 
| s_caption = Run and Gun
 
| s_link = Assault_(LW2)
 
| s_descr = Take an action after dashing. Three-turn cooldown.
 
| s_info = Bacon!?!
 
| b_name = {{{ b_name | 1 }}}
 
| b_descr = {{{ b_descr | 1 }}}
 
| b_info = {{{ b_info | 1 }}}
 
}}
 
|Squaddie2={{Run and Gun (LW2)| b_descr = 1 | b_info = 1 }}
 
|Squaddie3={{Stun (LW2)| b_descr = 1 | b_info = 1}}
 
|Subclass1=Raider
 
|Subclass2=Breacher
 
|LCorporal1={{Slug Shot (LW2)| b_descr = 1 }}
 
|LCorporal2={{Electroshock (LW2)| b_descr = 1 }}
 
|LCorporal3={{Lightning Reflexes (LW2)| b_descr = 1 }}
 
|Corporal1={{Trench Gun (LW2)| b_descr = 1 }}
 
|Corporal2={{Arc Pulser (LW2)| b_descr = 1 }}
 
|Corporal3={{Close and Personal (LW2)| b_descr = 1 }}
 
|Sergeant1={{Killer Instinct (LW2)| b_descr = 1 }}
 
|Sergeant2={{Stun Gunner (LW2)| b_descr = 1 }}
 
|Sergeant3={{Fortify (LW2)| b_descr = 1 }}
 
|StaffSgt1={{Extra Conditioning (LW2)| b_descr = 1 }}
 
|StaffSgt2={{Aggression (LW2)| b_descr = 1 }}
 
|StaffSgt3={{Formidable (LW2)| b_descr = 1 }}
 
|TechSgt1={{Hit and Run (LW2)| b_descr = 1 }}
 
|TechSgt2={{Rapid Fire (LW2)| b_descr = 1 }}
 
|TechSgt3={{Close Encounters (LW2)| b_descr = 1 }}
 
|GunSgt1={{Bring 'Em On (LW2)| b_descr = 1 }}
 
|GunSgt2={{Close Combat Specialist (LW2)| b_descr = 1 }}
 
|GunSgt3={{Untouchable (LW2)| b_descr = 1 }}
 
|MSgt1={{Street Sweeper (LW2)| b_descr = 1 }}
 
|MSgt2={{Chain Lightning (LW2)| b_descr = 1 }}
 
|MSgt3={{Lethal (LW2)| b_descr = 1 }}
 
}}
 
  
== Abilities ==
+
* '''CSS Strongly Recommended''' {{tl|Style}} : Style templates for XCOM table and XCOMPsi table. Do so for rows as well. Do so for anything I touch in future. This is the entirely '''''wrong''''' way to do this. It should be handled by CSS classes, but since I don't have access to the CSS here will have to make do. These tables will not be portable between skins because of this (though no less so than the current versions). This could be handled by one switch function. And it's still a '''very''' bad idea because it '''will''' start to significantly effect server load if called constantly (which it will be because table styles have to be set for every cell when CSS is unavailable). To say nothing of the fact that doing so absolutely ruins specificity and makes it nigh impossible use CSS later. (Did I mention this is a bad idea? Style tags for everything is a bad idea.)
<!-- Note: SPARK Units additionally have a Hack ability, which doesn't fit in this template -->
+
* xcom2table : like wikitable but formatted with reasonable defaults for XCOM 2.
Mouse-over <span style="position: relative; bottom: 2px;">[[File:InfoIcon.png|18px]]</span> for more information.
+
* All classes in {{tl|Ability (LW2)}}.
{| class="wikitable" style="vertical-align: center; text-align: center; width: 100%; cellpadding=20;"
+
* Classes for {{tl|TopBox}} and all its children. (Link colours especially need to be fixed.)
|- style="color:#7dc2d2; background-color:#17181a; vertical-align:center; font-size:130%;"
+
* Classes for {{tl|Infobox}} and all its children.
| style="width:10%; border-width: 0 2px 2px 0; border-color:#7dc2d2;"| '''Rank'''
 
| colspan="3" style="border-color:#7dc2d2; border-width: 0 0 2px 0" | '''Ability'''
 
|-
 
! style="border:none; color:#7dc2d2; background-color:#17181a;" | {{ #if: 1 | {{SparkRank (LW2)|0|b_name=1}} | {{Rank (LW2)|0|b_name=1}} }}
 
| width="30%" | <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Overdrive (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}}</div>
 
| width="30%" | <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Arsenal (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}}</div>
 
| width="30%" | <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Mechanical Chassis (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}}</div>
 
|- vertical-align="center"
 
| style="border:none; background-color:#17181a;" |
 
! style="border-left:none; border-right:none; background-color:white;" | ''Future Combat''
 
! style="border-left:none; border-right:none; background-color:white;" |
 
! style="border-left:none; border-right:none; background-color:white;" | ''War Machine''
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: 1 | {{SparkRank (LW2)|1|b_name=1}} | {{Rank (LW2)|1|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Shredder (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Iron Skin (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Combat Awareness (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" |  {{ #if: 1 | {{SparkRank (LW2)|2|b_name=1}} | {{Rank (LW2)|2|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Rainmaker (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Bulwark (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Adaptive Aim (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" |  {{ #if: 1 | {{SparkRank (LW2)|3|b_name=1}} | {{Rank (LW2)|3|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Strike (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Formidable (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Cool Under Pressure (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" |  {{ #if: 1 | {{SparkRank (LW2)|4|b_name=1}} | {{Rank (LW2)|4|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Intimidate (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Repair (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Guardian (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" |  {{ #if: 1 | {{SparkRank (LW2)|5|b_name=1}} | {{Rank (LW2)|5|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Channeling Field (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Wrecking Ball (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Holo Targeting (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" |  {{ #if: 1 | {{SparkRank (LW2)|6|b_name=1}} | {{Rank (LW2)|6|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Bombard (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Damage Control (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Hunter Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|-
 
! style="border:none; color: #7dc2d2; background-color: #17181a;" |  {{ #if: 1 | {{SparkRank (LW2)|7|b_name=1}} | {{Rank (LW2)|7|b_name=1}} }}
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Sacrifice (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Impact Fields (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
| <div id="abilityTableCellContainer" style="padding: 13px 13px 13px 13px">{{Nova (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}}</div>
 
|}
 

Latest revision as of 12:39, 15 February 2017

Contacting Me

I'm hanging-out on the XCOM discord server if you want to chat directly or over voice (dependent on availability and what I'm doing at the time).

I have stopped working on the wiki for the time being until I get an answer back from the admins about whether or not they are going to let me change the site's CSS. Half of my editing time now consists of trying to manage the insane number of style tags required to get things to work; it's very pre-1995 stuff to be doing, and frankly, I don't have the time.

Useful Things

Regex pair to convert line breaks to HTML comments: \n(\s*)(.) >> <!--\n$1-->$2 And back: <!--\n(\s*)--> >> \n$1

Colours guide (for my own personal sanity and possibly yours; this should be formalized in CSS and not on a random page).

Mockup from @Mavoc via Discord for the Ability template.

Subpages

User:Tvol/Panel


User:Tvol/Colours
User:Tvol/Guides
User:Tvol/Sandbox
User:Tvol/Sandbox/cssTranscludeTest.css
User:Tvol/Sandbox/Template
User:Tvol/Sandbox/Transclusion

TODO

Bot Jobs

  • Systematically check for all HTML tags that have been depreciated in HTML 5 and update or remove them. Make sure they are well-formed.
  • Since these depreciations are largely intended to be replaced by CSS, doing this without access to site-wide CSS is pointless.
  • Assign correct copyright for images (requires template).
  • Append a notice to all editors on all ability templates:
<!-- NOTICE TO EDITORS: For the sake of future maintainability, please do not remove parameters nor rearrange them. This will make it easier in future to update this template using a bot and regular expressions if necessary. -->

Templates

This is my todo list for templates. If you want to help me by doing any of this below, go for it. I won't mind. Really. Really I won't.

Roughly in order of priority.

To Create

  • Inline/table display, see problems below
  • {{Disambiguation}} : Disambiguation page.
  • {{Stub}} : Article stubs.
  • {{Sandbox}} : Mark sandboxes as such.
  • {{Candidate for deletion}} and {{Delete}} : Mark pages for deletion.
  • {{Constants}} : Mark that the template uses constants/defaults and provide links to each constant's subpage, up to say, 12? This could be folded into {{documentation}}
  • {{Subpage handler}} : Check for various subpages and display links if they exist, e.g. /Info , /Sandbox. Also allow for manual addition of at least three subpages. (A line of inline-blocks in a div should work well, or flex-box now that a skin update is coming.)
  • Status effects
  • Armor
  • Berserk
  • Bound
  • Burning
  • Concealed
  • Confused
  • Default
  • Disoriented
  • Haywire
  • Mind Controlled
  • Overwatch
  • Panic
  • Poison
  • Revealed
  • Stunned
  • Unconscious
  • Class icons
  • Assault
  • Grenadier
  • Gunner
  • Ranger
  • Sharpshooter
  • Shinobi
  • Specialist
  • Technical
  • Psi Operative
  • SPARK
  • Stat bonuses
  • Aim
  • Dodge
  • Hack
  • Health
  • Mobility
  • Psi
  • Will
Problems

Inline/table display templates must be implemented very differently, but use the same data. This is a problem because it would result in duplication of information in different places, making it harder for editors to maintain in future. Template branching may be the best solution here, such that the default is inline display, with one "master" template for each subject/item. Gods I wish we had type checking and enums. Wishful thinking.

See Variable Templates for ideas. (After some thought, copying the selection logic into each implementation template makes the most sense. This would only need to be done once and will be less complicated than passing every parameter through a handler, which would get messy, fast.)

To Edit

  • {{documentation}} : Add link to /Sandbox .
  • {{TopBox}} : Make improvements. Set display to inline-block, and expose clear so that they can be along-side each other but also take-up the whole width if important. Will need min-widths, blah blah. Also consider flex.
  • {{Construction Notice}} : Make improvements.
  • {{No Direct Call}} : Make improvements.
  • Generalize template as a "do not transclude" template. Allow other reasons, e.g. a template being just so subpages are accessible.
  • Upon finalizing default values, all templates should be converted from using a Constants subpage and switch function, to using a subpage for each parameter.
Stat Progression (LW2)
Ability (LW2)
  • {{Ability_(LW2)}}
  • Support inline use by inserting the name in front of icon.
  • CSS Required : Display div with info text and invert colour of info icon when info icon is hovered over.
Documentation

Create documentation for:

Images

  • Upload Folders: Alerts, Corpses, DarkEvents, Equipment, Events, Facilities, Icons, POIs, Schematics, Research, Weapons. (Update: I think I got all these aside from weapons. Check if I did that.)
  • Compose Todo and Shortcut icons and upload.

CSS

Anything here will require access to the site's CSS to do.

  • Overlay weapon images inside a div to reconstruct a weapon + mods (could be useful for guides). Provide scaling ability. Definitely do not try without site CSS access. This will be dicey even with it. Classes are necessary to make this manageable, otherwise code duplication in style tags will be insane.

Classes to Create

  • CSS Strongly Recommended {{Style}} : Style templates for XCOM table and XCOMPsi table. Do so for rows as well. Do so for anything I touch in future. This is the entirely wrong way to do this. It should be handled by CSS classes, but since I don't have access to the CSS here will have to make do. These tables will not be portable between skins because of this (though no less so than the current versions). This could be handled by one switch function. And it's still a very bad idea because it will start to significantly effect server load if called constantly (which it will be because table styles have to be set for every cell when CSS is unavailable). To say nothing of the fact that doing so absolutely ruins specificity and makes it nigh impossible use CSS later. (Did I mention this is a bad idea? Style tags for everything is a bad idea.)
  • xcom2table : like wikitable but formatted with reasonable defaults for XCOM 2.
  • All classes in {{Ability (LW2)}}.
  • Classes for {{TopBox}} and all its children. (Link colours especially need to be fixed.)
  • Classes for {{Infobox}} and all its children.