This page is testing the new (:input select ... :) markup in forms, as well as testing the ability to retain values across form submissions.
We'll start with (:input select ...:). The basic form of a select box is a sequence of options:
(:input form:)
(:input select name=abc value=1:)
(:input select name=abc value=2:)
(:input select name=abc value=3:)
(:input submit:)
(:input end:)
To have options with labels different from the value of the control, use the label=option:
(:input form:)
(:input select name=abc value=1 label=alpha :)
(:input select name=abc value=2 label=beta :)
(:input select name=abc value=3 label=gamma :)
(:input submit:)
(:input end:)
Or, the values can be specified positionally:
(:input select name=abc 1 alpha :)
(:input select name=abc 2 beta :)
(:input select name=abc 3 gamma :)
alpha beta gamma
We can specify the size of the selection box:
(:input select name=abc 1 alpha size=3 :)
(:input select name=abc 2 beta :)
(:input select name=abc 3 gamma :)
alpha beta gamma
The "multiple" option works:
(:input select name=abc 1 alpha size=3 multiple:)
(:input select name=abc 2 beta :)
(:input select name=abc 3 gamma :)
alpha beta gamma
So, here's a dropdown list of pages in the Test group:
(:if false:)
[[#dropdownlist]]
(:input select name=n {=$FullName} "{=$Name}":)
[[#dropdownlistend]]
(:if:)
(:pagelist fmt=#dropdownlist group=Test:)
00962 12Over4 2003Titlespaced 2006-01-01 20060308 20070402-Draft 20070417 20070417-Draft 20070809 20070809-AnotherTest 20070905 20071019-SomeHybridPageName 20071107 20080806 20090101-HappyNewYear 20090110 20090701 20090702 20090703 20090704 20110502 Abc2 AbcMusic Abilità Accented Accented-Talk AccessKeyToEdit AccueilTest AddLinkBookmarklet AdjacentImages AdminConference2007-05-11 AdvancedTable AdvTable AllowPassword AlternativeViewProposal AmanitaPantherina Ampersand AmpersandTitle AmpersandTitle2 Anchor AnchorInclude AnchorInclude1 AnchorInclude2 Anchors AnchorSpacing ARCSNoLocalTimes Arrow Attach AttachAttach AttachDelta Attached AttachExample AttachExample2 AttachExist AttachList Attachment AttachWithImage AttachWithSpaces AttachWithText AttrExample AuthConditions AuthHeader AuthList AuthList2 AuthListShort Author AuthorCookie AuthorLink AuthorRequired AuthPw AuthUser AutoTOC BackgroundImage BackgroundImages Backlink Backlink-aux BackLinkInPTV BackLinks Backlinks Backlinks2 Banner Bar BaseA BaseB BaseC BaseName BasicAuth BasicEditing BeginningMiddleEnd Ben BensonHedges BGColor BigBigSummary BigEdit BigWithInclude BigWithInclude2 BISyntax BlankLines Block-In-A-Div BlockInclude BlockIncludeTest BlockIncludeTest2 Blocks BoldOrderedList Book BooklikeParagraphs Bookmarklet BorderColorImg Box1 BoxCode Bridge Bridge2 BrowserCondition BrowseTrail BugOrFeature BugWithInclude1 BugWithInclude2 Button BWSS BWSSMeeting Calendar CamelCasedLinks Captcha CategoryPV CategoryRequired CategoryTestPageWithoutLink CategoryUploadDummy CategoryUploadsDummy CategoryUploadsDummy2 CCLicense CellCenter CenteredBlock CenteredInterMapImage CenterHeading CFrame CheckBoxArray Chess ChessMarkup ChopTitle Christian Cjc Codeblock CodeTest ColorByDate ColumnLists ColumnPageList ColumnSpanning CommandPrompt Commentary CommentFormat Comments CommentsTargets CondAuth CondExists CondExtend ConditionAction ConditionalStatementsAndVerticalSpace Conditions ConditionTest Confluence ContentTemplate ConvertAccentedChars CookbookColumned CookbookList CookbookSideBar Count CountGlyphs CreatedFile CreatedMarkup CreateLinkTests CreateTime Creole Creole-Sandbox CrossGroupTrail CSS CSSClearProperty CSSMarkup CssMarkup2 CSSPopups CtimeCookbookList Danger DataVars DateConditional DateMgtAndConditionals DateRange DaveG DaveG-PTV DC DC-Draft DefinitionLists Definitions Definitions2 DeletedPage DeletedPageList DemoPage Description DescriptionT DevelMarkup DiffAuthor DigitalInit DirectiveAndText DirectiveAndText2 DisableMarkup DisplaysInLists Divend DivMarkup DivMarkupBug Divs DivTemp DMarkup DocToUTF8 DocumentationXref DOI DollarInComment DoubleDiv DoubleSave DropDown DropDown-Draft DublinCore DuplicateMailPosts DynamicImage EasyGallery EasyGalleryPic1 EasyGalleryPic2 EasyGalleryPic3 EasyGalleryPic4 EasyGalleryPic5 EasyGalleryPic6 EasyGalleryTemplate EditForm Editform Editform-edit EditForm2 EditForm3 EditForm4 EditFormWrapDiv EditFromPmwiki-mode-Draft EditNoLeft Editor EditPreview EditPreviewForm EditQuickReference EditRedirect EmptyLink EmptyList EmptyPage EmptyTargets Enabled EnableHTML EnablePageTitlePriority Equality Events ExcelPaste ExprBug ExtendMarkup ExternalLinkWithLineContinuation ExtractList ExtractListFailure FAQ FAQClassic FAQTemp FileList FileManagers FileMarkup FileUrls FilmScript Flash Float Float2 FloatBreak FloatDiff FloatHistory FloatingColumns FloatingImage FloatLeftInItem FlowplayerAccess FmtCount FontStyles Foo FormatingBugs FormListTemplate FormPTVTest Forms ForumForm ForumList ForumTemplate FPLByGroup FPLCount FPLMySimple FPLTemplate Fractions Frame FrameCenter Frames FrameWikistyle FromHomePage Ftime FtimeInPagelist FTimeMarkup FullScreenPage FunWithTables GeminiThemes GeminiThemes1 GeminiThemes2 GeminiThemes3 Gimg GlobalVarSubstitutions GmaneSearch GoogleChart GoogleSearch GroupAttributes GroupHeader GroupHome GroupListing GroupOnlySyntax GroupTitle GroupTitles GUIButtons HardPageBreak HasPreformattedLine HeadingAnchor HeadingAndPre HeadingNoTitle HeadingsWithText1 HeadingsWithText2 HeadingsWithText3 HeadingsWithText4 HeadingsWithText5 HiddenLink HighlightAction HighlightRows Hojdare HolaMundo HomeList HomePage HomePageLink Html HTMLCache HTMLStyleFmtOverride HTMLValidationWithIncludes HTMLValidationWithIncludes-help1 HTMLValidationWithIncludes-help2 Höjdare IfAuthTest IfDate IfElseIf IfIndented IfLink IfMarkupTime IfMarkupTime2 IfMarkupTime3 IfNested Image ImageBorder ImageBorders ImageCaption ImageFloat ImageFrameTest ImageLines ImageLink ImageLinkHTTPS ImageNameWithSpaces Images Images-Draft ImagesTemp ImageTable ImageTest ImageThumbLink ImageThumbLink-Img1 ImageThumbLink-Img2 Include Include2 IncludeAndAnchor IncludeBugA IncludeBugB IncludeBugWithLabel IncludeBugWithLabelSrc IncludeCategory IncludeCategorySource IncludeData IncludedPage IncludedSection IncludedStyleDefinitionInCamelCase IncludeFromComment IncludeFromOther IncludeFromSelf IncludeFromSelfPage IncludeFromSelfPage2 IncludeLength IncludeLength2 IncludeLines IncludeLinksTest IncludeLinksTest2 IncludeManyPages IncludeOneLine IncludeOneLineSrc IncludeOtherPages IncludeRedirect IncludeRedirectB IncludeRestOfPage IncludeSamePage IncludeSelf IncludeTest IncludeTest1 IncludeTest2 IncludeVariable IncludeVariable2 IncludeVars IncludeVars2 IncludeVarTest IncludeVarTestBase IncludeWithBasepage IncludeWithoutNewline IncludeWithPTV IncludeWithPTV2 IncludeWithPTVTemplate IncludeWithPV IncludeWithPVTest IncludeWithVariable IncludingPage IncorrectIndentation Indent IndentParas Indents IndentStyle Index IndexOf Infobox InlcudeTemplate InlineBreaks InlinePageList InlinePHP InputDefault InputDefault2 InputDefaults InputForSelectingPage InputSelect InputSelectData InputSelectJiri InputSelectNestingSource InputTextareaDefault Insert InterMap InterMapLinks InternationalAuthor ItalicsInTitle ItemListWithHorizontalSpace ItemListWithSpecialStyling JSFeed JsMath JumpBox JumpTop Justify JustText KeepKeep KeepMarkup Keywords Kmarie LargePage LastModifiedHost LatestNews Latestnews-Draft Layers LB LeftBar LightSkinEditPage LinebreaksAndWhitespacePre LineContinutation1 LinesWithSpaces LinkAndNonBreakingSpace LinkHTMLOutput LinkInPTV LinksToSomePage LinksWithDash LinkTest LinkTitle LinkTitles LinkToGroup ListBasicAudiencePages ListCategoryMatchingTwoCategories ListId ListPagesWithoutACategory Lists LockedPage Login Logout LongCodeLine LongLinkText LongListItems Ma MacIE52ScreenShots Macron MailForm MailtoLink ManuallySetEnumeratedLists Map Markup MarkupCharacters MarkupExpr MarkupExpressions Markups MarkupTricks Math122-200702 MaxPostSize MbMX MediaWiki MenuBar MetaKeywords Metaphors MissingCSS ModuleGuidelines-Old Monospace MonospaceWordWrap MoreStyles MultiLang MultilineList MultiLinePageTextVariables MultipleLinePTV MultiUrl MyTest Mz NameISOWeek NarrowContent NestedInclude NestedInclude1 NestedInclude2 NestedInclude3 NestedVars NestTableAndDiv NewCleanUrlsRecipe NewDefSkinMod Newline NewPageBox NewRecentChanges News NextEventAnchor NoAction NoBold NoChars NoEditLinks NoFlash Nofollow NoFooterPage NoHeaderPage NoHostLogging NoLeftPage NoNestTest NonExistentTitles NonTrailPage NonTrailPage2 NoQuest NoRightPage NoSummaryPages Note Notebook-NT-Skin Notebook-NT-Skin-LeftFloat Notify NumArticles NumberedLists NumericPassword OldAl OneLinePagelist OneLineTemplate OnlinePresence Opacity OSM OutlineTest Overflow Page-name-with-hyphens PageCount PageExists PageIndex PageList PageList2 PageList3 PageList4 PageListA PagelistAcrossGroups PageListAnchors PageListB PagelistBug1 PageListCache PageListCalls PageListCount PagelistCount PagelistDateError PagelistDefaults PagelistDescriptionFormat PagelistExample PageListFmt PageListFmtGroup PagelistFmtGroupsWithLinksToListPage PageListIf PageListIf2 PagelistIfMx PagelistIfMx1 PagelistIfMx2 PagelistIfMx3 PagelistIfOntrail PageListLastModified PagelistLink PageListLink PageListLinks PageListLinkWithPtv1 PageListLinkWithPtv2 PageListLinkWithPtv3 PageListLinkWithPtv4 PageListLinkWithPtv5 PagelistOfPagelists PageListOptions PageListOrderingWithPgVar PagelistParameterVariables PageListRecent PagelistRecentChanges PageListRecursionLink PageListRecursionTrail PageListSelf PagelistSortVariable PageListTemplate PageListTemplates PagelistTemplateSamples PageListTest PageListTime PageListTitles PageListTItleSpaced PageListTrail PageListTrail2 PageListTrail3 PageListTrailNot PageListVariableNone PageListWithPgVar PageListWithPgVar1 PageListWithPgVar2 PagelistWithUndefinedFormat PageName PageNameCases Pagenamecases2 PageNameWithPmWikiInIt PageNotFound PageNäme PagesInPmWikiGroupWithRedirect PagesLastModifiedByYou PageSource PageTextVariables PageTrailDepth PageUrlVar PageUrlVarInclude PageVariable PageVariable-Talk PageVariableInPageList PageVarSelection PageWithEntity PageWithLotsOfText PagewithOnlyPagelist PageWithTeaser Paragraph ParagraphFloats ParagraphInList ParaIndent ParseArgs PasswdList Password PasswordAndEmacs PasswordProtectedPage PData Pdf PeterKernSWiki PITSList PL PLC PLTVarOption PmCal PmCal-Examples PmCal-Examples2 PmSlide PmWiki PMWiki Podcast PopUp PopUpTrimmed PostStopWatch PreCssHack PreFmtNotWorking Preform Preform2 Preform3 Preformat Preformatted PreformattedBlock2 PreformattedText PreformattedTextAndTAB PreOverflow Present PreSpaces PreviewChange PreWithFormatting PreWrap PrintSkin Printtest ProfileBug ProfileList ProfilesMigrationUTF8 Properties ProtectEmail Ptest PTT Ptv PTV PTV-Petko1 PTV-Petko2 PTV-Petko3 PTV-Petko4 PTV-Petko5 PTV-Petko6 PTV-Summary PTV2 PTV3-Draft Ptva PTVandCategory PTVandCategoryLocked PTVarEscape PTVAudience Ptvb PTVbug PtvDisplay PTVInclude PTVInclude2 PTVinPagelist PtvMayBe PtvMaybe PtvNo PtvNO PtvSome-Times PtvSomeTimes PTVStyle PtvTemplate PTVWithPageList PtvYES PtvYes PurpleCow PWAd PwdEditImpliesRead QueryString Quicktoc Quienc QuotesInLinks RadioButtons Rand RandomPageList RaphaëlÊtreInouï RatingByAuthor RB05Week14 ReadPass ReadProtected ReallyReallyReallyLongPageName ReallyReallyReallyLongPageName-noItIsReallyExtremelyLong ReallyReallyReallyLongPageNamenoItIsReallyExtremelyLong ReallySimple RecentChanges RecentChangesByDate RedirectAnchor RedirectToAnotherPage Refresh RelativeLinksPagelist RelLinks Reqtest RevMarkup Rfloat RightBar RightFloat RightLink Rollover RotateMarkup RowStyling RSSFeedLinks RTL SafeModeGID Sandbox Sandbox-Draft Sandbox2 Search SearchBox SearchBox2 SearchBoxArgs SearchBoxInclude SearchBoxPageList SearchBoxTrail SearchByTitle SearchCloud SearchForm SearchParamsLeak SearchResults SearchResultsWithCateogory SearchSort SearchTerms Sections SelectPageSpaced SelfTarget ShouldWork SideBar SideBarList Sidenotes SigCount Simple SimpleViewer SimultaneousEdits SimultaneousEdits1 SiteAdminProposal SiteGroupMarkup SiteHomePage SiteMap SkinList SkinMarkup Skins SkinTestAssortment SkinTestCompact SkinTestHeadings SkinTestImages SkinTestLists SkinTestLongPre SkinTestMenu SkinTestSelectSkin SkinTestTables SkinTestText Skype SlideShow SloveneSearch SmallCaps SomePage SpacedLinks SpacesInSimpleTables SpaceWikiWord SpaceWikiWords Spacing SpanInLink SpecialLinks SpecialReferencesSource SpecialReferencesTarget SquareBracketsInLink SSWB Stanchor Start StickyNotes StickyNotes1 Sting StmLink Stubs StyleClass StyleInLinkText Superscripts TableAndImage TableBackground TableBorders TableBug TableCellSpace TableDirectives TableHeaders TableInList TableProblem1 TableTest Tabs Tags Template TemplateLinks Templating Terminology Test Test123 Test2 Test34 TestCache TestData TestDe TestDirectiveMarkup TestGroup Testicus Testjoe123 TestLP Testm TestNewwinStyle TestStyles TestToC TestÄöü Text TextArea TextareaFontTest TextTransform TextVars ThickBox Title TitleInc TitleInc2 TitleLinkWithQuery Titlespaced2004-05-08 TitleTest Tjolahoppsan TmpFeed TmplDisplay TOC1 ToolTip Tooltips Top10NotRecentlyModified Topic1 TopNav Trail Trail-crossgroup Trail3 TrailFromPagelist TrailIndex TrailPage1 TrailPage2 TrailPage3 TrailPage4 TrailPath TriadSkinItalicTextBug TuringCaptcha Umlauts UmlautUploads UploadForm Uploading UploadSimpleForm UploadsQuickReference URL UrlApprovals UrlError UrlParens UrlsWithDates UrlWithQuotes UserAndLevel UseTable UsingTabForPreformattedText UTF8RTL VariablesAndFriends VerticalSpace VerticalSpacing1 VeryLongLinkText ViewDiff VoteOnFirstLastMarkup VoteOnLeadingWhitespace VoteOnLeadingWhitespace-Talk VoteOnNestedDivMarkup VoteOnNestedDivMarkup-Talk VoteOnSiteHeader VoteOnSiteHeader-Talk Voting Vspace Weird Whitespace WhitespaceRules WidthAttr WikiDefines WikiStyle WikiStyleClass WikiStyleDefines WikiStyleInCamelCase WikiStylePercent WikiStyleRED WikiStyleRight WikiStyles WikiStyleToTheEnd Wikitest WikiTrail WikiTrail1 WikiTrail2 WikiTrail3 WikiTrail4 WikiTrail5 WikiTrail6 WikiTrail7 WikiTrailPagelist WikiTrails WikiTrailsDraft WikiWord WikiWord2 WikiWord3 WikiWordCount WikiWordsAndStyles WildcardLinkSyntax Wildcards WildcardSlash WindowsFileUrls Withattrib2 WithHtml Word-Break WordLinks WordWrap Wrap WSExtra WSIndent WSIndent2 WSIndent3 WSPlusCode WTF2 XLPageUpdate XMLTest XMLTest2 XYTrail XYTrail1 XYTrail2 XYTrail3 XYTrail4 XYTrail5 XYTrail6 ZAPMcode ZipExport ß
A group page navigator:
>>display=none<<[@
[[#navigator]]
(:if equal {=$FullName} {*$FullName}:)
(:input select name=n selected=selected {=$FullName} "{=$Name}":)
(:if ! equal {=$FullName} {*$FullName}:)
(:input select name=n {=$FullName} "{=$Name}":)
[[#navigatorend]]
@](:nl:)>><<
(:comment pagelist fmt=#navigator group=Test:)
[[#navigator]]
(:if equal {=$FullName} {*$FullName}:)
(:input select name=n selected=selected {=$FullName} "{=$Name}":)
(:if ! equal {=$FullName} {*$FullName}:)
(:input select name=n {=$FullName} "{=$Name}":)
[[#navigatorend]]