[WordPress] 外掛分享: Just Add Lipsum

首頁外掛目錄 › Just Add Lipsum
40+
安裝啟用
尚無評分
5601 天前
最後更新
問題解決
WordPress 2.0.2+ v0.1 上架:2010-11-17

內容簡介

這是一個簡單的外掛程式,它創建了一個 [lorem-ipsum] 短碼,可用於添加任意數量的 Lorem Ipsum 段落(默認為2個),每一個段落的長度也是任意的(默認為40個單詞)。有一些外掛程式可以創建填滿 Lorem Ipsum 的假內容(文章/頁面),但這個外掛允許在現有內容中插入 Lorem Ipsum ,只需要在可接受短碼的地方使用即可。我開發這個外掛是為了在主題開發過程中將文本塊放入我的測試文章中。

短碼中可以指定每個段落的最大長度和段落數。

支持類似段落長度隨機化和文本開始偏移這樣的功能,但尚未在管理界面中實現。目前,每個段落的長度被隨機設置為指定的最大段落長度的1/3(例如,對於一個60個單詞的段落,實際生成的長度可以從60到80個單詞不等)。每個段落開始位置也不同。

用法:
短碼接受 “p” 和 “wmax” 參數。“p” 設置生成的段落數,“wmax” 設置每個段落的最大長度(以單詞計算)。請注意,此值用於設置實際的最大長度,可以在wmax+wmax/3的範圍內變化。

如果不使用參數調用,[lorem-ipsum] 將創建每個60到80個單詞的2個段落。

範例:
* [lorem-ipsum]
* [lorem-ipsum p=6]
* [lorem-ipsum wmax=100]
* [lorem-ipsum p=9 wmax=21]

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Just Add Lipsum」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This is a simple plugin which creates a [lorem-ipsum] shortcode that can be used to add an arbitrary number of Lorem Ipsum paragraphs (default 2), each one of arbitrary length (default 40 words). There are some plugins out there which create dummy content (posts/pages) filled with Lorem Ipsum, but this one just allows one to insert Lorem Ipsum into existing content, wherever shortcodes are accepted. I developed this to help place chunks of text into my test posts during theme development.
Maximum length of each paragraph and the number of paragraphs can be specified in the shortcode.
Features like paragraph length randomization and text start offset are supported but are not yet implemented in the admin interface. Currently, the length of each passage is randomized to 1/3 of the specified maximum paragraph length (e.g. for a 60-word paragraph, the actual generated length could be anywhere from 60 to 80 words). Each paragraph will also start at a different point in the text.
Usage:
The shortcode takes the “p” and “wmax” parameters. “p” sets the number of generated paragraphs, and “wmax” sets the maximum length, in words, of each paragraph. Note that this value is used to set the actual max length, which can vary up to wmax+wmax/3.
If called without parameters, [lorem-ipsum] will create 2 paragraphs of 60 to 80 words each.
Examples:
* [lorem-ipsum]
* [lorem-ipsum p=6]
* [lorem-ipsum wmax=100]
* [lorem-ipsum p=9 wmax=21]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon