Jump to content

Template:Gutenberg author/testcases

From Wikipedia, the free encyclopedia
Basic test (id is a name)
{{Gutenberg author |id=James,+Henry+(1843-1916) |name=Henry James}}
Works by Henry James at Project Gutenberg
Works by Henry James at Project Gutenberg
Expanded code
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
Basic test (id is a number)
{{Gutenberg author |id=113 |name=Henry James}}
Works by Henry James at Project Gutenberg
Works by Henry James at Project Gutenberg
Expanded code
[https://www.gutenberg.org/ebooks/author/113 Works by Henry James] at [[Project Gutenberg]]
[https://www.gutenberg.org/ebooks/author/113 Works by Henry James] at [[Project Gutenberg]]
Positional parameters (id, name)
{{Gutenberg author |James,+Henry+(1843-1916) |Henry James}}
Works by Henry James at Project Gutenberg
Works by Henry James at Project Gutenberg
Expanded code
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
Positional parameters (name=name , id=id)
{{Gutenberg author |name=Henry James |id=James,+Henry+(1843-1916)}}
Works by Henry James at Project Gutenberg
Works by Henry James at Project Gutenberg
Expanded code
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
coda
{{Gutenberg author |name=Henry James |id=James,+Henry+(1843-1916 |coda=(Father of Henry James Jr))}}
Works by Henry James at Project Gutenberg (Father of Henry James Jr)
Works by Henry James at Project Gutenberg (Father of Henry James Jr)
Expanded code
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]] (Father of Henry James Jr)
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]] (Father of Henry James Jr)
SPACE in ID
{{Gutenberg author |name=Henry James |id=James, Henry (1843-1916)}}
Works by Henry James at Project Gutenberg
Works by Henry James at Project Gutenberg
Expanded code
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]
[https://www.gutenberg.org/author/James,+Henry+(1843-1916) Works by Henry James] at [[Project Gutenberg]]


No parameters
{{Gutenberg author}}
Lua error: bad argument #1 to 'getBestStatements' (string expected, got nil).
Lua error: bad argument #1 to 'getBestStatements' (string expected, got nil).
Expanded code
<strong class="error"><span class="scribunto-error mw-scribunto-error-50db6fa1">Lua error: bad argument #1 to 'getBestStatements' (string expected, got nil).</span></strong>
<strong class="error"><span class="scribunto-error mw-scribunto-error-f5d4443f">Lua error: bad argument #1 to 'getBestStatements' (string expected, got nil).</span></strong>