Difference between revisions of "Template:Flickr code generater"
From FollowTheScore
Roc michael (talk | contribs) |
Roc michael (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[http://www.mediawiki.org/wiki/Extension:Call Call extension]、[http://www.mediawiki.org/wiki/Extension:Simple_Forms Simple Forms extension] and [http://www.mediawiki.org/wiki/Extension:Flickr Flickr extension]. | [http://www.mediawiki.org/wiki/Extension:Call Call extension]、[http://www.mediawiki.org/wiki/Extension:Simple_Forms Simple Forms extension] and [http://www.mediawiki.org/wiki/Extension:Flickr Flickr extension]. | ||
− | {{#form: | + | {{#form: name= demo |action={{#replace:{{localurl:{{PAGENAME}}}} |
+ | |%^([\/]\S*[index.php])([\/])([{{PAGENAME}}]\S*)% | ||
+ | |\1 | ||
+ | }}| | ||
{{#input: name= title |type= hidden | value = Special:Call/Flickr code generater}} | {{#input: name= title |type= hidden | value = Special:Call/Flickr code generater}} | ||
<table cellpadding=0 cellspacing=0 margins=0> | <table cellpadding=0 cellspacing=0 margins=0> | ||
Line 10: | Line 13: | ||
<td align="right">圖片網址(url)</td> | <td align="right">圖片網址(url)</td> | ||
<td colspan="3"> {{#input: name=url | <td colspan="3"> {{#input: name=url | ||
− | | value = {{{url|}}} }}</td> | + | | value = {{{url|}}} }} (EX:http://www.flickr.com/photos/king-edward/362100651/in/photostream/)</td> |
</tr> | </tr> | ||
<!--------------------> | <!--------------------> | ||
<tr bgcolor="#ffeedd"> | <tr bgcolor="#ffeedd"> | ||
<td align="right">圖片編號(photoid)</td> | <td align="right">圖片編號(photoid)</td> | ||
− | <td colspan="3"> {{#input: name=photoid | value = {{{photoid|}}}}} ( | + | <td colspan="3"> {{#input: name=photoid | value = {{{photoid|}}}}} (EX:「1380153248」)</td> |
</tr> | </tr> | ||
<!--------------------> | <!--------------------> | ||
Line 89: | Line 92: | ||
----->{{#if:{{{caption|}}}|{{!}}{{{caption|}}} }}</flickr> | ----->{{#if:{{{caption|}}}|{{!}}{{{caption|}}} }}</flickr> | ||
---- | ---- | ||
− | <big><u> | + | <big><u>您使用如下的查詢參數(Your query is following):</u><br><br> |
<flickr>{{{photoid|}}}{{#replace:{{{url|}}} | <flickr>{{{photoid|}}}{{#replace:{{{url|}}} | ||
|/^([http]\S*[photos])[\/](\S*)[\/](\d*)[\/](\S*)/ | |/^([http]\S*[photos])[\/](\S*)[\/](\d*)[\/](\S*)/ |
Latest revision as of 10:22, 12 April 2008
The Demo of Combining the use of Call extension、Simple Forms extension and Flickr extension.
{{#form: name= demo |action={{#replace:/dpldemo/index.php?title=Flickr_code_generater
|%^([\/]\S*[index.php])([\/])([Flickr code generater]\S*)% |\1 }}|
{{#input: name= title |type= hidden | value = Special:Call/Flickr code generater}}
圖片網址(url) | {{#input: name=url | value = }} (EX:http://www.flickr.com/photos/king-edward/362100651/in/photostream/) | ||
圖片編號(photoid) | {{#input: name=photoid | value = }} (EX:「1380153248」) | ||
圖片型式(type) | {{#input: name=type | type=select | value = |
}} |
||
圖片位置(location) | {{#input: name=location | type=select | value = |
}} |
||
圖片尺寸(size) | {{#input: name=size | type=select | value = |
}} |
||
圖片註解(caption) | {{#input: name=caption | value = }} |
{{#input: type = submit | value = 產生(Generate)}} 放棄(reset) |
}}