Difference between revisions of "Template:Anabasis"
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]]'' | ref = [[Xenophon]], ''[[Anabasis (Xenophon)|Anabasis]]'' }}[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 | = |:chapter{{=}}{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = |:section{{=}}{{{4}}} }} {{{2|1}}}{{#switch: {{{3|}}} | shortref | ref | = | .{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = | .{{{4}}} }}{{#switch: {{{5|}}} | shortref | ref | = | –{{{5}}} }}]<noinclude> | {{#switch: {{{5|{{{4|{{{3|{{{2|}}} }}} }}} }}} | shortref = ''[[Anabasis (Xenophon)|Anabasis]]'' | ref = [[Xenophon]], ''[[Anabasis (Xenophon)|Anabasis]]'' }}[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 | = |:chapter{{=}}{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = |:section{{=}}{{{4}}} }} {{{2|1}}}{{#switch: {{{3|}}} | shortref | ref | = | .{{{3}}} }}{{#switch: {{{4|}}} | shortref | ref | = | .{{{4}}} }}{{#switch: {{{5|}}} | shortref | ref | = | –{{{5}}} }}]<noinclude> | ||
| − | + | {{documentation}}</noinclude> | |
| − | {{ | ||
Revision as of 20:58, 16 August 2016
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 |
| The above documentation is transcluded from Template:Anabasis/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |