Difference between revisions of "User:Seb26/Item infobox"

From Team Fortress Wiki
Jump to: navigation, search
(Ideas)
(Implementation)
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
** Attributes:
 
** Attributes:
 
*** Should be plainly named
 
*** Should be plainly named
**** {{xt|1={{code|trade}}}} over {{!xt|1={{code|tradable}}}} (and variants)
+
**** {{xt|1={{code|trade}}}} over {{!xt|1={{code|tradable}}}}
 
*** Simple yes/no ('''Issue''')
 
*** Simple yes/no ('''Issue''')
 
**** Sometimes this isn't possible, need way to handle these
 
**** Sometimes this isn't possible, need way to handle these
 
***** Possibly "if value != yes/no, display value" (may create issues with translators who translate "yes" and "no")
 
***** Possibly "if value != yes/no, display value" (may create issues with translators who translate "yes" and "no")
 +
** Param names should not be long & hard to remember:
 +
*** {{xt|1={{code|name}}}} instead of {{!xt|1={{code|hat-name-override}}}}
  
 
=== Core ideas ===
 
=== Core ideas ===
Line 25: Line 27:
 
* AWB find & replace in-template call
 
* AWB find & replace in-template call
  
== See also ==
+
=== Plan 1 ===
* [[../Category:Weapons]]
+
* Deploy to {{tl|Item infobox}}. All other infoboxes remain as they are.
 +
* Parse through all pages using older infoboxes, change template to {{tl|Item infobox}} and replace code & old parameters.

Latest revision as of 01:55, 30 October 2010

Ideas

  • Item infobox only. Class, maps, websites should be separate.
  • Sole important parameter: type
    • Determines type (weapon, hat, misc, taunt, tool, action)
    • Switches visible fields based on its value
  • Scattered ideas:
    • Translations should be defined directly inside the infobox
    • Attributes:
      • Should be plainly named
        • trade over tradable
      • Simple yes/no (Issue)
        • Sometimes this isn't possible, need way to handle these
          • Possibly "if value != yes/no, display value" (may create issues with translators who translate "yes" and "no")
    • Param names should not be long & hard to remember:
      • name instead of hat-name-override

Core ideas

Implementation

  • Research
    • Definite numbers on how many pages to update
    • Generate lists and distribute workload
  • AWB find & replace in-template call

Plan 1

  • Deploy to {{Item infobox}}. All other infoboxes remain as they are.
  • Parse through all pages using older infoboxes, change template to {{Item infobox}} and replace code & old parameters.