Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Template:Has person
(view source)
Revision as of 09:01, 25 January 2019
475 bytes removed
,
09:01, 25 January 2019
no edit summary
Line 1:
Line 1:
{{#if:{{{first name|}}}|{{#if: {{{last name|}}}|{{#if:{{{alt|}}}|[[has person::{{{first name|}}} {{#if:{{{middle name|}}}|{{{middle name|}}} |}} {{{last name|}}}{{#!:|}}{{{alt|}}}]]|[[has person::{{{first name|}}}{{#if:{{{middle name|}}}|{{{middle name|}}} |}} {{{last name|}}}]]{{#set: has surname={{{last name|}}} }} |first and last name must be provided}}|{{#if:{{{alt|}}}|[[has person::{{{name|}}}{{#!:|}}{{{alt|}}}]]|[[has person::{{{name|}}}]]}}{{#set:has surname={{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}}}{{#if: {{{surname|}}}|[[Category:{{{surname|}}}]]|[[Category:{{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}]] }} }} }}<noinclude>{{documentation}}</noinclude>
{{#if:{{{first name|}}}|{{#if: {{{last name|}}}|{{#if:{{{alt|}}}|[[has person::{{{first name|}}} {{#if:{{{middle name|}}}|{{{middle name|}}} |}} {{{last name|}}}{{#!:|}}{{{alt|}}}]]|[[has person::{{{first name|}}}{{#if:{{{middle name|}}}|{{{middle name|}}} |}} {{{last name|}}}]]{{#set: has surname={{{last name|}}} }} |first and last name must be provided}}|{{#if:{{{alt|}}}|[[has person::{{{name|}}}{{#!:|}}{{{alt|}}}]]|[[has person::{{{name|}}}]]}}{{#set:has surname={{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}}}{{#if: {{{surname|}}}|[[Category:{{{surname|}}}]]|[[Category:{{#if:{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |2}}|{{#explode:{{{name|}}}| |1}}}}]] }} }} }}<noinclude>{{documentation}}</noinclude>
−
name provided desperately provided:
+
[[
{{#if:{{{first name|}}}|{{{first name|}}}|<!
-
-show nothing
-
->}}{{#if:{{{middle name|}}}|&
ensp
;{{{middle name|}}}|<!
-
-show nothing
-
->}}{{#if:{{{last name|}}}|&
ensp
;{{{last name|}}}|<!
-
-show nothing
-
->}}{{#if:{{{suffix|}}}|&
ensp
;{{{suffix|}}}|<!
-
-show nothing
-
->}}{{#if: {{{
id
|}}}|&
ensp
;
(
{{{id|}}}
)
|<!
-
-show nothing
-
->}}
]]
−
no alt text provided
−
first name only -err
−
last name only - err
−
middle name only - err
−
suffix only -rr
−
id only - err
−
first and last name
−
first middle and last name
−
first middle last and suffix
−
first middle last suffix and id
−
−
{{#if: {{{first name|}}}|{{{first name|}}}|<!-show nothing->}}{{#if: {{{middle name|}}}|&
emsp
;{{{middle name|}}}|<!-show nothing->}}{{#if: {{{last name|}}}|&
emsp
;{{{last name|}}}|<!-show nothing->}}{{#if: {{{suffix|}}}|&
emsp
;{{{suffix|}}}|<!-show nothing->}}{{#if: {{{
ide
|}}}|&
emsp
;{{{id|}}}|<!-show nothing->}}
−
+
{{#if
:{{
{
name|
}}}
|
<!-if
name
exists--> {{#if:{{{alt
|}}
}|
<
!-if
name
and
alt
exists-->|<!-
name
but
no alt
-->}}| <!-if
name
and alt doesn't exist-->}}
−
alt text provided
−
−
<noinclude>
−
Test
:
−
{{
has person |first
name
=jason
|
middle name=michael
|
last
name
=crews
|
suffix=Sr. |id=1982
}}
−
<
/noinclude>
−
−
−
−
full
name
provided:
−
alt
text provided
−
full
name
−
no alt
text provided
−
full
name
Wikiadmin
Bureaucrats
,
Interface administrators
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Editors (Semantic MediaWiki)
,
Suppressors
,
Administrators
19,911
edits
Navigation menu
Personal tools
Log in
Namespaces
Template
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
Shortcuts
New Person Format
New Document Format
New Source Format
New Citation Format
Search Card
Tools
Special pages
Printable version