Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Wikipedia Category String Builder


  • Please log in to reply
No replies to this topic
Tuxhedoh
  • Members
  • 25 posts
  • Last active: Sep 03 2010 07:58 PM
  • Joined: 20 Apr 2006
So I created this code to test both my coding, as well as speed up some Wiki-editing.

What do you think? The first drop down doesn't have any functionality yet.
Any suggestions?



Gui, Add, ComboBox, x12 y32 w170 h21 R5 vCatChoice gComb, {{Christianmusic}}||{SomethingElse}}
Gui, Add, Text, x12 y72 w80 h20 , Class
Gui, Add, DropDownList, x102 y72 w120 vClass, FA|A|GA|B|C|Start|Stub||Needed|List|Template|Disambig|Category|NA
Gui, Add, Text, x12 y92 w80 h20 , Importance
Gui, Add, DropDownList, x102 y92 w120 vImp, Top|High|Mid|Low||Unknown
Gui, Add, CheckBox, x12 y132 w100 h20 vAttn, &Attention Needed
Gui, Add, CheckBox, x12 y152 w100 h30 vInfo, &Infobox Needed
Gui, Add, CheckBox, x122 y132 w110 h20 vBLP, &Biography
Gui, Add, CheckBox, x122 y152 w110 h30 vPhot, &Photo Needed
Gui, Add, GroupBox, x2 y182 w210 h160 , Tasks Forces
Gui, Add, ListBox, x12 y202 w190 h140 vTaskF, Christian Metal|Contemporary Christian||Gospel Music|Southern Gospel
Gui, Add, Button, x12 y352 w60 h20 , Submit
Gui, Add, Button, x82 y352 w70 h20 , &Clear
Gui, Add, Button, x192 y32 w20 h20 , R
Gui, Add, Button, x162 y352 w50 h20 gGuiClose, E&xit
Gui, Show, x351 y184 h385 w242, Wiki-Cat
Return

GuiClose:
ExitApp
return

ButtonR:
Reload
return

Comb:
msgbox, changed
return

ButtonSubmit:
Gui, Submit, NoHide
GoSub BuildString
return

BuildString:

TaskF= % "`n| "((TaskF="Christian Metal") ? ("Christian Metal-work-group=yes") : ( ((Taskf="Contemporary Christian") ? ("Contemporary Christian-work-group=yes") : ( ((Taskf="Gospel Music") ? ("Gospel Music-work-group=yes") : ( ((Taskf="Southern Gospel") ? ("Southern Gospel Music-work-group=yes") : ( ((Taskf="Gospel Music") ? ("Gospel Music-work-group=yes") : ( ((Taskf="Southern Gospel") ? () : ("Southern Gospel Music-work-group=yes")) )) )) )) )) ))
if  Attn=1
{
	Attn=`n| attention=Yes
}
else
{
	Attn:=
}

if  Info=1
{
	Info=`n| needs-infobox=Yes
}
else
{
	Info:=
}

if BLP = 1
{
	BLP=`n| blp=Yes 
}
else 
{
BLP:=
}

if  Phot=1
{
	Phot=`n| needs-photo=Yes
}
else
{
	Phot:=
}


NewString={{Christianmusic `n| Class=%class% `n| Importance=%Imp%%Attn%%BLP%%info%%Phot%%TaskF% }}
Clipboard = %NewString%
Msgbox %Clipboard%
Clipboard:= ClipSaved
ClipSaved=

return