Difference between revisions of "Template:MacTutor/doc"

From blackwiki
Jump to navigation Jump to search
imported>SD0001
(add basic usage templatedata)
imported>SD0001
(heading)
Line 22: Line 22:
 
::{{MacTutor|first=Vladimir G.|last=Maz'ya|author-link=Vladimir Maz'ya|first2=Tatyana O.|last2=Shaposhnikova|author2-link=Tatyana Shaposhnikova|first3=Daniele|last3=Tampieri|id=Mikhlin|title=Solomon Grigoryevich Mikhlin|date=March 2011}}
 
::{{MacTutor|first=Vladimir G.|last=Maz'ya|author-link=Vladimir Maz'ya|first2=Tatyana O.|last2=Shaposhnikova|author2-link=Tatyana Shaposhnikova|first3=Daniele|last3=Tampieri|id=Mikhlin|title=Solomon Grigoryevich Mikhlin|date=March 2011}}
  
 
+
==TemplateData==
 +
<templatedata>
 +
{
 +
"params": {
 +
"id": {
 +
"description": "Name at the end of URL",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"title": {
 +
"description": "Text used for the link",
 +
"type": "string",
 +
"autovalue": "{{subst:PAGENAME}}",
 +
"suggested": true
 +
}
 +
},
 +
"description": "Create a citation to a MacTutor biography",
 +
"format": "inline"
 +
}
 +
</templatedata>
  
  
Line 51: Line 70:
  
 
</includeonly>
 
</includeonly>
<templatedata>
 
{
 
"params": {
 
"id": {
 
"description": "Name at the end of URL",
 
"type": "string",
 
"suggested": true
 
},
 
"title": {
 
"description": "Text used for the link",
 
"type": "string",
 
"autovalue": "{{subst:PAGENAME}}",
 
"suggested": true
 
}
 
},
 
"description": "Create a citation to a MacTutor biography",
 
"format": "inline"
 
}
 
</templatedata>
 

Revision as of 19:33, 22 January 2020

  • {{MacTutor|id=Kepler|title=Johannes Kepler}} yields
O'Connor, John J.; Robertson, Edmund F., "Johannes Kepler", MacTutor History of Mathematics archive, University of St Andrews.
  • title defaults to the name of the Wikipedia article, so {{MacTutor|id=Newton}} yields
O'Connor, John J.; Robertson, Edmund F., "MacTutor/doc", MacTutor History of Mathematics archive, University of St Andrews.
  • date date of the article. For example, {{MacTutor|id=Luke|title=Yudell Luke|date=October 1998}} yields
O'Connor, John J.; Robertson, Edmund F. (October 1998), "Yudell Luke", MacTutor History of Mathematics archive, University of St Andrews.
  • class can be used to indicate other non-biography pages in MacTutor, so {{MacTutor|class=HistTopics|id=Topology_in_mathematics|title=A history of Topology}} yields
O'Connor, John J.; Robertson, Edmund F., "A History of Topology", MacTutor History of Mathematics archive, University of St Andrews.
  • last, first,...,last4, first4 parameters can be used to indicate up to four authors different from the default ones, so {{MacTutor|first=Umberto|last=Lucia|id=Morera|title=Giacinto Morera|date= March 2006}} yields
Lucia, Umberto (March 2006), "Giacinto Morera", in O'Connor, John J.; Robertson, Edmund F. (eds.), MacTutor History of Mathematics archive, University of St Andrews.
  • class can also be used jointly with last and first to indicate other non-biography pages in MacTutor, so {{MacTutor|first=Umberto|last=Lucia|class=Extras|id=Morera_Publications|title=Publications of Giacinto Morera|date=March 2006}} yields
Lucia, Umberto (March 2006), "Publications of Giacinto Morera", in O'Connor, John J.; Robertson, Edmund F. (eds.), MacTutor History of Mathematics archive, University of St Andrews.
  • authorX-link can be used when author parameters lastX and firstX are given, in order to insert a link to the Wikipedia article on the specified author, so {{MacTutor|first=Vladimir G.|last=Maz'ya|author-link=Vladimir Maz'ya|first2=Tatyana O.|last2=Shaposhnikova|author2-link=Tatyana Shaposhnikova|first3=Daniele|last3=Tampieri|id=Mikhlin|title=Solomon Grigoryevich Mikhlin|date=March 2011}} yields
Maz'ya, Vladimir G.; Shaposhnikova, Tatyana O.; Tampieri, Daniele (March 2011), "Solomon Grigoryevich Mikhlin", in O'Connor, John J.; Robertson, Edmund F. (eds.), MacTutor History of Mathematics archive, University of St Andrews.

TemplateData

Create a citation to a MacTutor biography

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Idid

Name at the end of URL

Stringsuggested
Titletitle

Text used for the link

Auto value
{{subst:PAGENAME}}
Stringsuggested