Difference between revisions of "Template:Cite GHG"

From blackwiki
Jump to navigation Jump to search
imported>DocWatson42
m (Italicized titles.)
imported>Amire80
(Add template data)
 
Line 46: Line 46:
 
[[Category:Afroasiatic languages templates]]
 
[[Category:Afroasiatic languages templates]]
 
[[Category:Language external link templates]]
 
[[Category:Language external link templates]]
</noinclude>
+
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Section",
 +
"type": "number",
 +
"suggested": true
 +
},
 +
"2": {
 +
"label": "Subsection",
 +
"description": "The subsection—the letter after the number.",
 +
"type": "line",
 +
"suggested": true
 +
},
 +
"3": {
 +
"label": "Section 84 part",
 +
"description": "Section 84 has two parts, 84a and 84b. When linking to this section, add \"a\" or \"b\" to specify the part.",
 +
"type": "line"
 +
},
 +
"nologo": {
 +
"label": "No Wiksource logo",
 +
"description": "Set to 1 to hide the Wikisource logo.",
 +
"example": "1",
 +
"type": "boolean"
 +
},
 +
"notitle": {
 +
"label": "No book title",
 +
"description": "Set to 1 to hide the book title.",
 +
"example": "1",
 +
"type": "boolean"
 +
}
 +
},
 +
"description": "Adds a reference to the 1911 English version of Gesenius' Hebrew Grammar on Wikisource. Without parameters, adds a link to the title page.",
 +
"paramOrder": [
 +
"1",
 +
"2",
 +
"3",
 +
"nologo",
 +
"notitle"
 +
]
 +
}
 +
</templatedata></noinclude>

Latest revision as of 08:29, 28 October 2020

This is a template for conveniently citing the Wikisource version of Gesenius' Hebrew Grammar.

The formatting of the paragraph number and the sub-paragraph letter attempts to mimic the formatting in the printed book (superscript, italic, serif).

to link to
... write this code...
... which yields
the main page {{Cite GHG}} Wikisource-logo.svg Gesenius' Hebrew Grammar
§1 {{Cite GHG|1}} Wikisource-logo.svg Gesenius' Hebrew Grammar, §1
§2b {{Cite GHG|2|b}} Wikisource-logo.svg Gesenius' Hebrew Grammar, §2b
§84ac {{Cite GHG|84|c|a}} Wikisource-logo.svg Gesenius' Hebrew Grammar, §84ac
§84bd without the Wikisource logo {{Cite GHG|84|d|b|nologo=1}} Gesenius' Hebrew Grammar, §84bd
all of §84a {{Cite GHG|84||a}} Wikisource-logo.svg Gesenius' Hebrew Grammar, §84a
§10c without the words "Gesenius' Hebrew Grammar" {{Cite GHG|10|c|notitle=1}} §10c

See also:

Adds a reference to the 1911 English version of Gesenius' Hebrew Grammar on Wikisource. Without parameters, adds a link to the title page.

Template parameters

ParameterDescriptionTypeStatus
Section1

no description

Numbersuggested
Subsection2

The subsection—the letter after the number.

Linesuggested
Section 84 part3

Section 84 has two parts, 84a and 84b. When linking to this section, add "a" or "b" to specify the part.

Lineoptional
No Wiksource logonologo

Set to 1 to hide the Wikisource logo.

Example
1
Booleanoptional
No book titlenotitle

Set to 1 to hide the book title.

Example
1
Booleanoptional