Difference between revisions of "Template:Flickr code generater"

From FollowTheScore
Jump to: navigation, search
 
(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: name= demo     |action=/dpldemo/index.php|
+
{{#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">&nbsp;{{#input: name=url  
 
<td colspan="3">&nbsp;{{#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">&nbsp;{{#input: name=photoid | value = {{{photoid|}}}}} (例:「1380153248」)</td>
+
<td colspan="3">&nbsp;{{#input: name=photoid | value = {{{photoid|}}}}} (EX:「1380153248」)</td>
 
</tr>
 
</tr>
 
<!-------------------->
 
<!-------------------->
Line 89: Line 92:
 
----->{{#if:{{{caption|}}}|{{!}}{{{caption|}}} }}</flickr>
 
----->{{#if:{{{caption|}}}|{{!}}{{{caption|}}} }}</flickr>
 
----
 
----
<big><u>您使用如下的查詢參數:</u><br><br>
+
<big><u>您使用如下的查詢參數(Your query is following):</u><br><br>
 
&lt;flickr>{{{photoid|}}}{{#replace:{{{url|}}}
 
&lt;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 extensionSimple 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 = |
  • 縮圖 (thumb)
  • 加框 (frame)

}}

圖片位置(location)  {{#input: name=location | type=select | value = |
  • 右 (right)
  • 左 (left)
  • 中 (center)
  • 不限定 (none)

}}

圖片尺寸(size)  {{#input: name=size | type=select | value = |
  • 小方塊 (s)
  • 小縮圖 (t)
  • 小尺寸 (m)
  • 中尺寸 (-)
  • 大尺寸 (b)

}}

圖片註解(caption)  {{#input: name=caption | value = }}

 {{#input: type = submit | value = 產生(Generate)}} 放棄(reset)

}}