|
|
第6行: |
第6行: |
| *[[:image:Logo phi.gif]]是舊隊徽,因館內似乎沒保留舊隊徽,[[:image:Logo phi.png]]是去年上傳的新版本,看你要不要先換成的,之後我會把舊的刪除。-[[User:Good boy|Good boy]] ([[User talk:Good boy|討論]]) 2019年02月20日(三)21:55 (CST) | | *[[:image:Logo phi.gif]]是舊隊徽,因館內似乎沒保留舊隊徽,[[:image:Logo phi.png]]是去年上傳的新版本,看你要不要先換成的,之後我會把舊的刪除。-[[User:Good boy|Good boy]] ([[User talk:Good boy|討論]]) 2019年02月20日(三)21:55 (CST) |
| | | |
− | *你指在維基直接引用外部圖片嗎?預設是不行,我猜測是為了防止引用色情暴力等不當圖片,畢竟維基人人能改內容。我剛剛看了 Getty Image 所產生的嵌入語法,那在這裡更肯定不行,都是預設被禁止的標籤,並非只是單純的「語法」問題,而是維基的預設行為就是禁止它們。不過,目前我可以控制此站前端的部份功能,應該可以加入這個功能,待我研究一下(如果你指引用外部圖片,那非常容易處理,但要引用 Getty Image 的語法就比較麻煩,因為也要配合它,但我覺得思考一下怎麼與它配合是有意義的,如你所言它是可合法引用的,總比不限制而讓使用者在維基任意引用可能有版權問題的外部圖片來得好)。明天開始我研究一下,暫無方向,但覺得應該不難,有結論我再到這裡留言。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月13日 (一) 00:09 (CST) | + | *至少有了官方答案,並非壞事,比心裡一直懸在那裡好,此事算是告一段落了。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月16日 (四) 10:57 (CST) |
− | * Getty Images 的語法是你教我的哩,就是到 Google 逛逛,有許多教學,我是瞄了一眼這篇:【[https://free.com.tw/getty-images-free-embed-photo/ 語法]】,打開想要的圖,圖的下方有 <tt><nowiki></></nowiki></tt> 符號,點下去就有語法。我的意思是,即使複製那些語法到這裡,也是不能用,因為維基則上是禁止那些語法的。
| + | |
− | * 解決之道我昨晚就搞定了,只是這站有 cache,程式必須等 cache 過了才能生效。
| + | |
− | :*使用方法:
| + | |
− | <PRE STYLE="margin-left:40px"><DIV CLASS="DGPK-Getty-Images">【Getty Images 語法貼在這裡】</DIV></PRE>
| + | |
− | :*範例:
| + | |
− | <PRE STYLE="margin-left:40px;white-space:normal"><DIV CLASS="DGPK-Getty-Images"><a id='T7xGwNY-QZ1Py4I5Y5EC1A' class='gie-single' href='http://www.gettyimages.com/detail/979081604' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'T7xGwNY-QZ1Py4I5Y5EC1A',sig:'FGYn_c7_Z3MW7U7Gqv4R6naGu0v1RW_Fi9m6Gip-WSw=',w:'385px',h:'449px',items:'979081604',caption: true ,tld:'com',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script></DIV></PRE>
| + | |
− | :*結果:<BR><DIV CLASS="DGPK-Getty-Images"><a id='T7xGwNY-QZ1Py4I5Y5EC1A' class='gie-single' href='http://www.gettyimages.com/detail/979081604' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'T7xGwNY-QZ1Py4I5Y5EC1A',sig:'FGYn_c7_Z3MW7U7Gqv4R6naGu0v1RW_Fi9m6Gip-WSw=',w:'385px',h:'449px',items:'979081604',caption: true ,tld:'com',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script></DIV>
| + | |
− | * 你依上面的處理就可以使用 Getty Images 裡的圖片了。我現在的小小疑惑是我在 Getty Images 複製到的語法是 <tt><nowiki><a...></a><script>...</script></nowiki></tt>,但上面那篇中文教學裡說它給的語法是 <tt><nowiki><iframe>...</iframe></nowiki></tt>,我在想是不是不同人或裝置或不同時期會複製到的語法不同,我等一下再到程式裡加入 <tt><nowiki><iframe>...</iframe></nowiki></tt> 的支援,若有人是複製到它的話。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月13日 (一) 08:57 (CST)
| + | |
− | * 好了,現在即使複製到的是 <tt><nowiki><iframe>...</iframe></nowiki></tt> 也能用在這站。聽不懂這兩段說的沒關係,反正就是把在 Getty Images 複製來的語法寫在 <tt><nowiki><DIV CLASS="DGPK-Getty-Images">...</DIV></nowiki></tt> 裡面就對了。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月13日 (一) 09:24 (CST)
| + | |
− | | + | |
− | *圖片置左置右,自行決定,這是排版問題,與 Getty Images 無關,它只提供圖片讓人鏈結而已。如果要置右,有很多方法,例如你建立一個透明的 TABLE,寬度等於 100%,然後在格子裡設成內容物置右,或是用一個 DIV 也是相同效果。這種問題你問我都沒關係,很容易回答,但是我沒有耐性,最基礎的問題你若重複問我會火氣上來(當然現在沒有,但怕你一直問這類基礎問題,得先說一聲)。以下就是置右,用 DIV 話,其實它還有很多參數可以設定,例如怎麼與左邊的字相處等等,這裡只是最單純的狀況,就是置右,左邊沒東西。
| + | |
− | <DIV STYLE="text-align:right"><DIV CLASS="DGPK-Getty-Images"><a id='2ZYBfulNR69Z9x_QyGdaLg' class='gie-single' href='http://www.gettyimages.com/detail/AB25314' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'2ZYBfulNR69Z9x_QyGdaLg',sig:'eFP6z2_dIKLRM3BdunYtg_98tfFULHMAlcb9YsMnn3I=',w:'510px',h:'337px',items:'AB25314',caption: true ,tld:'com',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script></DIV></DIV>
| + | |
− | :至於來自 Getty Images 的圖片怎麼控制大小等等,我就沒有仔細去研究,應該可以 Google 一下看它有沒有什麼參數,圖片大小就不是這裡所能控制的(硬要也可以,只是比較複雜,所以不教這個,還是希望它本身就有適當的參數可以控制比較好、比較根本、比較單純)--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月13日 (一) 13:44 (CST)
| + | |
− | *我剛發現無法同時顯示兩張以上的圖,但知道原因,很容易解決,我去改一下程式就好了。本站有 cache,要幾個小時後才會生效,或是你在電腦上按 Ctrl-F5 強制更新頁面,就可以看到這頁的兩張圖了。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月13日 (一) 13:44 (CST)
| + | |
− | <DIV STYLE="text-align:right;display:inline-block;float:right;margin:0 0 10px 20px;width:300px"><DIV CLASS="DGPK-Getty-Images"><a id='2ZYBfulNR69Z9x_QyGdaLg' class='gie-single' href='http://www.gettyimages.com/detail/AB25314' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'2ZYBfulNR69Z9x_QyGdaLg',sig:'eFP6z2_dIKLRM3BdunYtg_98tfFULHMAlcb9YsMnn3I=',w:'510px',h:'337px',items:'AB25314',caption: true ,tld:'com',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script></DIV></DIV>
| + | |
− | *如果要圖文共存、圖片置右的話,可以寫成這樣(其實就像一些國際賽設定的日曆、logo 一樣)。<SPAN STYLE="color:red">而且我知道怎麼控制圖片的寬高了</SPAN>,它的寬度是根據外部容器的大小,所以外部容器設成 <tt>300px</tt> 的話,圖片就是這麼寬,比想像中的更容易。
| + | |
− | <PRE STYLE="margin-left:40px;width:700px">圖文共存,將外部容器設成:本身置右、內容置右、寬度 300px
| + | |
− | <DIV STYLE="text-align:right;display:inline-block;float:right;margin:0 0 10px 20px;width:300px">
| + | |
− | <DIV CLASS="DGPK-Getty-Images">【Getty Images 語法貼在這裡】</DIV>
| + | |
− | </DIV>
| + | |
− | </PRE>
| + | |
− | | + | |
− | *最後一個寫法應該是最符合此站風格與需求的。其實你真的有問題又一時無解的話,還是問吧,我那麼說只是擔心出現太多沒經過思考及嘗試自行解決的問題而已,如果已經思考過、嘗試想得到的方法還是解決不了,那當然還是要提出來,何況我也未必就能解決,就提出來一起研究吧,像這次 Getty Images 我就感到很有興趣,雖然過去沒用過、未來也不一定都能用上,但透過前端程式轉個彎讓它可以應用在這站的這個過程裡我就很感興趣。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月13日 (一) 20:10 (CST)
| + | |
− | *哈,這你們自行決定吧,對那部份我倒是沒有意見。政策方面的事你們決定吧,我搞技術就好。--[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月14日 (二) 19:08 (CST)
| + | |
− | *我瞄了一眼,似乎有寫學術性質為免費,我覺得比較乾脆的方法,就是寄信直接問 Getty Images 這站的性質符不符合免費且合法的條件。這你自己寫就好囉,應該三兩句話再附這站鏈結就可以了,不需要什麼客套話,別叫我寫 :P --[[User:Digipunk|Digipunk]] ([[User talk:Digipunk|討論]]) 2019年5月14日 (二) 19:13 (CST)
| + | |
| | | |
| ==3000K修改格式== | | ==3000K修改格式== |