টেমপ্লেট:Pline
{{{1}}}
This template expands to a bit of whitespace and a line number, which is formatted in small coloured text in order not to distract from the actual text of the poem or play. The line number also includes an id
attribute, which can be used as a label to hyperlink directly to a particular line: [[Hellas#line300]]
{{pline|number}}
gives: number
- Note: the contents doesn't have to be numerical.
Alignment
[সম্পাদনা]If a second parameter is given as "r", the line number will float right. This is only generally useful when the poem is enclosed in a limited-width environment, particularly {{block center}}, which "contracts" to the minimum width required by the contents.
If a second parameter is given as "l", the line number will float left, past the left margin of the text. The text will be right-aligned.
ID tags
[সম্পাদনা]If no id parameter is given, the "id" of the span will be "lineXXX", where XXX is the given line number. If id is given, the "id" will be that instead.
Example
[সম্পাদনা]<poem> Hence! home, you idle creatures, get you home{{pline|1}} Is this a holiday? what! know you not,{{pline|2}} Being mechanical, you ought not walk Upon a labouring day without the sign{{pline|4}} </poem>
Hence! home, you idle creatures, get you home 1
Is this a holiday? what! know you not, 2
Being mechanical, you ought not walk
Upon a labouring day without the sign 4
Example of right alignment
[সম্পাদনা]{{block center| <poem> Hence! home, you idle creatures, get you home{{pline|1|r}} Is this a holiday? what! know you not,{{pline|2|r}} Being mechanical, you ought not walk Upon a labouring day without the sign{{pline|4|r}} </poem> }}
Hence! home, you idle creatures, get you home 1
Is this a holiday? what! know you not, 2
Being mechanical, you ought not walk
Upon a labouring day without the sign 4
Example of left alignment
[সম্পাদনা]{{block center| <poem> {{pline|1|l}}Hence! home, you idle creatures, get you home {{pline|2|r}}Is this a holiday? what! know you not, Being mechanical, you ought not walk {{pline|4|r}}Upon a labouring day without the sign </poem> }}
1Hence! home, you idle creatures, get you home
2Is this a holiday? what! know you not,
Being mechanical, you ought not walk
4Upon a labouring day without the sign
See also
[সম্পাদনা]উপরোক্ত নথিটি টেমপ্লেট:Pline/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |