Template:Lorem ipsum span: Difference between revisions
en>Mathglot Creating template intendended for use in inline element context. |
en>Mathglot Expand the doc. |
||
Line 4: | Line 4: | ||
|#default = 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.}}<noinclude> | |#default = 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.}}<noinclude> | ||
{{Documentation |content= | {{Documentation |content= | ||
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 == | == Usage == | ||
* {{tlc|lorem ipsum span}}generates paragraph | * {{tlc|lorem ipsum span}}generates a string containing the first paragraph of lorem ipsum | ||
* {{tlc|lorem ipsum span|1}}{{snd}}same as above | * {{tlc|lorem ipsum span|1}}{{snd}}same as above | ||
* {{tlc|lorem ipsum span|2}}{{snd}}generates paragraph two of lorem}}</noinclude> | * {{tlc|lorem ipsum span|2}}{{snd}}generates 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'''. | |||
* {{para|1}} which string to emit. {{para|1|2}} means, emit paragraph 2 of lorem as a single string.}}</noinclude> |
Revision as of 23:39, 4 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.