Create Link: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Make Link Options: 變數大寫改成小寫) |
||
| Line 46: | Line 46: | ||
%tinyurl% ''(實驗性功能)'' | %tinyurl% ''(實驗性功能)'' | ||
* 透過[http://durl.us/ durl.us]或[http://tinyurl.com/ TinyURL]的縮短網址服務。由於是實驗性功能,所以複製到剪貼本時可能會失敗。建議相隔一秒鐘,來產生網頁的縮短網址。 | * 透過[http://durl.us/ durl.us]或[http://tinyurl.com/ TinyURL]的縮短網址服務。由於是實驗性功能,所以複製到剪貼本時可能會失敗。建議相隔一秒鐘,來產生網頁的縮短網址。 | ||
== Make Link Options == | == Make Link Options == | ||
=== default syntax === | === default syntax === | ||
* Plain Text: ''override default'' <pre>% | * Plain Text: ''override default'' <pre>%text% %url%</pre> | ||
* HTML (Use HTML Entities) ''override default'' ([http://www.w3.org/TR/html401/struct/links.html HTML 4.01], XHTML 1.0 transitional): <pre><a href="% | * HTML (Use HTML Entities) ''override default'' ([http://www.w3.org/TR/html401/struct/links.html HTML 4.01], XHTML 1.0 transitional): <pre><a href="%url%" title="%text%" target="_blank" rel="nofollow">%text%</a> | ||
</pre> | </pre> | ||
* MarkDown links[http://markdown.tw/]: <pre>[% | * MarkDown links[http://markdown.tw/]: <pre>[%text%](%url%)</pre> | ||
* Forum Code ([http://www.phpbb.com/community/faq.php?mode=bbcode#f40 BBCode guide]): <pre>[url=% | * Forum Code ([http://www.phpbb.com/community/faq.php?mode=bbcode#f40 BBCode guide]): <pre>[url=%url%]%text%[/url]</pre> | ||
=== wiki syntax === | === wiki syntax === | ||
* Wiki Syntax of Wikipedia or mediawiki sites([http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style_%28links%29#External_links Manual]): <pre>[% | * Wiki Syntax of Wikipedia or mediawiki sites([http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style_%28links%29#External_links Manual]): <pre>[%url% %text%]</pre> | ||
* [[DokuWiki]] Wiki Syntax ([http://www.wikicreole.org/wiki/Creole0.6#section-Creole0.6-LinksInternalAndExternal Creole 0.6 compatible]): <pre>[[% | * [[DokuWiki]] Wiki Syntax ([http://www.wikicreole.org/wiki/Creole0.6#section-Creole0.6-LinksInternalAndExternal Creole 0.6 compatible]): <pre>[[%url% | %text%]]</pre> | ||
* [http://web.nlhs.tyc.edu.tw/~lss/wiki/TiddlyWikiTutorialTW.html TiddlyWiki] Wiki Syntax: <pre>[[% | * [http://web.nlhs.tyc.edu.tw/~lss/wiki/TiddlyWikiTutorialTW.html TiddlyWiki] Wiki Syntax: <pre>[[%text%|%url%]]</pre> | ||
=== APA style alike syntax === | === APA style alike syntax === | ||
* APA style v.5 alike ([[Citation format]]): <pre>Author (Year). % | * APA style v.5 alike ([[Citation format]]): <pre>Author (Year). %text%. Retrieved LOCAL_TIME, from %url%</pre> | ||
* APA style v.6 alike ([[Citation format]]): | * APA style v.6 alike ([[Citation format]]): | ||
** with published date -- <pre>Author (Year). % | ** with published date -- <pre>Author (Year). %text%. Retrieved from %url%</pre> | ||
** without published date --<pre>Author (n.d.). % | ** without published date --<pre>Author (n.d.). %text%. Retrieved from %url%</pre> | ||
=== other syntax === | === other syntax === | ||
* [http://www.plurk.com/ Plurk][http://s8726319.pixnet.net/blog/post/18592491 語法]: <pre>% | * [http://www.plurk.com/ Plurk][http://s8726319.pixnet.net/blog/post/18592491 語法]: <pre>%url% (%text%)</pre> | ||
* 在 Google Drive[https://support.google.com/docs/answer/3093313?hl=zh-Hant&rd=1] 或 Microsoft Excel 的儲存格內建立超連結: <pre>=HYPERLINK("% | * 在 Google Drive[https://support.google.com/docs/answer/3093313?hl=zh-Hant&rd=1] 或 Microsoft Excel 的儲存格內建立超連結: <pre>=HYPERLINK("%url%", "%text%")</pre> | ||
* HTML (Use HTML Entities) for [http://www.w3.org/TR/xhtml1/ XHTML 1.0] strict [http://www.sitepoint.com/article/standards-compliant-world]: <pre><a href="% | * HTML (Use HTML Entities) for [http://www.w3.org/TR/xhtml1/ XHTML 1.0] strict [http://www.sitepoint.com/article/standards-compliant-world]: <pre><a href="%url%" rel="external" title="%text%">%text%</a> | ||
</pre> | </pre> | ||
Revision as of 14:50, 12 March 2016
瀏覽器擴充套件 Make Link for Firefox
或 Create Link for Chrome
提供便利的方式,可以快速方便擷取網頁標題、網址及選取的段落文字等資訊到系統剪貼簿。
例如:寫Blog要加入外部網頁的連結時,在網頁按右鍵點選 MakeLink 選單,除了擷取網頁標題及網址,並會自動加入事先自訂好的開新視窗等語法至剪貼簿。優點是少打很多字!
|
使用情境
在以下三種情境,右鍵點選MakeLink選單:
- 鏈結(link):在超鏈結上方,按右鍵點選MakeLink選單
- 選取文字(selection):選取某段文字後,在選取的文字上按右鍵點選MakeLink選單
- 頁面(page):在上述兩種地方外,網頁的任何地方按右鍵點選MakeLink選單
變數說明
%text%
- 鏈結的情境:鏈結的文字
- 選取文字的情境:選取的文字
- 頁面的情境:網頁的標題 (通常顯示在瀏覽器最上方的標題列: title)。如果網頁是採用頁框結構(frame),將只會取最上層的標題資訊。
%text_n%, %text_br%
- 鏈結的情境:鏈結的文字。 同%text%
- 選取文字的情境:%text_br% 選取的文字中若有換行符號,則會插入<br />符號。 (實際測試時XP, %text_n%並未插入\n)
- 頁面的情境:網頁的標題。 同%text%
%url%
- 鏈結的情境:鏈結的網址
- 選取文字或頁面的情境:目前瀏覽網頁的網址
%title%
- 鏈結的情境:鏈結的提示語。當滑鼠移動到鏈結上方不動時,會顯示的提示語(tool-tip text)。
- 選取文字的情境:目前瀏覽網頁的標題
- 頁面的情境:網頁資訊的描述欄位。網頁標頭的 <META HTTP-EQUIV="Description" CONTENT="描述文字">,不過測試時,無法順利顯示。
%input%
- 手動輸入文字
%imgurl%
- 如果你在圖片上方按右鍵,該變數會擷取該圖片的網址。
%tinyurl% (實驗性功能)
Make Link Options
default syntax
- Plain Text: override default
%text% %url%
- HTML (Use HTML Entities) override default (HTML 4.01, XHTML 1.0 transitional):
<a href="%url%" title="%text%" target="_blank" rel="nofollow">%text%</a>
- MarkDown links[2]:
[%text%](%url%)
- Forum Code (BBCode guide):
[url=%url%]%text%[/url]
wiki syntax
- Wiki Syntax of Wikipedia or mediawiki sites(Manual):
[%url% %text%]
- DokuWiki Wiki Syntax (Creole 0.6 compatible):
[[%url% | %text%]]
- TiddlyWiki Wiki Syntax:
[[%text%|%url%]]
APA style alike syntax
- APA style v.5 alike (Citation format):
Author (Year). %text%. Retrieved LOCAL_TIME, from %url%
- APA style v.6 alike (Citation format):
- with published date --
Author (Year). %text%. Retrieved from %url%
- without published date --
Author (n.d.). %text%. Retrieved from %url%
- with published date --
other syntax
- 在 Google Drive[3] 或 Microsoft Excel 的儲存格內建立超連結:
=HYPERLINK("%url%", "%text%")
- HTML (Use HTML Entities) for XHTML 1.0 strict [4]:
<a href="%url%" rel="external" title="%text%">%text%</a>
notes
- 文章內容部份翻譯自MakeLink內建的說明文件。
- Make Link 3.0.2與Menu Editor 1.2.3.3有相容問題。
- Comparison of Firefox extensions: CopyURL, CoLT, MakeLink(英) - 其他同類型擴充套件的比較
類似方案
- Web Development Bookmarklets - make links "Creates the HTML code to link to the current page."
相關資料
- Chieftain (2009). Reflection » Firefox 附加元件 Make Link 語法的備存
- Daring Fireball: Markdown