Template:Lorem ipsum span: Difference between revisions

From escforumwiki
Jump to navigation Jump to search
en>Mathglot
(→‎Parameters: Clarify.)
en>Mathglot
(→‎Examples: Show examples using standard wiki markup.)
Line 6: Line 6:
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.
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 a string containing the first paragraph of lorem ipsum
* {{tlc|lorem ipsum span}}{{snd}}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 a string containing paragraph two of lorem
* {{tlc|lorem ipsum span|2}}{{snd}}generates a string containing paragraph two of lorem
Line 16: Line 16:
* first param: which string to emit. A value of <code>2</code> means, emit paragraph 2 of lorem as a single string.
* first param: which string to emit. A value of <code>2</code> means, emit paragraph 2 of lorem as a single string.


== Example ==
== Examples ==
 
Wiki markup is allowed:
* <code><nowiki>''{{lorem ipsum span|1}}''</nowiki></code>{{snd}}generate paragraph 1 in italics
* <code><nowiki>'''<small>{{lorem ipsum span|2}}</small>'''</nowiki></code>{{snd}}generate paragraph 2 in small, bolded font


{{tlc|lorem ipsum span|2}} generates the following:
{{tlc|lorem ipsum span|2}} generates the following:

Revision as of 04:09, 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.