[WordPress] 外掛分享: Lorem ipsum dummy article shortcode

首頁外掛目錄 › Lorem ipsum dummy article shortcode
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
4072 天前
最後更新
問題解決
WordPress 2.8.6+ v1.0.5 上架:2015-01-23

內容簡介

這個短代碼外掛程式不僅僅是產生假文本,而是試圖模擬 WordPress 頁面或文章在現實生活中的樣子,包括段落、逗號、標題、超連結和圖像。輸出可以通過短代碼屬性輕鬆調整。
生成的代碼也是種子式的,這意味著在「page-x」上的假 HTML 總是看起來一樣(除非您指定自己的種子)。
此外掛還添加了短碼過濾器到標題,因此您也可以在文章標題中使用 [lll h]。

短碼屬性

您可以添加以下屬性來調整短碼。一些屬性具有快速使用的單個字符別名。

paragraph(別名為p):段落數。默認為12。
sentence(別名為s):每段落句子數。默認為5。
word(別名為w):每句話的詞數。默認為12。
header(別名為h):表示標題。如果設置了該屬性,其他屬性將被忽略。默認為空。
seed:用於生成文章的隨機種子。默認為文章 ID。
deviation:用於確定段落數、句子數和字數的隨機偏差。默認為0.5。

用法

要使用短碼,只需將 [lll] 添加到文章或頁面中。
屬性使用方法如下: [lll p=8 seed=76432]。
當用作文章標題時,請確保添加「header」屬性:[lll h]。

版本控制和問題

此插件的主要 CVS 存儲庫位於 Github 上。WordPress 上的版本是主要標籤的精簡版本。
如果您有任何問題或建議,請將它們放在 Github 上。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Lorem ipsum dummy article shortcode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This shortcode plugin does not simply generate dummy text but tries to mimic what a WordPress page or post might look like in real life. This includes paragraphs, commas, headings, hyperlinks and images. The output is easily adjustable through the shortcode attributes.
The generated code is also seeded, meaning that the dummy html on page-x will always look the same (unless you specify your own seed).
The plugin also adds the shortcode filter to the title, so you can also use [lll h] in your post title.
Shortcode attributes
You can adjust the shortcode by adding the following attributes. Some attributes have a single character alias for quick use.

paragraph (alias p): Number of paragraphs. Defaults to 12.
sentence (alias s): Number of sentences per paragraph. Defaults to 5.
word (alias w): Number of words per sentence. Defaults to 12.
header (alias h): Indicates a header. If attribute is set the other attributes will be ignored. Defaults to null.
seed: The random seed used for generating the article. Defaults to the post ID.
deviation: The random deviation used to determine the number of paragraphs, sentences and words. Defaults to 0.5.

Usage
To use the shortcode simply add [lll] to a post or page.
Attributes are used like so; [lll p=8 seed=76432].
When used as a post title make sure to add the ‘header’ attribute; [lll h].
Versioning and issues
The main CVS repo for this plugin is on Github. The version up on WordPress is a distilled build of the major tags.
If you have any issues or suggestions please put them on Github.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon