Test:Infobox person: Difference between revisions

From Irregularpedia
Jump to navigation Jump to search
test
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
{{Infobox person
{{Infobox person
| name          = John Doe
| name          = John Doe
| birth_date    = {{Birth date and age|1985|5|15}}
| birth_place  = Example City, Example Country
| occupation    = Software Developer
}}
{{Infobox military person
| name          = John Smith
| image        = Example.jpg
| image        = Example.jpg
| caption      = John Doe at a conference
| caption      = General John Smith in 1943
| birth_name    = Johnathan Doe
| birth_date    = {{Birth date|1900|01|01}}
| birth_date    = {{Birth date and age|1985|5|15}}
| birth_place  = Example City, Example Country
| birth_place  = Example City, Example Country
| death_date    = {{Death date and age|2023|12|1|1985|5|15}}
| death_date    = {{Death date and age|1980|12|31|1900|01|01}}
| death_place  = Another City, Another Country
| death_place  = Another City, Another Country
| nationality  = Example Nationality
| allegiance    = [[United States]]
| occupation    = Software Developer
| branch        = [[United States Army]]
| years_active = 2005–2023
| serviceyears = 1918–1945
| known_for    = Developing awesome software
| rank          = [[General]]
| notable_works = [[Example notable work]]
| unit          = 1st Infantry Division
| commands      = Supreme Headquarters
| battles      = [[World War II]]<br>[[Battle of Normandy]]
| awards        = [[Medal of Honor]]<br>[[Purple Heart]]
| spouse        = Jane Doe
}}
}}

Latest revision as of 05:42, 11 December 2024

Script error: The function "infoboxTemplate" does not exist.{{#switch:

 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:|
   | main
   | other
   }} 
 }}

| main = {{#if:|}}{{#if:|}}

| other | #default = }}{{#ifeq:|yes||{{#if:||

 {{#if: 
 | {{#if:{{#property:P18}}
   | {{#ifeq:|
     | 
     | 
     }}
   | {{#if:{{#property:P41}}{{#property:P94}}{{#property:P117}}{{#property:P154}}{{#property:P242}}
     | 
     | 
     }}
   }}
 | {{#if:{{#property:P18}}
   | {{#if: 
     | 
     |  
    }}
   | 
   }}
 }}

}}}}


John Smith
[[File:|300px]]
Born(1900-{{safesubst:#if:01
|{{safesubst:#switch:01
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{safesubst:#ifexpr:01<0
  |{{safesubst:#ifexpr:((01)round 0)!=(01)
   |{{safesubst:#expr:12-(((0.5-(01))round 0)mod 12)}}
   |{{safesubst:#expr:12-(((11.5-(01))round 0)mod 12)}}
  }}
 |{{safesubst:#expr:(((10.5+01)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}-01){{#if:

|{{#expr:01}} {{#if:01|{{#switch:{{safesubst:#if:01
|{{safesubst:#switch:01
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{safesubst:#ifexpr:01<0
  |{{safesubst:#ifexpr:((01)round 0)!=(01)
   |{{safesubst:#expr:12-(((0.5-(01))round 0)mod 12)}}
   |{{safesubst:#expr:12-(((11.5-(01))round 0)mod 12)}}
  }}
 |{{safesubst:#expr:(((10.5+01)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}}

|{{#if:01|{{#switch:{{safesubst:#if:01
|{{safesubst:#switch:01
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{safesubst:#ifexpr:01<0
  |{{safesubst:#ifexpr:((01)round 0)!=(01)
   |{{safesubst:#expr:12-(((0.5-(01))round 0)mod 12)}}
   |{{safesubst:#expr:12-(((11.5-(01))round 0)mod 12)}}
  }}
 |{{safesubst:#expr:(((10.5+01)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:01}}, }} {{#expr:1900}}{{#ifexpr: ( 1900 > 2024 )

|  invalid year{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:|
   | main
   | other
   }} 
 }}

| main = | other | #default = }} }}{{#if:01|{{#ifexpr: ( 01 > 12 ) OR ( 01 < 1 )

|  invalid month{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}|}} }}{{#if:01|{{#ifexpr: ( 01 > 31 ) OR ( 01 < 1 )

|  invalid day{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}|}} }}{{#ifeq: 0 | 0 | {{#if: Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value).

 | {{#if: 
   | {{#if: Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value).
     |
     | 
     }}
   }}
 | 
 }}
}}, Example City, Example Country
DiedDecember 31, 1980(1980-12-31) (aged 80), Another City, Another Country
Resting placeUnknown
Service/branchUnited States Army
Years of serviceUnknown
RankGeneral
UnitsUnknown
DeploymentsUnknown
Military Occupational Specialties (MOSs)Unknown
CommandsSupreme Headquarters
Battles/warsWorld War II
Battle of Normandy
AwardsMedal of Honor
Purple Heart
Spouse(s)Jane Doe
ChildrenUnknown
Other workUnknown

{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq:Test:Infobox person|Infobox||}} | other | #default = }}