內容簡介
使用本外掛可以讓你更輕鬆、更整潔地加上註腳(footnote)在文章中。只要在任何位置使用 {{FOOTNOTE_NUMBER}} 作為定位錨點,然後在各自段落的結尾或任何位置使用 [[FOOTNOTE_NUMBER]] 作為註腳的內文。舉例如下:
—— 開始文件 ——-
Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam
tempor incidunt ut labore et dolore magna ali quarn erat volupat.{{1}}
venian, quis nostrud exerci tation ullamcorper{{2}} suscipit laboris
commodo consequat. Duis autem vel eum irure dolore
[[1]]這是第一個註腳。[[1]]
[[2]]這是第二個註腳。[[2]]
這是下一個段落。Lorem ipsum dolor sit amet, con sectetuer
adipiscing elit, sed diam nonnumy nibh euismod tempor incidunt ut
labore et dolore magna ali quarn erat volupat. Ut wisi enim ad minim.
—— 結束文件 ———
掃描文件時,會將註腳移除並放在文件末尾,{{1}}將會換成註腳的錨點。註腳會是一個列表,並且會有一個錨點回到原文件的位置。以下是掃描後的大致樣子:
—— 開始文件 ——-
Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam
tempor incidunt ut labore et dolore magna ali quarn erat volupat.[1]
venian, quis nostrud exerci tation ullamcorper[2] suscipit laboris
commodo consequat. Duis autem vel eum irure dolore
這是下一個段落。Lorem ipsum dolor sit amet, con sectetuer
adipiscing elit, sed diam nonnumy nibh euismod tempor incidunt ut
labore et dolore magna ali quarn erat volupat. Ut wisi enim ad minim。
註腳部分會帶有箭頭,[1] 跟 [2] 則代表指向的公式。目前外掛還有幾項可調整的設定,請參閱外掛首頁上的資訊:http://www.stratos.me/wp-plugins/yafootnotes
需求
本外掛無需額外需求即可使用...
鳴謝
Mike Nichols 先生從 http://anxietypanichealth.com/ 鼓舞了我的靈感,也協助我調試。
聯繫
有疑問、建議、問題...都歡迎寄信給 [email protected]。
也歡迎造訪外掛的網頁 http://www.stratos.me/wp-plugins/yafootnotes/
外掛標籤
開發者團隊
原文外掛簡介
Writing a post with footnotes has never been easier and cleaner before. All you need to do is anchor a footnote at any point and then write it on the end of the paragraph or wherever it fits you.
Usage
To anchor a footnote use the {{FOOTNOTE_NUMBER}}. Then to write the body of it you need to embrace it with [[FOOTNOTE_NUMBER]]. Here is an example:
—— document starts here ——-
Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam
tempor incidunt ut labore et dolore magna ali quarn erat volupat.{{1}}
venian, quis nostrud exerci tation ullamcorper{{2}} suscipit laboris
commodo consequat. Duis autem vel eum irure dolore
[[1]]This is the first footnote.[[1]]
[[2]]This is the second footnote.[[2]]
This is the next paragraph. Lorem ipsum dolor sit amet, con sectetuer
adipiscing elit, sed diam nonnumy nibh euismod tempor incidunt ut
labore et dolore magna ali quarn erat volupat. Ut wisi enim ad minim.
—— document ends here ———
When the document is parsed, the footnotes that are between paragraphs will be removed from where they are and placed at the end of the document. The {{1}} will be replaced with an anchor link to the footnote. The footnotes will be a list having and anchor link back to the place the text has it. Here is what roughly the above text will look like after parsing:
—— document starts here ——-
Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam
tempor incidunt ut labore et dolore magna ali quarn erat volupat.[1]
venian, quis nostrud exerci tation ullamcorper[2] suscipit laboris
commodo consequat. Duis autem vel eum irure dolore
This is the next paragraph. Lorem ipsum dolor sit amet, con sectetuer
adipiscing elit, sed diam nonnumy nibh euismod tempor incidunt ut
labore et dolore magna ali quarn erat volupat. Ut wisi enim ad minim.
FOOTNOTES
1. This is the first footnote.
2. This is the second footnote.
—— document ends here ———
The up arrows and the [1] and [2] are the links. There are a few options that you can tweak, for now it’s in the code. Please refer to the plugin’s homepage at: http://www.stratos.me/wp-plugins/yafootnotes
Requirements
None what so ever…
Credits
Mr. Mike Nichols from http://anxietypanichealth.com/ inspired me, motivated me and helped me debug.
Contact
Suggestion, fixes, rants, congratulations, gifts etc to [email protected]
Also visit the plugin’s page at http://www.stratos.me/wp-plugins/yafootnotes/
