
內容簡介
這個外掛包含兩個短代碼: [lorem] 和 [loremimage],其中 [loremimage] 可以被巢狀在 [lorem] 之內。使用這些短代碼可以快速生成占位文字和圖片。
使用方法
在文章或頁面中加入 [lorem] 和/或 [loremimage] 短代碼,或如果已安裝且啟用了替代短代碼插件,在視覺編輯器中按下 新增媒體->插入文章元素->Lorem Ipsum 以添加短代碼。
參數,所有參數都是選填的
[lorem]
p=”3″ 段落數量。預設為5
l=”7″,段落中每一行的文字數。預設為3
align=”right” 巢狀短代碼的對齊方式。有兩種選擇,左或右。預設為右
[loremimage]
loremimage 是使用http://dummyimage.com/創建的,因此該短代碼支援與http://dummyimage.com/相同的參數。
size=”400×400″ 圖片尺寸。預設為300×200
text=”lorem ipsum” 預設為空
fgcolor=”fff” 前景色。預設為“ccc”
bgcolor=”ccc” 背景色。預設為“eee”
format=”png” 圖片格式。預設為“png”
我們新增兩個參數/值
size=”thumb” 這將創建一個縮略圖,大小基於您的 WordPress 圖像設置。縮略圖連結到另一個圖像並支援 Lightbox 等(有屬性 rel="lightbox[lorem]")。
style=”padding:5px;” 添加樣式到 loremimage。預設為空
範例
[lorem p="1" l="20"]
[loremimage size="300x300" style="padding:5px;"]
[/lorem]
欲了解更多資訊和截圖,請查閱外掛官方網頁
外掛標籤
開發者團隊
原文外掛簡介
The plugin contains two shortcodes, [lorem] and [loremimage], the [loremimage] shortcode can be nested in the [lorem] shortcode. The shortcodes generates dummy text and image when needed.
Usage
Add the [lorem] and/or [loremimage] shortcode to a post or page, or if the Shortcode UI plugin is installed and activated, in the visual editor, click Add Media->Insert Post Element->Lorem Ipsum to add the shortcode.
Parameters, all are optional
[lorem]
p=”3″ Number of paragraphs. Default is 5
l=”7″, Number of lines per paragraph. Default is 3
align=”right” This tells how you’d like to allign a nested shortcode. There are two alternatives, left or right. Default is right
[loremimage]
The loremimage is created using http://dummyimage.com/, and hence the shortcode supports the same parameters as http://dummyimage.com/.
size=”400×400″ Image size. Default is 300×200
text=”lorem ipsum” Default is empty
fgcolor=”fff” Image foreground color. Default is “ccc”
bgcolor=”ccc” Image foreground color. Default is “eee”
format=”png”, Image format. Default is “png”
I’ve added two additional parameters/values
size=”thumb” This will create a thumbnail, size based on your WordPress image settings. The thumb links to another image and support Lightbox et al (has attribute rel="lightbox[lorem]").
style=”padding:5px;” Adds a style to the loremimage. Default is empty
Example
[lorem p="1" l="20"]
[loremimage size="300x300" style="padding:5px;"]
[/lorem]
For more information and screenshots, please see the plugin home page
