Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Advertisement

A page for tips, and sharing macros, for editors who edit using AutoHotKey (AHK), a free, open-source custom scripting language for Microsoft Windows.

Scripts[]

General[]

For automatically converting an item from Special:TileList into {{RI}}: (just highlight the item name and mod name together then copy)

YOUR HOTKEY HERE::
Clipboard := StrReplace(StrReplace("{{RI|" . StrReplace(Clipboard, "	", "|") . "}}", "||", "|"), "|}", "}") 
Send ^v
return

Chemistry standardization project[]

Main pages: Feed The Beast Wiki:Chemistry standardization project

For generating an antimatter article: (just copy the base element name)

YOUR HOTKEY HERE::
Clipboard := "{{Infobox element{{L}}`r|type=antimatter`r|name=Anti-" . Clipboard . "`r|main=" . Clipboard . "`r|symbol=`r|left={{L|Anti-}}`r|right={{L|Anti-}}`r|above={{L|Anti-|}}`r|below={{L|Anti-|}}`r|mod={{L|GregTech 6}}`r|glasstube={{RI|Glass Tube containing Anti-" . Clipboard . "|GT6-I}}`r}}`r'''Anti-" . Clipboard . "''' is the antimatter version of {{L|" . Clipboard . "}} added by various mods.`r`r== GregTech 6 ==`r{{Added by{{L}}|GregTech 6}}`r`r== See also ==`r* {{L|:Category:Isotopes of " . Clipboard . "|List of " . Clipboard . " isotopes}}`r* {{L|:Category:Compounds containing " . Clipboard . "|List of compounds containing " . Clipboard . "}}`r`r{{Navbox Periodic Table{{L}}}}`r{{Navbox Materials{{L}}}}`r<languages/>"
Send ^v
return


For generating the See also section and footer of element articles: (just copy the element name)

YOUR HOTKEY HERE::
Clipboard := "== See also ==`r* {{L|:Category:Isotopes of " . Clipboard . "|List of " . Clipboard . " isotopes}}`r* {{L|:Category:Compounds containing " . Clipboard . "|List of compounds containing " . Clipboard . "}}`r* {{L|Anti-" . Clipboard . "}}`r`r{{Navbox Periodic Table{{L}}}}`r{{Navbox Materials{{L}}}}`r<languages/>"
Send ^v
return


For generating the See also section and footer of compound articles: (just copy the parameters from {{Infobox element/compound}})

YOUR HOTKEY HERE::
Out := "== See also ==`r"
For k, v in StrSplit(Clipboard, "|") {
	Name := StrSplit(v, "~")[1]
	Out .= "* {{L|:Category:Isotopes of " . Name . "|List of " . Name . " isotopes}}`r* {{L|:Category:Compounds containing " . Name . "|List of compounds containing " . Name . "}}`r* {{L|Anti-" . Name . "}}`r"
}
Clipboard := Out . "`r{{Navbox Materials{{L}}}}`r<languages/>"
Send ^v
return


For generating the body section: (just copy the contents of the mod parameter of {{Infobox element}} excluding Vanilla and the last }})

YOUR HOTKEY HERE::
Out := ""
For k, v in StrSplit("}}<br/>" . Clipboard, "}}<br/>{{L|") {
	Out .= "== " . v . " ==`r{{Added by{{L}}|" . v . "}}`r`r"
}
StringTrimLeft, Clipboard, Out, 27
Send ^v
return



Advertisement