Template:Infobox craftperson: Difference between revisions

From Japanese Craftpedia portal
No edit summary
No edit summary
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox vcard" style="width: 22em; font-size: 90%; line-height: 1.35; float: right; clear: right; margin: 0 0 1em 1em;"
 
{| class="infobox" style="width: 26em; border: 1px solid #a2a9b1; float: right; clear: right; margin: 0.5em 0 1em 1em; background-color: #d2fcea;"
|+ style="font-size: 125%; font-weight: bold; background-color: #93f5ca; padding: 10px; border: 1px solid #54ba8e;" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" class="fn" style="text-align:center; font-size:125%; padding:0.35em;" || {{{name|{{PAGENAME}}}}}
| colspan="2" style="text-align: right;" | <div style="width: 100%; display: flex; align-items: center; justify-content: center;"><div style="width:250px; height:250px; display:flex; align-items:center; justify-content:center;
|-
            overflow:hidden; box-sizing:border-box;
| colspan="2" style="text-align:center; padding:0.4em;" ||
            border:1px solid #aaa; background:#f8f8f8;">
{{#if:{{{image|}}}
{{#if:{{{image|}}}
  | [[File:{{{image}}}|frameless|250px|alt={{{alt|}}}]]
| [[File:{{{image}}}|250px|link=|alt={{{alt|}}}]]
  | <div style="width:250px; height:250px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #aaa; background:#f8f8f8; color:#666; font-size:90%;">
| [[File:{{{placeholder}}}|250px|link=|alt=Placeholder]]
      {{{placeholder|No image available}}}
    </div>
}}
}}
</div>
</div>
|-
|-
! scope="row" style="text-align:left; padding:0.25em 0.5em;" !! Born
! scope="row" style="text-align: right; margin-right: 20px;" | Birth date:
| style="padding:0.25em 0.5em;" | {{{birth_date|}}}{{#if:{{{birth_place|}}}|<br/>{{{birth_place}}}|}}
| {{{birth_date|Unknown}}}
|-
|-
{{#if:{{{death_date|}}}{{{death_place|}}}|
! scope="row" style="text-align: right;" | Birth place:
| style="margin-left: 50px;"  | {{{birth_place|N/A}}}
|-
|-
| scope="row" style="text-align:left; padding:0.25em 0.5em;" !! Died
! scope="row" style="text-align: right;" | Death date:
| style="padding:0.25em 0.5em;" | {{{death_date|—}}}{{#if:{{{death_place|}}}|<br/>{{{death_place}}}|}}
| {{{death_date|N/A}}}
|}}
|-
|-
| scope="row" style="text-align:left; padding:0.25em 0.5em;" !! Place of birth
! scope="row" style="text-align: right;" | Death place:
| style="padding:0.25em 0.5em;" | {{{birth_place|}}}
| {{{death_place|N/A}}}
|-
|-
| scope="row" style="text-align:left; padding:0.25em 0.5em;" !! Main activity
! scope="row" style="text-align: right;" | Main place:
| style="padding:0.25em 0.5em;" | {{{main_place|—}}}
| {{{main_place}}}
|-
|-
| scope="row" style="text-align:left; padding:0.25em 0.5em;" !! Craft domain(s)
! scope="row" style="text-align: right;" | Craft domains:
| style="padding:0.25em 0.5em;" | {{{craft_domains|—}}}
| {{{craft_domains}}}
|-
! scope="row" style="text-align: right;" | Notable works:
| {{{notable_works}}}
|-
|-
| scope="row" style="text-align:left; padding:0.25em 0.5em;" !! Notable works
| style="padding:0.25em 0.5em;" |
{{#if:{{{notable_works|}}}
  | <div class="plainlist">{{{notable_works}}}</div>
  | —
}}
|}
|}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
{{Infobox craftsperson
{{Infobox craftperson
| name          =
| name          =
| image          =  <!-- e.g. Example.jpg -->
| image          =  <!-- e.g. Example.jpg -->
Line 52: Line 54:
| main_place    =
| main_place    =
| craft_domains  =
| craft_domains  =
| notable_works  = * Work 1
| notable_works  =  
                  * Work 2
}}
}}
</pre>
</pre>

Latest revision as of 05:23, 1 March 2026


Usage

{{Infobox craftperson
| name           =
| image          =   <!-- e.g. Example.jpg -->
| alt            =
| placeholder    =   <!-- optional -->
| birth_date     =
| birth_place    =
| death_date     =
| death_place    =
| main_place     =
| craft_domains  =
| notable_works  = 
}}