User:Towelcat

From Old School RuneScape Wiki
Jump to navigation Jump to search
<insert name here> is an animal!
tbvukoo.png

i'm cat (towelcat on here and on reddit)
my bot can be found here
glad you guys moved off that accursed website

VE HATER TIL THE DAY I DIE

File: is the enemy. Plinkt is my best friend.

"what was 2020 spineweilder thinking"

riblet does nothing but complain

Shop prices[edit | edit source]

ORT9lXr.gif
let's ride

The formula for the buy/sell values of an item is

Where is always the same for a store, but changes based on whether you're buying or selling. Each store has its own and values, and there are some cases where diary/favor/quest status can change the value.

When selling, the price is bound between 10% item value (this can be 0) and

When buying, the price is normally bound between and . Prices below 10% item value are set to 10% item value, and prices below 1 are set to 1.

tables used on this page[edit | edit source]

User:Towelcat/Ensouled head table
User:Towelcat/Smithing table

projects[edit | edit source]

Free-to-play money making guides
Collection of various skilling tables I've made/reworked
Pages with ugly tables:
--- Farming patches
--- Special attacks
RocksLine table showcase
Shop names
CostLine table showcase
testing plink template variant for tables (should just make a standalone variant template instead)
SmithingTable showcase
Infotable Bonuses table rework
Currency template showcase
the april fools (accounts created as a result of the 2020 april fools joke)

sandboxes[edit | edit source]

User:Towelcat/scrap paper
--- User:Towelcat/scrap paper/shreds
User:Towelcat/Sandbox1 testing header transclusion (source)
User:Towelcat/Sandbox2 testing header transclusion (destination)
User:Towelcat/Sandbox3 storeline test
User:Towelcat/Sandbox/Recipe template
User:Towelcat/Sandbox/Mmgtable template
User:Towelcat/Sandbox/Infobox Monster template

templates[edit | edit source]

User:Towelcat/Templates/StoreTableHead
User:Towelcat/Templates/StoreLine StoreLine (was sandboxing to add 'N/A' support)
User:Towelcat/Templates/Pic link some plink testing (settled on making the new 'plinkt' variant template)
User:Towelcat/Templates/TotalCostHead CostTable templates
User:Towelcat/Templates/TotalCostBottom
User:Towelcat/Templates/TotalCostLine
User:Towelcat/Templates/SmithingTableHead SmithingTable templates
User:Towelcat/Templates/SmithingTableRow
User:Towelcat/Templates/SmithingTableBottom
User:Towelcat/Templates/RocksLine (still needs table head/bottom)
User:Towelcat/Templates/&& Logical AND operator. Treats all strings as 1 (except for '0' and null)
User:Towelcat/Templates/Infotable Bonuses header Testing rework/cleanup of infotable bonuses.
User:Towelcat/Templates/Infotable Bonuses row
User:Towelcat/Templates/Infotable Bonuses totals
User:Towelcat/Templates/Currency Coins template but for all currency types
User:Towelcat/Templates/200mxp 200mxp lookup
User:Towelcat/Templates/Recipe recipe template sandboxing
User:Towelcat/Templates/Mmgtable mmgtable template sandboxing
User:Towelcat/Templates/Infobox Monster infobox monster template sandboxing

modules[edit | edit source]

Module:Sandbox/User:Towelcat/StoreTableHead
Module:Sandbox/User:Towelcat/StoreLine
Module:Sandbox/User:Towelcat/Currency
Module:Sandbox/User:Towelcat/200mxp
--- Module:Sandbox/User:Towelcat/200mxp/data
Module:Sandbox/User:Towelcat/Recipe
Module:Sandbox/User:Towelcat/Mmgtable
Module:Sandbox/User:Towelcat/Infobox Monster

strings to search for cleanup[edit | edit source]

remember to ignore casing

pretty much always bad
  \{\{Coins\|\{\{(format|#expr)
  \{\{Coins\|Amount
  \{\{Skill clickpic\|(2|Skill)
  \n +#expr
  \d\d? \{\{skill clickpic\|\w+\}\}
  \t
niche valid uses
  formatnum
  GEPrice
  formatexpr
found in tables that should probably be converted to the CostLine template
  Exchange price
  GE Price
  Sell Price
  [[GE]] Price
  Total Cost
other table junk, look for excessive use
  \[\[File:
  align=
  style="text-align
check these every now and then to see if people are doing silly shit
  #vardefine:
neutral "they" (and related variants) should be used instead
  (?<!\[)\b(((?:he|him|his)(?:self)?)( *(?:\/|or|and) *)((?:she|hers?))|(?4)(?3)(?2))\b
remnant class from ye olde wiki that we no longer have
  article-table
visedit is a bastard (there's probably more relevant html stuff but these ones show up quite a bit when VE goes nuts)
  href=|<td>|<li>|<p>|<ul>
  \n\|-[a-zA-Z0-9{[]
links with pluralized overrides are bad
  \[\[(.*?)\|\1(e?s?|\'s|ing)\]\]
bad table stuff (remnants from old text editors i think)
  border="1"|cellpadding="1"|cellspacing="1"
  scope="col"|colspan="1"|rowspan="1"

some awb regexes[edit | edit source]

Ui503R6.png
find replace regex case-sens comment
\t N/A Yes No cleanup tab characters
(?<!=) +\n \n Yes No spaces before newlines except for after an equals sign
\n\|- +\n \n|-\n Yes No unnecessary spaces after new table row declaration
==( +([^=]*?))?(([^=]*?) +)?== ==$2$4== Yes No remove unnecessary spaces from headers
can be simplified with == *([^=]*?) *== but gives false positives on the ones that are already fine
{{coins {{Coins No No capitalize the coins template because lowercase coins bothers me lol
N/A No No remove unicode left-to-right mark (check page source for this one lol)
  N/A No No U+00A0 : NO-BREAK SPACE [NBSP]. should either be converted to regular spaces or &nbsp;
\{\{GEP\|([a-z]) {{GEP|{{subst:uc:$1}} Yes Yes uppercase first char in GEP item name (if lowercase)
(?<!\n)(?<! ) {2,} <single space> Yes No replace 2+ spaces with 1 unless after newline (not always ideal)
\{\{GEP\|([^|}]*?)(\}|\|) {{GEP|{{subst:ucfirst:{{subst:lc:$1}}}}$2 Yes No proper capitalization of items in GEP template
Warning: subst doesn't work inside of tabbers (and possibly elsewhere)
note: this would be much easier if awb's regex supported \L\E and \U\E

good example of include tag usage[edit | edit source]

courtesy of our boy jake

<onlyinclude>
    Hello I want to show up on all pages.
    <includeonly>
        I only want to show up on the child pages that are transcluding the parent page.
    </includeonly>
    <noinclude>
        I only want to show up on the main page and not the children pages.
    </noinclude>
</onlyinclude>
I will only show up on the parent page.

weird subst thing for use in the GEP template[edit | edit source]

{{subst:ucfirst:{{subst:lc:mind RUNE}}}}

Mind rune