Template:Person: Difference between revisions

From The Seven Sages of Rome
No edit summary
Tag: Reverted
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
<!-- First, output the redirect if there is one -->
{{#invoke:PersonPage|render}}
 
<!-- Second, only show the rest if NOT a redirect -->
{{#ifexpr:{{#invoke:PersonPage|render|returnIsRedirect=1}}=1|
<!-- If it's a redirect, stop rendering anything else! -->
|
<!-- NOT a redirect: show everything else -->
 
{{#invoke:Breadcrumb|breadcrumb|CategoryLink=Persons|CategoryName=Person|PAGENAME={{PAGENAME}}}}
 
{| class=wikitable border=1
|-
{{TableAttribute|type=attr|display_name=First Name|value={{{Has First Name|}}}|property=Has First Name}}
|-
{{TableAttribute|type=attr|display_name=Last Name|value={{{Has Last Name|}}}|property=Has Last Name}}
|-
{{TableAttribute|type=attr|display_name=Title|value={{{Has Title|}}}|property=Has Title}}
|-
|}
 
<tabber>
|-|Prints=
=== {{PAGENAME}} is the printer of the following prints ===
{{#ask:[[Category:Print]][[Has Printer::{{PAGENAME}}]]|?Has Place Of Printing=Place of printing|default=No prints found}}
 
... rest of tabber ...
</tabber>
 
{{#if:{{{Has Note|}}}|<h2>Note</h2>{{{Has Note|}}}|}}
 
[[Category:Person]]
{{#set:Is Entity Type=Person}}
 
}} <!-- end ifexpr -->


</noinclude>
<includeonly><div class="noexcerpt">{{#invoke:Breadcrumb|breadcrumb|CategoryLink=Persons|CategoryName=Person|PAGENAME={{PAGENAME}}}}{{#if:{{{Has Display Title|}}}|{{DISPLAYTITLE:{{{Has Display Title|}}}}}|}}
{{#if:{{{Is Spelling Variation Of|}}}|{{#set:Is Spelling Variation Of={{{Is Spelling Variation Of|}}}}}{{Person/NamingVariation|CanonicalName={{{Is Spelling Variation Of|}}}}}|{{Person/Content|Has First Name={{{Has First Name|}}}|Has Last Name={{{Has Last Name|}}}|Has Title={{{Has Title|}}}}}}}
[[Category:Person]]{{#set:Is Entity Type=Person}}</div>
</includeonly>
</includeonly>

Latest revision as of 13:51, 24 March 2025