Ta̱mpi̱let:Lorem ipsum span/doc
This is a documentation subpage for Ta̱mpi̱let:Lorem ipsum span. It contains usage information, categories and other content that is not part of the original ta̱mpi̱let page. |
This template emits one string with no line breaks, corresponding to one of the Lorem ipsum paragraphs. It is intended for use in inline element contexts, where it may be used with standard wiki markup such as italic, bold, <small> or other inline markup.
Usage
jhyuk{{lorem ipsum span}}
Ta̱mpi̱let:Sndgenerates a string containing the first paragraph of lorem ipsum{{lorem ipsum span|1}}
Ta̱mpi̱let:Sndsame as above{{lorem ipsum span|5}}
Ta̱mpi̱let:Sndgenerates one string containing paragraph five of lorem
Parameters
jhyukThere is one optional positional parameter, which is the number of the lorem paragraph to emit. Legal values are 1..10
.
- first param: which string to emit. A value of
3
means, emit paragraph 3 of lorem as a single string.
Examples
jhyukUnlike with the main template {{lorem ipsum}}, this template generates an Html inline-level element, so surrounding Wiki markup is allowed here:
''{{lorem ipsum span|4}}''
Ta̱mpi̱let:Sndgenerate paragraph 4 in italics'''<small>{{lorem ipsum span|2}}</small>'''
Ta̱mpi̱let:Sndgenerate paragraph 2 in small, bolded font
For example, ''<small>{{lorem ipsum span|1}}</small>''
generates the following:
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.
Limiting character count to less than one paragraph
jhyukIf fewer than 446 characters are desired, truncate to the desired size with |max len=
. For example,
Markup [[:Ta̱mpi̱let: | Renders as |
---|---|
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
[markup] |
[rendering] |
See also
jhyuk- {{lorem span}}Ta̱mpi̱let:Sndredirects to this template
- {{lipspan}}Ta̱mpi̱let:Sndredirects to this template
- {{lorem ipsum}}Ta̱mpi̱let:Sndfull-featured template for multiple paragraph output and additional options