Difference between revisions of "Template:ExampleContact"
Line 1: | Line 1: | ||
<div id=contact-form> | <div id=contact-form> | ||
{{#form:method=post|style=width:400px| | {{#form:method=post|style=width:400px| | ||
− | '''Name:''' {{#input:type=select|id=xc-name|name=title|*{{{name|Select name}}}{{#dpl:uses=Template:ExampleContact|format=,\n*%TITLE%,,}}}}{{#if:{{{name|}}}|[{{fullurl:{{{name}}}|action=edit}} edit {{{name}}} article]}}<br> | + | '''Name:''' {{#input:type=select|id=xc-name|name=title|*{{{name|Select name}}}{{#dpl:nottitle={{FULLPAGENAME}}|uses=Template:ExampleContact|format=,\n*%TITLE%,,}}}}{{#if:{{{name|}}}|[{{fullurl:{{{name}}}|action=edit}} edit {{{name}}} article]}}<br> |
<br> | <br> | ||
'''Phone:''' {{#input:name=phone|id=xc-phone|value={{{phone}}}}} | '''Phone:''' {{#input:name=phone|id=xc-phone|value={{{phone}}}}} |
Revision as of 09:01, 14 September 2007
{{#form:method=post|style=width:400px|
Name: {{#input:type=select|id=xc-name|name=title|*Select nameExtension:DynamicPageList (DPL), version 3.3.3: Warning: Unknown parameter 'nottitle' was ignored. Help: available parameters: addauthor, addcategories, addcontribution, addeditdate, addexternallink, addfirstcategorydate, addlasteditor, addpagecounter, addpagesize, addpagetoucheddate, adduser, allowcachedresults, allrevisionsbefore, allrevisionssince, articlecategory, cacheperiod, categoriesminmax, category, categorymatch, categoryregexp, columns, count, createdby, debug, distinct, dominantsection, eliminate, escapelinks, execandexit, firstrevisionsince, fixcategory, format, headingcount, headingmode, hiddencategories, hitemattr, hlistattr, ignorecase, imagecontainer, imageused, include, includematch, includematchparsed, includemaxlength, includenotmatch, includenotmatchparsed, includepage, includesubpages, includetrim, inlinetext, itemattr, lastmodifiedby, lastrevisionbefore, linksfrom, linksto, linkstoexternal, listattr, listseparators, maxrevisions, minoredits, minrevisions, mode, modifiedby, multisecseparators, namespace, noresultsfooter, noresultsheader, notcategory, notcategorymatch, notcategoryregexp, notcreatedby, notlastmodifiedby, notlinksfrom, notlinksto, notmodifiedby, notnamespace, nottitlematch, nottitleregexp, notuses, offset, oneresultfooter, oneresultheader, openreferences, order, ordercollation, ordermethod, qualitypages, randomcount, redirects, replaceintitle, reset, resultsfooter, resultsheader, rowcolformat, rows, rowsize, scroll, secseparators, showcurid, shownamespace, skipthispage, stablepages, suppresserrors, table, tablerow, tablesortcol, title, titlegt, titlelt, titlematch, titlemaxlength, titleregexp, usedby, userdateformat, uses
.
- John Doe
- Ping Li
- Hans Berg}}
Phone: {{#input:name=phone|id=xc-phone|value={{{phone}}}}}
Address:
{{#input:type=textarea|style=width:350px|id=xc-address|name=address|{{{address}}}}}
{{#input:type=ajax|value=Load|update=contact-form}}{{#input:type=ajax|value=Save|update=contact-form
|onClick=document.getElementById('xc-content').setAttribute('value','{'+'{ExampleContact\n|name='+document.getElementById('xc-name').value+'\n|phone='+document.getElementById('xc-phone').value+'\n|address='+document.getElementById('xc-address').value+'\n}'+'}');}}
{{#input:type=hidden|name=templates|value=update}}
{{#input:type=hidden|name=content|id=xc-content}}
}}