內容簡介
使用縮略語創建鏈接。當 HTML 標籤不被允許且/或經常被編碼時,可以派上用場。
基本上只是一個實用性外掛。
接受 3 個參數:
url
target(自動添加下劃線)
class
範例:
[tklink url="https://www.nike.com/"]Just do it[/tklink]
輸出:<a class="tklink" href="https://www.nike.com/">Just do it</a>
[tklink url="https://www.wordpress.org/"][/tklink]
輸出:<a class="tklink" href="https://www.wordpress.org/">https://www.wordpress.org/</a>
[tklink url="https://www.google.com/" class="googlie" target="blank"]A googglie Google link that will open in a new tab[/tklink]
輸出:<a class="googlie" href="https://www.google.com/" target="_blank">A googglie Google link that will open in a new tab</a>
開發人員可以在 https://github.com/cliffordp/tk-shortcode-link 上進行貢獻
注意事項:
除非您為每個鏈接指定自己的 class,否則所有鏈接均會添加 class 爲 tklink
此外掛不會通過添加樣式文件來樣式化 tklink 或其他東西。
如果您不知道什麼是 classes,可以忽略。它用於樣式化 (即外觀和感覺)。
外掛標籤
開發者團隊
原文外掛簡介
Create links with a shortcode. Comes in handy in places where HTML tags aren’t allowed and/or keep getting encoded or something.
Basically, just a utility plugin.
Accepts 3 parameters:
url
target (automatically adds the leading underscore)
class
Examples:
[tklink url="https://www.nike.com/"]Just do it[/tklink]
Outputs: Just do it
[tklink url="https://www.wordpress.org/"][/tklink]
Outputs: https://www.wordpress.org/
[tklink url="https://www.google.com/" class="googlie" target="blank"]A googglie Google link that will open in a new tab[/tklink]
Outputs: A googglie Google link that will open in a new tab
Developers may contribute at https://github.com/cliffordp/tk-shortcode-link
FYI:
All links have a class of tklink added unless you specify your own class per link (see examples above)
No styling of tklink or otherwise is added via this plugin.
If you don’t know what classes are, you can ignore. It’s for styling (i.e. look and feel).
