Template:MathGenealogy: Difference between revisions

From IndicWiki Sandbox
https://sandbox.indicwiki.org/index.php/>Zyxw
m Trim leading or trailing spaces in unnamed parameter 2. Add fix for empty "name" or "title" parameter. Display error message if template missing ID and not present in Wikidata. Tested first with /sandbox and /testcases.
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P549}}
[http://genealogy.math.ndsu.nodak.edu/id.php?id={{{1|{{{id}}}}}} {{{2|{{{title|{{{name|{{PAGENAME}}}}}}}}}}}] at the [[Mathematics Genealogy Project]]<noinclude>
 
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
| [https://mathgenealogy.org/id.php?id={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P549}}|sep=,}} }} {{#if: {{{2|{{{title|{{{name<includeonly>|</includeonly>}}}}}}}}} | {{{2|{{{title|{{{name}}}}}}}}} | {{PAGENAMEBASE}} }}] at the [[Mathematics Genealogy Project]]<includeonly>{{EditAtWikidata|pid=P549|{{{1|{{{id|}}}}}}}}</includeonly>
 
| <span class="error">&#123;&#123;[[Template:MathGenealogy|MathGenealogy]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 
}}<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 07:05, 4 April 2025

MathGenealogy at the Mathematics Genealogy Project