Difference between revisions of "Template:Anabasis"

From blackwiki
Jump to navigation Jump to search
blackwiki>Erutuon
m (HTML entity for colon)
blackwiki>Pigsonthewing
({{documentation}})
Line 1: Line 1:
 
{{#switch: {{{5|{{{4|{{{3|{{{2|}}} }}} }}} }}} | shortref = ''[[Anabasis (Xenophon)|Anabasis]]''&nbsp; | ref = [[Xenophon]], ''[[Anabasis (Xenophon)|Anabasis]]''&nbsp; }}[http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.01.{{#switch: {{{1|}}} | el | gr = 0201 | en | = 0202 }}:book={{{2|1}}}{{#switch: {{{3|}}} | shortref | ref | = |&#58;chapter{{=}}{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = |&#58;section{{=}}{{{4}}} }} {{{2|1}}}{{#switch: {{{3|}}} | shortref | ref | = | .{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = | .{{{4}}} }}{{#switch: {{{5|}}} | shortref | ref | = | &ndash;{{{5}}} }}]<noinclude>
 
{{#switch: {{{5|{{{4|{{{3|{{{2|}}} }}} }}} }}} | shortref = ''[[Anabasis (Xenophon)|Anabasis]]''&nbsp; | ref = [[Xenophon]], ''[[Anabasis (Xenophon)|Anabasis]]''&nbsp; }}[http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.01.{{#switch: {{{1|}}} | el | gr = 0201 | en | = 0202 }}:book={{{2|1}}}{{#switch: {{{3|}}} | shortref | ref | = |&#58;chapter{{=}}{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = |&#58;section{{=}}{{{4}}} }} {{{2|1}}}{{#switch: {{{3|}}} | shortref | ref | = | .{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = | .{{{4}}} }}{{#switch: {{{5|}}} | shortref | ref | = | &ndash;{{{5}}} }}]<noinclude>
 
+
{{documentation}}</noinclude>
{{doc}}</noinclude>
 

Revision as of 20:58, 16 August 2016

1

Template documentation[view] [edit] [history] [purge]

Template:Underused external link template {{Anabasis|language|book|chapter|first section in range|last section in range}}

Link to Greek text of Xenophon's Anabasis 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 author and work. Put in shortref as the last parameter to display the name of work; put in ref to display both author and name of work.

{{Anabasis|en}} 1 default book and chapter = 1.1
{{Anabasis|en|2}} 2 book set; default chapter = 1
{{Anabasis|en|2|3}} 2.3 book and chapter set
{{Anabasis|en|2|3|4}} 2.3.4 book, chapter, and section set
{{Anabasis|en|2|3|4|5}} 2.3.4–5 book, chapter, and section range set
{{Anabasis|en|2|3|shortref}} Anabasis 2.3
{{Anabasis|en|2|3|4|ref}} Xenophon, Anabasis 2.3.4