Open main menu

Changes

m
Reverted edits by 207.233.65.243 (talk) to last version by Mr. Guye
{{documentation subpage}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
{{template shortcut|Ipsum|Lipsum|Lorem|Loremipsum}}
This template outputs the "[[lorem ipsum]]" filler text. It takes four parameters: the number of paragraphs to generate, paragraph prefix, paragraph suffix, and an option to link lorem ipsum. There are 10 distinct paragraphs, but it can produce up to 20.

==Syntax==
{{TemplateDataHeader}}
<templatedata>
{
"description": "This template generates a filler text for test purposes. Text generated is the well-known \"Lorem ipsum\" passage, which is gibberish that somewhat resembles Latin. There are 10 distinct paragraphs, but it can produce up to 20.",
"params": {
"1": {
"label": "Number of paragraphs",
"description": "Number of paragraphs to be shown. A number from 1 to 20 is acceptable.",
"type": "number",
"suggested": true,
"default": "1"
},
"2": {
"label": "Paragraph prefix",
"description": "Wikicode or text to prefix to each paragraph. For example, specifying * « causes each paragraph to become a bullet list and start with a quotation mark.",
"type": "unbalanced-wikitext",
},
"3": {
"label": "Paragraph suffix",
"description": "Wikicode or text to suffix to each paragraph. For example, specifying » causes each paragraph to end with this character.",
"type": "unbalanced-wikitext"
},
"4": {
"aliases": [
"link"
],
"label": "Link to [[Lorem ipsum]]?",
"description": "Setting this parameter to \"yes\" causes a link to the \"Lorem ipsum\" article to appear.",
"type": "boolean"
},
"cat": {}
}
}
</templatedata>

==Examples==
<code><nowiki>{{Lorem ipsum|2|* "|"}}</nowiki></code> generates:
{{Lorem ipsum|2|* "|"}}


Note that whitespace is important in the second and third parameters, as <code><nowiki>{{Lorem ipsum|1| * " | " }}</nowiki></code> results in:
{{Lorem ipsum|1| * " | " }}

All sections of text can run together by entering a space into the third parameter. <code><nowiki><blockquote style="background: white">{{Lorem ipsum|2|| }}</blockquote></nowiki></code> will produce:

<blockquote style="background: white">{{Lorem ipsum|2|| }}</blockquote>

To link lorem ipsum, either enter <code>link=yes</code>, or <code>yes</code> into the fourth parameter. <code><nowiki>{{Lorem ipsum|2=#|link=yes}}</nowiki></code> or <code><nowiki>{{Lorem ipsum|1|#||yes}}</nowiki></code> will generate:
{{Lorem ipsum|2=#|link=yes}}

If fewer than 446 characters are desired, then [[Template:Str left]] can be used. <code><nowiki>{{Str left|{{Lorem ipsum}}|123}}</nowiki></code> will result in:

{{Str left|{{Lorem ipsum}}|123}}

==Full text==
{{cot}}
{{Lorem ipsum|10}}
{{cob}}

<includeonly>
<!-- Interwiki and categories come here: -->
{{DEFAULTSORT:Lorem ipsum}}
[[Category:Placeholder templates]]

</includeonly>
Anonymous user