Jump to content

Template talk:Paragraph number

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 2 months ago by Arcorann in topic Adding a prefix parameter

Adding a prefix parameter

[edit]

The initial idea of this template was to easily link numbered paragraphs or sections, when the work continuously numbers them. I've found some cases where the numbering restarts in different chapters, and since the idea was to be as simple as possible (for more complex cases there's {{anchor+}}) my idea is to add a prefix as a second unnumbered parameter i.e.:

  • {{pn|num|prefix}}, which emits one of:
    1. {{anchor+|prefix-paranum|num}}
    2. {{anchor+|prefixparanum|num}}
    3. {{anchor+|prefixnum|num}}

But I can't decide on which one to use. Anyone have comments? Arcorann (talk) 23:24, 7 October 2024 (UTC)Reply

I'd go with prefix-paranum, just to make it a little more legible. —CalendulaAsteraceae (talkcontribs) 05:13, 9 October 2024 (UTC)Reply
Done. I also removed the ID parameter (AFAICT it hasn't been used yet). Arcorann (talk) 04:53, 15 October 2024 (UTC)Reply