Template:Lorem ipsum span: Difference between revisions
en>Mathglot Expand the doc. |
en>Mathglot Add →Example: section. |
||
Line 14: | Line 14: | ||
There is one optional positional parameter, which is the number of the lorem paragraph to emit. Current legal values are '''1''' and '''2'''. | There is one optional positional parameter, which is the number of the lorem paragraph to emit. Current legal values are '''1''' and '''2'''. | ||
* {{para|1}} which string to emit. {{para|1|2}} means, emit paragraph 2 of lorem as a single string.}}</noinclude> | * {{para|1}} which string to emit. {{para|1|2}} means, emit paragraph 2 of lorem as a single string. | ||
== Example == | |||
{{tlc|lorem ipsum span|2}} generates the following: | |||
{{lorem ipsum span|2}} | |||
}}</noinclude> |
Revision as of 00:07, 5 August 2021
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This template emits one string with no line breaks, corresponding to one of the Lorem ipsum paragraphs. It is intended for use in inline contexts, where it may be enclosed in inline tags such as <span> as it generates no line breaks.
Usage
{{lorem ipsum span}}
generates a string containing the first paragraph of lorem ipsum{{lorem ipsum span|1}}
Template:Sndsame as above{{lorem ipsum span|2}}
Template:Sndgenerates a string containing paragraph two of lorem
Parameters
There is one optional positional parameter, which is the number of the lorem paragraph to emit. Current legal values are 1 and 2.
|1=
which string to emit.|1=2
means, emit paragraph 2 of lorem as a single string.
Example
{{lorem ipsum span|2}}
generates the following:
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.