Difference between revisions of "Template:Lorem ipsum/doc"

From blackwiki
Jump to navigation Jump to search
imported>Bentogoa
m (Reverted edits by 66.87.70.149 (talk) (HG) (3.1.19))
(Replaced content with 'Lies')
Line 1: Line 1:
{{documentation subpage}}
+
Lies
<!---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",
 
"autovalue": "1",
 
"required": true,
 
"suggested": true
 
},
 
"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",
 
"autovalue": ""
 
},
 
"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"
 
}
 
}
 
}
 
</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>
 

Revision as of 21:44, 2 August 2016

Lies