Template:Infobox name: Difference between revisions
From WikiMD's Medical Encyclopedia
m 1 revision imported |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <includeonly> | ||
| | <div style="border: 1px solid #a2a9b1; background-color: #f9f9f9; padding: 5px; float: right; margin: 0 0 1em 1em; width: 25em; font-size: 90%;"> | ||
| | |||
<!-- Title --> | |||
<div style="background-color: #ADD8E6; text-align: center; font-weight: bold; font-size: 110%; padding: 5px;"> | |||
{{{name|{{PAGENAMEBASE}}}}} | |||
</div> | |||
<!-- Image --> | |||
{{#if: {{{image|}}} | | |||
<div style="text-align: center; margin: 5px 0;"> | |||
[[File:{{{image}}}|{{{image_size|frameless}}}|alt={{{caption|}}}]] | |||
<br><small>{{{caption|}}}</small> | |||
</div> | |||
}} | |||
<!-- Main Information Table --> | |||
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;"> | |||
{{#if: {{{romanization|{{{romanisation|}}}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Romanization</th><td style="padding: 5px;">{{{romanization|{{{romanisation|}}}}}}</td></tr> }} | |||
{{#if: {{{pronunciation|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Pronunciation</th><td style="padding: 5px;">{{{pronunciation}}}</td></tr> }} | |||
{{#if: {{{gender|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Gender</th><td style="padding: 5px;">{{{gender}}}</td></tr> }} | |||
{{#if: {{{language|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Language(s)</th><td style="padding: 5px;">{{{language}}}</td></tr> }} | |||
{{#if: {{{name_day|{{{nameday|}}}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Name day</th><td style="padding: 5px;">{{{name_day|{{{nameday|}}}}}}</td></tr> }} | |||
{{#if: {{{masculine|}}}{{{feminine|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Other gender</th> | |||
<td style="padding: 5px;"> | |||
{{#if: {{{masculine|}}} | <div>Masculine: {{{masculine}}}</div> }} | |||
{{#if: {{{feminine|}}} | <div>Feminine: {{{feminine}}}</div> }} | |||
</td></tr> }} | |||
</table> | |||
<!-- Origin Section --> | |||
{{#if: {{{languageorigin|}}}{{{origin|}}}{{{derivation|}}}{{{meaning|}}}{{{region|}}}{{{motto|}}} | | |||
<div style="margin-top: 10px; font-weight: bold;">Origin</div> | |||
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;"> | |||
{{#if: {{{languageorigin|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Language(s)</th><td style="padding: 5px;">{{{languageorigin}}}</td></tr> }} | |||
{{#if: {{{origin|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Word/name</th><td style="padding: 5px;">{{{origin}}}</td></tr> }} | |||
{{#if: {{{derivation|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Derivation</th><td style="padding: 5px;">{{{derivation}}}</td></tr> }} | |||
{{#if: {{{meaning|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Meaning</th><td style="padding: 5px;">{{{meaning}}}</td></tr> }} | |||
{{#if: {{{region|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Region of origin</th><td style="padding: 5px;">{{{region}}}</td></tr> }} | |||
{{#if: {{{motto|}}} | | |||
<tr><th style="padding: 5px; text-align: left;">Motto</th><td style="padding: 5px;">{{{motto}}}</td></tr> }} | |||
</table> | |||
}} | |||
<!-- Footer --> | |||
{{#if: {{{footnotes|}}} | | |||
<div style="border-top: 1px solid #a2a9b1; margin-top: 10px; padding-top: 5px; text-align: left;">{{{footnotes}}}</div> | |||
}} | |||
</div> | |||
</includeonly> | |||
<noinclude> | |||
== Usage == | |||
This template provides an infobox for names and their origins without using Lua. | |||
=== Parameters === | |||
* `name` - Name (default: page name). | |||
* `image` - Filename of an image. | |||
* `image_size` - Size of the image (default: frameless). | |||
* `caption` - Caption for the image. | |||
* `romanization` - Romanized form of the name. | |||
* `pronunciation` - Pronunciation of the name. | |||
* `gender` - Gender associated with the name. | |||
* `language` - Primary language of the name. | |||
* `name_day` or `nameday` - Name day(s). | |||
* `masculine` - Masculine form of the name. | |||
* `feminine` - Feminine form of the name. | |||
* `languageorigin` - Original language of the name. | |||
* `origin` - Word or name origin. | |||
* `derivation` - Derivation of the name. | |||
* `meaning` - Meaning of the name. | |||
* `region` - Region of origin. | |||
* `motto` - Motto associated with the name. | |||
* `footnotes` - Any additional notes. | |||
== Notes == | |||
* Fields left empty will not be displayed. | |||
* Ensure images are uploaded to the wiki or available on Wikimedia Commons. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 19:14, 6 January 2025
Usage[edit]
This template provides an infobox for names and their origins without using Lua.
Parameters[edit]
- `name` - Name (default: page name).
- `image` - Filename of an image.
- `image_size` - Size of the image (default: frameless).
- `caption` - Caption for the image.
- `romanization` - Romanized form of the name.
- `pronunciation` - Pronunciation of the name.
- `gender` - Gender associated with the name.
- `language` - Primary language of the name.
- `name_day` or `nameday` - Name day(s).
- `masculine` - Masculine form of the name.
- `feminine` - Feminine form of the name.
- `languageorigin` - Original language of the name.
- `origin` - Word or name origin.
- `derivation` - Derivation of the name.
- `meaning` - Meaning of the name.
- `region` - Region of origin.
- `motto` - Motto associated with the name.
- `footnotes` - Any additional notes.
Notes[edit]
- Fields left empty will not be displayed.
- Ensure images are uploaded to the wiki or available on Wikimedia Commons.