Шаблон:Verse

Материал из Н.Ф. Федоров
Версия от 23:06, 2 мая 2010; Cygnis insignis (обсуждение) (change colour to green #2E8B57, creating a problem I think is unique to this page - the background colour of the documentation)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

{{{2}}}

[edit] [purge] 50px Template documentation

Template for creating an anchor for verses:

  • chapter (or parameter 1), the chapter the verse belongs to
  • verse (or parameter 2), the verse being linked to
  • color (or colour, or parameter 3), over-ride the green colour of the verses
  • notext, define as blank to over-ride the display of the verse number
  • align, use to control positioning

Positioning

When the "align" parameter is unset, the verse number appears inline:

{{verse||1|}} Now I am become Death, the destroyer of worlds.

1 Now I am become Death, the destroyer of worlds.

When the "Align" is "left", the verse number is left floated to the margin:

{{verse||1|align=left}} Now I am become Death, the destroyer of worlds.

1 Now I am become Death, the destroyer of worlds.

This is useful when use in poems, as it can be floated out of the way of the poem's structure, and doesn't affect the start of the line. You probably need to use a div class such as "indented-page" (designed for this case) or even "prose" to keep the text's left margin away from the verse number:

<div class=indented-page><poem>
{{verse||1|align=left}} To see a world in a grain of sand,
{{verse||2|align=left}} And heaven in a wild flower;
{{verse||3|align=left}} To hold infinity in the palm of your hand,
{{verse||4|align=left}} And eternity in an hour.
</poem></div>

1 To see a world in a grain of sand,
2 And heaven in a wild flower;
3 To hold infinity in the palm of your hand,
4 And eternity in an hour.

Anchoring

This template creates anchors based on the chapter and verse supplied.

To use this tool for navigation, type [[Article name#Chapter:Verse]], like this: Bible (King James)/Genesis#4:5pt:Predefinição:Versículo sv:Template:Vers