Jump to content

Template:Thucydides/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
moved documentation to doc subpage
 
m top: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}


'''<nowiki>{{Thucydides|language|book|chapter|first section in range|last section in range}}</nowiki>'''
This template takes one mandatory argument, book and chapter, and one optional argument, line/range. Book and chapter is the book and chapter of a passage from Thucydides' ''History of the Peloponnesian War'', in the form book.chapter (e.g. 1.89). The template will produce a link to the cited book and chapter at the Perseus Digital Library at the University of Chicago. line/range may be a line number, a range of line numbers, or an ending chapter for the range begun by the book and chapter argument, or may be left blank. If it is to be a line number or range of line number. Thus:


Link to Greek text of [[Thucydides]]' ''[[History of the Peloponnesian War]]'' at the [[Perseus Project]] by book, chapter, and section number. Sections are sometimes called lines. Adding the last section in a range does not change the link URL, since pages on Perseus include only one section.
*<nowiki>{{Thucydides|1.89|.1}}</nowiki> produces {{Thucydides|1.89|.1}}
*<nowiki>{{Thucydides|1.89|.1-4}}</nowiki> produces {{Thucydides|1.89|.1-4}}
*<nowiki>{{Thucydides|1.89|-101}}</nowiki> produces {{Thucydides|1.89|-101}}
*<nowiki>{{Thucydides|1.89|}}</nowiki> produces {{Thucydides|1.89|}}


The first parameter is language: '''gr''' or '''el''' for Greek, '''en''' for English.
This template is intended for use in citations, and should generally be substed. Note that giving an end to the range of chapters only effects the appearance of the template, not the link target; the link will still be to the book and chapter indicated by the first argument.

Normally the template does not display the name of the author and the work.
{| style="border: 1px solid white; background: none; text-align: left; width: 40em;"
! <nowiki>{{Thucydides|en}}</nowiki> !! → !! {{Thucydides|en}} !! default book and chapter = 1.1
|-
! <nowiki>{{Thucydides|en|2}}</nowiki> !! → !! {{Thucydides|en|2}} !! book set; default chapter = 1
|-
! <nowiki>{{Thucydides|en|2|3}}</nowiki> !! → !! {{Thucydides|en|2|3}} !! book and chapter set
|-
! <nowiki>{{Thucydides|en|2|3|4}}</nowiki> !! → !! {{Thucydides|en|2|3|4}} !! book, chapter, and section set
|-
! <nowiki>{{Thucydides|en|2|3|4|5}}</nowiki> !! → !! {{Thucydides|en|2|3|4|5}} !! book, chapter, and section range set
|}

Ref in any parameter except the first adds the name of author and work.
{| style="border: 1px solid white; background: none; text-align: left; width: 40em;"
! <nowiki>{{Thucydides|en|2|ref}}</nowiki> !! → !! {{Thucydides|en|2|ref}}
|-
! <nowiki>{{Thucydides|en|2|3|ref}}</nowiki> !! → !! {{Thucydides|en|2|3|ref}}
|-
! <nowiki>{{Thucydides|en|2|3|4|ref}}</nowiki> !! → !! {{Thucydides|en|2|3|4|ref}}
|-
! <nowiki>{{Thucydides|en|2|3|4|5|ref}}</nowiki> !! → !! {{Thucydides|en|2|3|4|5|ref}}
|}

Shortref in any parameter except the first produces a shortened version, for cases in which the template is used in multiple refs.

{| style="border: 1px solid white; background: none; text-align: left; width: 40em;"
! <nowiki>{{Thucydides|en|2|shortref}}</nowiki> !! → !! {{Thucydides|en|2|shortref}}
|-
! <nowiki>{{Thucydides|en|2|3|shortref}}</nowiki> !! → !! {{Thucydides|en|2|3|shortref}}
|-
! <nowiki>{{Thucydides|en|2|3|4|shortref}}</nowiki> !! → !! {{Thucydides|en|2|3|4|shortref}}
|-
! <nowiki>{{Thucydides|en|2|3|4|5|shortref}}</nowiki> !! → !! {{Thucydides|en|2|3|4|5|shortref}}
|}

<includeonly>{{Sandbox other||
[[Category:Specific-source templates|{{PAGENAME}}]]
[[Category:External link templates|{{PAGENAME}}]]
[[Category:Perseus Project templates|{{PAGENAME}}]]
}}</includeonly>

Latest revision as of 02:54, 27 April 2020

{{Thucydides|language|book|chapter|first section in range|last section in range}}

Link to Greek text of Thucydides' History of the Peloponnesian War at the Perseus Project by book, chapter, and section number. Sections are sometimes called lines. Adding the last section in a range does not change the link URL, since pages on Perseus include only one section.

The first parameter is language: gr or el for Greek, en for English.

Normally the template does not display the name of the author and the work.

{{Thucydides|en}} 1.1 default book and chapter = 1.1
{{Thucydides|en|2}} 2.1 book set; default chapter = 1
{{Thucydides|en|2|3}} 2.3 book and chapter set
{{Thucydides|en|2|3|4}} 2.3.4 book, chapter, and section set
{{Thucydides|en|2|3|4|5}} 2.3.4–5 book, chapter, and section range set

Ref in any parameter except the first adds the name of author and work.

{{Thucydides|en|2|ref}} Thucydides, History of the Peloponnesian War 2.1
{{Thucydides|en|2|3|ref}} Thucydides, History of the Peloponnesian War 2.3
{{Thucydides|en|2|3|4|ref}} Thucydides, History of the Peloponnesian War 2.3.4
{{Thucydides|en|2|3|4|5|ref}} Thucydides, History of the Peloponnesian War 2.3.4–5

Shortref in any parameter except the first produces a shortened version, for cases in which the template is used in multiple refs.

{{Thucydides|en|2|shortref}} Thucydides 2.1
{{Thucydides|en|2|3|shortref}} Thucydides 2.3
{{Thucydides|en|2|3|4|shortref}} Thucydides 2.3.4
{{Thucydides|en|2|3|4|5|shortref}} Thucydides 2.3.4–5