Difference between revisions of "User:Tark/Sandbox"

From Team Fortress Wiki
Jump to: navigation, search
m
m
(56 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="background: #fff;width:100%;border: 1px solid #79542B;"
+
<div id="template-documentation" style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em; font-family: sans-serif">
| style="text-align: center; position: relative; overflow: hidden; background: #4E1818;" | <div style="position: absolute;">[[File:Blank.png|25000px|class=mp-event-link|link=Scream Fortress 2022{{if lang}}|{{common string|Scream Fortress 2022}}]]</div>[[File:User Tark.png|class=mp-event-image|link=]]<div class="mp-event-text-sum22"></div>
+
<div style="padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex">
|}<noinclude>
 
{{doc begin}}
 
=== Localization ===
 
* Post on the [[Template talk:Main Page event|talk page]] for text localization.
 
  
[[Category:Main Page]]
+
'''Item infobox:'''
</noinclude>
+
* Update <code>used-by</code>
 +
** Use {{tlx|Used by}}.
 +
*** <code><nowiki>used-by = [[Spy]]</nowiki></code>/<code><nowiki>used-by = {{used by|Spy}}</nowiki></code>/etc. should be changed to <code>used-by = Spy</code>.
 +
*** Figure out how to handle ''all-except''.
 +
* Update <code>item-kind</code>
 +
** Use {{tlx|item name|item type {{{item-kind}}}}}.
 +
* Change <code>item-description</code> to <code>yes</code>/<code>no</code> values.
 +
** If yes, use the dictionary string.
 +
** If, for some odd reason, the description can't be stored in the dictionary, use <code>item-description-override</code> to display a custom one.
 +
* Update <code>unusual-effect</code>
 +
** See [https://wiki.teamfortress.com/w/index.php?title=Template%3AItem_infobox%2FSandbox&type=revision&diff=3610124&oldid=3610122 this diff].
 +
** Use {{tlx|item name|{{{unusual-effect}}}}}.
 +
* Update <code>item-flags</code>
 +
** See [https://wiki.teamfortress.com/w/index.php?title=Template%3AItem_infobox%2FSandbox&type=revision&diff=3610124&oldid=3610122 this diff].
 +
** Maybe keep the English text (e.g., "Not Tradable") instead of the attribute name (e.g., "CannotTrade") for readability.
 +
* Update <code>att-n-[type]</code>
 +
** See [https://wiki.teamfortress.com/w/index.php?title=Template%3AItem_infobox%2FSandbox&type=revision&diff=3610124&oldid=3610122 this diff].
 +
** Use {{tlx|attribute}} (see template documentation).
 +
 
 +
<hr>
 +
'''WindBOT:'''
 +
 
 +
* Sync <code>used-by</code>
 +
* Sync <code>released</code> & <code>released-major</code>.
 +
** If <code>released-major</code> is set, sync <code>released</code> and <code>released-major</code>.
 +
** If <code>released</code> is set to {{tlx|Patch name}}, sync <code>released</code>.
 +
** Otherwise, skip.
 +
* Sync <code>availability</code>
 +
** {{tlx|avail}} needs to be updated to handle single-use cases (e.g., [[Wiki Cap]], [[Lo-Fi Longwave]], others).
 +
* Sync <code>item-kind</code>
 +
* Sync <code>item-description</code>
 +
* Sync <code>unusual-effect</code>
 +
* Sync <code>item-flags</code>
 +
* Sync <code>att-n-[type]</code>
 +
 
 +
''Note: "Sync" here means that when WindBOT is updating a translated page, e.g., [[Unusual Cap/ru]], it should seek the values of the original template instead, as we assume the English page is the one which is up to date.''

Revision as of 12:30, 13 May 2024

Item infobox:

  • Update used-by
    • Use {{Used by}}.
      • used-by = [[Spy]]/used-by = {{used by|Spy}}/etc. should be changed to used-by = Spy.
      • Figure out how to handle all-except.
  • Update item-kind
  • Change item-description to yes/no values.
    • If yes, use the dictionary string.
    • If, for some odd reason, the description can't be stored in the dictionary, use item-description-override to display a custom one.
  • Update unusual-effect
  • Update item-flags
    • See this diff.
    • Maybe keep the English text (e.g., "Not Tradable") instead of the attribute name (e.g., "CannotTrade") for readability.
  • Update att-n-[type]

WindBOT:

  • Sync used-by
  • Sync released & released-major.
    • If released-major is set, sync released and released-major.
    • If released is set to {{Patch name}}, sync released.
    • Otherwise, skip.
  • Sync availability
  • Sync item-kind
  • Sync item-description
  • Sync unusual-effect
  • Sync item-flags
  • Sync att-n-[type]

Note: "Sync" here means that when WindBOT is updating a translated page, e.g., Unusual Cap/ru, it should seek the values of the original template instead, as we assume the English page is the one which is up to date.