Template:GHGpar/sandbox
Jump to navigation
Jump to search
![]() | This is the template sandbox page for Template:GHGpar (diff). See also the companion subpage for test cases. |
![]() | This template uses Lua: |
Usage
[edit]This is a template for easy formatting of paragraph references in Gesenius' Hebrew Grammar.
Arguments:
- 1 - required - paragraph number.
- 2 - optional - sub-paragraph marginal letter.
- 3 - optional - a or b, needed only for chapter 84, which is subdivided into § 84a and § 84b.
The paragraph sign § is always inserted, unless "nosign=1" is specified. Specifying "doublesign=1" adds another paragraph sign §. Specifying "nonumber=1" doesn't show the paragraph sign and the paragraph number, and only shows the margin letter.
This template uses {{GHGmargin-letter-fmt}}.
Examples:
- Reference to the whole paragraph: {{GHGpar|34}} - § 34
- Reference to a subparagraph: {{GHGpar|15|b}} - § 15 b
- Reference to the heading of § 84b: {{GHGpar|84||b}} - § 84b
- Reference to a sub-chapter of § 84a: {{GHGpar|84|f|a}} - § 84a f
- Reference to a range of paragraphs: {{GHGpar|1}}–{{GHGpar|3|nosign=1}} - § 1–3
- Reference to several paragraphs: {{GHGpar|1|doublesign=1}}, {{GHGpar|2|nosign=1}} - §§ 1, 2
- Reference to subparagraph showing only the margin letter: {{GHGpar|15|e|nonumber=1}} - e
See also:
- {{GHGpar-heading}}
- {{GHGmargin-letter-fmt}}
- {{GHGmargin-letter}}
- w:Template:Cite GHG - a template for linking from Wikipedia to GHG on Wikisource
This is the TemplateData documentation for this template used by VisualEditor and other tools.
GHGpar
Formatting of paragraph references in [[Gesenius' Hebrew Grammar]].
Parameter | Description | Typ | Status | |
---|---|---|---|---|
Paragraph number | 1 | no description | Number | required |
Paragraph margin letter | 2 | no description | String | suggested |
Part of §84, a or b | 3 | no description | String | optional |
Don't show the paragraph number | nonumber | no description | Boolean | optional |
Don't show the § sign | nosign | no description | Boolean | optional |
Show a double § sign | doublesign | no description | Boolean | optional |