User:Kittly2008: Difference between revisions

Content added Content deleted
mNo edit summary
m (Instructions on how to use)
Line 6: Line 6:


Here is a Python Script to convert lists of items into WPG format. You can type whatever you find and need!
Here is a Python Script to convert lists of items into WPG format. You can type whatever you find and need!
[https://trinket.io/embed/python/a1c561b30c Try the script here.]
[https://trinket.io/python/6cedd34c83 Try the script here.]
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
# 17 November 2021
# kittly2008 #
list_original=[]
list_original=[]
x = []
x = []
while x != "stop":
while x != "stop":
x = input('Enter a Webkinz Item Name : ')
x = input('Enter a Webkinz Item Name : ')
if x == "stop":
break
list_original.append(x)
list_original.append(x)
list_original.sort()
list_original.sort()
Line 20: Line 24:
print("|{{!}}[[File:"+list_lower[i]+".png]]<br>"+list_original[i])
print("|{{!}}[[File:"+list_lower[i]+".png]]<br>"+list_original[i])
</syntaxhighlight>
</syntaxhighlight>

Steps:
* on the right, click on the text to start typing.
* enter one item, then hit enter.
* Type "stop" when you are done.
* enjoy the sorted script!