Difference between revisions of "Template:MacTutor/doc"
Jump to navigation
Jump to search
imported>Homonihilis (interwiki tr) |
imported>Vanisaac m (→TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (16 intermediate revisions by 14 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{documentation subpage}} | + | {{documentation subpage}} |
| − | * | + | *{{mono|<nowiki>{{MacTutor|id=Kepler|title=Johannes Kepler}}</nowiki>}} yields |
::{{MacTutor|id=Kepler|title=Johannes Kepler}} | ::{{MacTutor|id=Kepler|title=Johannes Kepler}} | ||
| − | * | + | *{{mono|title}} defaults to the name of the Wikipedia article, so {{mono|<nowiki>{{MacTutor|id=Newton}}</nowiki>}} yields |
::{{MacTutor|id=Newton}} | ::{{MacTutor|id=Newton}} | ||
| − | * | + | *{{mono|date}} date of the article. For example, {{mono|<nowiki>{{MacTutor|id=Luke|title=Yudell Luke|date=October 1998}}</nowiki>}} yields |
::{{MacTutor|id=Luke|title=Yudell Luke|date=October 1998}} | ::{{MacTutor|id=Luke|title=Yudell Luke|date=October 1998}} | ||
| − | * | + | *{{mono|class}} can be used to indicate other non-biography pages in MacTutor, so {{mono|<nowiki>{{MacTutor|class=HistTopics|id=Topology_in_mathematics|title=A history of Topology}}</nowiki>}} yields |
::{{MacTutor|class=HistTopics|id=Topology_in_mathematics|title=A History of Topology}} | ::{{MacTutor|class=HistTopics|id=Topology_in_mathematics|title=A History of Topology}} | ||
| + | *{{mono|last}}, {{mono|first}},...,{{mono|last4}}, {{mono|first4}} parameters can be used to indicate up to four authors different from the default ones, so {{mono|<nowiki>{{MacTutor|first=Umberto|last=Lucia|id=Morera|title=Giacinto Morera|date= March 2006}}</nowiki>}} yields | ||
| + | ::{{MacTutor|first=Umberto|last=Lucia|id=Morera|title=Giacinto Morera|date= March 2006}} | ||
| − | <includeonly> | + | *{{mono|class}} can also be used jointly with {{mono|last}} and {{mono|first}} to indicate other non-biography pages in MacTutor, so {{mono|<nowiki>{{MacTutor|first=Umberto|last=Lucia|class=Extras|id=Morera_Publications|title=Publications of Giacinto Morera|date=March 2006}}</nowiki>}} yields |
| + | ::{{MacTutor|first=Umberto|last=Lucia|class=Extras|id=Morera_Publications|title=Publications of Giacinto Morera|date=March 2006}} | ||
| + | |||
| + | *{{mono|author'''X'''-link}} can be used when author parameters {{mono|last'''X'''}} and {{mono|first'''X'''}} are given, in order to insert a link to the [[Wikipedia]] article on the specified author, so {{mono|<nowiki>{{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}}</nowiki>}} yields | ||
| + | ::{{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> | ||
| + | |||
| + | |||
| + | <includeonly>{{Sandbox other|| | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
| − | [[Category:Specific source templates|MacTutor]] | + | [[Category:Specific-source templates|MacTutor]] |
[[Category:External link templates|MacTutor]] | [[Category:External link templates|MacTutor]] | ||
| − | [[Category:Mathematics | + | [[Category:Mathematics source templates|{{PAGENAME}}]] |
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
| − | [[ | + | [[af:Sjabloon:MacTutor]] |
| − | [[es:Plantilla:MacTutor | + | [[as:সাঁচ:MacTutor]] |
| + | [[bn:টেমপ্লেট:MacTutor]] | ||
| + | [[ca:Plantilla:MacTutor]] | ||
| + | [[de:Vorlage:MacTutor Biography]] | ||
| + | [[es:Plantilla:MacTutor]] | ||
| + | [[fi:Malline:MacTutor]] | ||
[[fr:Modèle:MacTutor]] | [[fr:Modèle:MacTutor]] | ||
| − | [[ | + | [[id:Templat:MacTutor]] |
| + | [[ja:Template:MacTutor]] | ||
| + | [[no:Mal:MacTutor]] | ||
| + | [[sh:Šablon:MacTutor]] | ||
| + | [[simple:Template:MacTutor]] | ||
[[sr:Шаблон:MacTutor]] | [[sr:Шаблон:MacTutor]] | ||
| + | [[th:แม่แบบ:MacTutor]] | ||
[[tr:Şablon:MacTutor]] | [[tr:Şablon:MacTutor]] | ||
| + | [[uk:Шаблон:MacTutor]] | ||
| + | [[zh:Template:MacTutor]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 00:29, 26 April 2020
| This is a documentation subpage for Template:MacTutor. It contains usage information, categories and other content that is not part of the original template page. |
- {{MacTutor|id=Kepler|title=Johannes Kepler}} yields
- title defaults to the name of the Wikipedia article, so {{MacTutor|id=Newton}} yields
- date date of the article. For example, {{MacTutor|id=Luke|title=Yudell Luke|date=October 1998}} yields
- 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
- 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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Id | id | Name at the end of URL | String | suggested |
| Title | title | Text used for the link
| String | suggested |