Difference between revisions of "29 April 2007"
m |
m |
||
Line 5: | Line 5: | ||
<pre style=border:none;background:none;> | <pre style=border:none;background:none;> | ||
{{#form: | {{#form: | ||
− | {{#input: type=select | + | {{#input: type = select |
− | | name=cat | + | | name = cat |
− | | *Select category {{#dpl: namespace=Category | mode=userformat | listseparators=,\n*%TITLE%,, | + | | {{#if: {{#request:cat}} | value = {{#request:cat}} }} |
+ | | *Select category {{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, | ||
}} | }} | ||
}} | }} | ||
− | {{#input: type=submit | value=List members}} | + | {{#input: type = submit | value = List members}} |
}} | }} | ||
{{#if: | {{#if: | ||
− | {{#request:cat}} | {{#dpl:category={{#request:cat}}}} | + | {{#request:cat}} | {{#dpl:category = {{#request:cat}} }} |
}} | }} | ||
</pre> | </pre> | ||
{{#form: | {{#form: | ||
− | {{#input: type=select | + | {{#input: type = select |
− | | name=cat | + | | name = cat |
− | | *Select category {{#dpl: namespace=Category | mode=userformat | listseparators=,\n*%TITLE%,, | + | | value = {{#request:cat}} |
+ | | *Select category {{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, | ||
}} | }} | ||
}} | }} | ||
− | + | {{#input: type = submit | value = List members}} | |
− | {{#input: type=submit | value=List members}} | ||
}} | }} | ||
− | + | ||
{{#if: | {{#if: | ||
− | {{#request:cat}} | {{#dpl:category={{#request:cat}}}} | + | {{#request:cat}} | {{#dpl:category = {{#request:cat}} }} |
}} | }} | ||
}} | }} |
Revision as of 06:19, 29 April 2007
Extension:SimpleForms
The new SimpleForms extension is still under development, but is now functional. Here's an example which shows how to make a simple form for listing the articles in a category. The source is shown first, followed by the resulting form.
- See MW:Extension:Simple Forms for installation and usage details.
- The source code for the extension is in the lcoal Extension:SimpleForms.php article.
{{#form: {{#input: type = select | name = cat | {{#if: {{#request:cat}} | value = {{#request:cat}} }} | *Select category {{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, }} }} {{#input: type = submit | value = List members}} }} {{#if: {{#request:cat}} | {{#dpl:category = {{#request:cat}} }} }}
{{#form: {{#input: type = select | name = cat | value = {{#request:cat}} | *Select category
- 1835
- 2012
- 2014 Holiday
- 2014 Holiday in Brazil
- 2016 Holiday in New Zealand
- 2018 Holiday
- 2018 Holiday in Brazil
- ActionScript
- AjaxMap
- Aljezur
- Alto Paraíso
- Amber
- Animals
- Aran
- Arca Verde
- Arequipa
- Argentina
- Art
- Articles by Infomaniac
- Articles containing warnings
- Articles in need of clean up
- Articles requiring expansion
- Articles that contain computer code
- Artificial Intelligence
- Auckland
- Barry & Eduardo visiting
- Bertrand Russell's The Problems of Philosophy
- Beth
- Beth's drawings
- BioC
- Birds
- Birds on our land
- Bitcoin
- Bliki
- Blockless
- Blog
- Blog items
- Boa Vista
- Books
- BoxHead
- Brasília
- Brazil
- Brochures
- Build system
- Butterflies
- C
- CMS
- Cambará do Sul
- Canela
- Cars
- Caterpillars
- Cats
- Caxias
- Chile
- Code in the OD SVN repository
- Code that uses voodoo
- Coffee
- Cooking
- Covershots
- Cows
- Cryptocurrency
- Curitiba
- Currency
- Cycling
- DEUTSCH
- Debian
- Debian packages
- Decentralised
- Decentralised social networks
- Del & Helder's
- Desktop environments
- Dev
- Devonport
- Diagrams
- Dinosaur
- Distributed computing
- Distributed processing
- Dito e Feito
- Documentaries
- Documents
- Dogs
- Dolls
- Domo
- ERP
- Ecuador
- Education
- Educational videos
- Emoticons
- Energy
- Erich
- Examples
- Excluded from RecentActivity
- Exemplary sites
- Extensions
- Extensions in the MediaWiki SVN repository
- Featured categories
- Federated
- Firebreather
- First flat in Brazil
- Fliss
- Florianópolis
- Flower
- Flowers
- Fluffinha
- Formatting templates
- Foundation ontology
- Foz do Iguaçu
- Freenet
- Gambiarra
- Garage
- GeSHi
- German Lessons
- Git-based CMS
- Glossary
- Graffiti
- Gramado
- Graphs
- Hack
- Hardware
- Health
- Help
- Hidden categories
- Hide categories
- Holarchy
- Houses
- Human Resources
- Humor
- Hungary
- I am that
- Icons
- Images
- Incomplete procedures
- Infomaniac
- Insects & Bugs
- Installation
- Jack
- JavaScript
- Karaka house
- Kat
- Kerr Street
- Lada Niva
- Lagos
- Lambinha
- Land
- Languages
- Latin America
- Legacy
- Legacy Extensions
- Legacy Projects
- Lego
- Libre software
- Limma
- Links
- Linux
- Livelets
- Living Together
- Lizards
- LocalSettings
- Logos
- Mac
- Madrid
- Mailouts
- Manasi
- Maps
- Maths
- MediaWiki
- MediaWikiLite
- Media Center
- Meditation
- Meetings
- Meme:Government failure to protect free speech
- Meme:Vulnerability of centralisation
- Meme:Vulnerability of centralised social networks
- Meme:vulnerability of centralised networks
- Mexico
- Mexico City
- Mice
- Microarray
- Milan
- Money
- Montevideo
- Months
- Mérida
- Nad
- Natural houses
- Networking
- NewDesk
- New Zealand
- News
- No files or comments
- Nodal Concepts
- Notes
- Nutrigenomics
- OD2
- Old Projects
- Old documents
- OpenGL
- Optical illusions
- Organic Design
- Organisation
- Organisational templates
- Otavio Rocha
- Our bridge
- Our house
- Our power project
- Our rural net connection
- P2P
- PERL
- PFS Wiki Proposal
- Pages with broken file links
- Pai Bitu
- Panamá
- Patriot Cow
- PayPal
- Peer-to-peer
- Peerd
- Peerix
- Pensão
- People pictures
- Personal visions
- Perú
- Phalseid/Todo
- Philosophy
- Physics
- Pimenta
- Pink hair
- Pirenópolis
- Plants
- Plasma reactor
- Platform
- Portals
- Porto Alegre
- Portugal
- Portuguese lessons
- Preferred Vendors
- Private
- Procedure
- Procedures
- Programming languages
- Project Friends
- Projects
- Pudim
- Puerto Iguazú
- Punta Ballena
- Punta del Este
- Pupito
- Quati
- Queries
- R
- Recipes
- Records
- Resources
- Rio Grande do Sul
- Rob
- Robin Patterson
- Robots
- Rosie
- Ruby
- SDL
- SSL
- SVG
- Sandbox
- Sandero
- Santiago
- Satire
- Screenshots
- Seals
- Seaside
- Second house
- Secret Forest
- Security
- Self-improvement
- Ships
- Skins
- Smartcarpetcare.com
- Snakes
- Snipits
- Software
- South America
- Spain
- Special categories
- Spiders
- Squeak
- Squirrels
- Stories
- Structured Or Unstructured
- Stubs
- Subversion
- Sven
- Symbols
- Sysop procedures
- São Francisco de Paula
- São Lourenço
- TBD
- TEX
- Tags
- Template:Portlet instances
- Test
- Tips & tricks
- To do
- Todo
- Tools
- Toyota Hilux
- Traffic engineering
- Training
- Tree view
- Tree view images
- Trees
- Trust groups
- Tutu
- USB turntable
- Uruguay
- User categories
- Values
- Vege patch
- Videos
- Vision
- Vultures
- WIP
- Waiheke
- Waiheke Island
- Water on our land
- Web3.0
- Webpages
- Wharfit
- Wiki
- Wiki organisation
- Wikia
- Wildlife on our land
- Workshops
- World
- Writing
- XmlWiki
- XmlWiki Events
- XmlWiki Properties
- Yi
- Yucatán
}} {{#input: type = submit | value = List members}} }}
Extension:DynamicPageList (DPL), version 3.3.3: Warning: Skipping bad option '{{#request:cat}}' for parameter 'category'.
Extension:DynamicPageList (DPL), version 3.3.3: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants
Extension:DynamicPageList (DPL), version 3.3.3: Warning: No results.