Jump to content

Template:Basic Infobox: Difference between revisions

From The Final Nights
Created page with "<includeonly> {| class="infobox" style="width: 22em; border: 1px solid #a2a9b1; background-color: #f8f9fa; float: right; margin: 0 0 1em 1em; padding: 0.2em;" |+ style="font-size: 125%; font-weight: bold; padding: 0.2em;" | {{{name|{{PAGENAME}}}}} |- | colspan="2" style="border-top: 1px solid #aaa;" | |- {{#if:{{{image|}}}| | colspan="2" style="text-align:center;" | [[File:{{{image}}}|frameless|upright=1.1]] {{#if:{{{caption|}}}| <br/><small>{{{caption}}}</small> }} |-..."
 
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><table class="infobox" style="background-color: #f8f9fa !important;"><tr><th colspan="2" class="infobox-header" style="font-size: 125%; padding: 0.6em; text-align: center; background-color: #cedff2 !important;">{{{name|{{PAGENAME}}}}}</th></tr><tr><td colspan="2" style="padding: 0 1px; background-color: #f8f9fa !important;"><hr style="height: 1px; background-color: #aaa; border: none; margin: 0;" /></td></tr>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; padding: 0.8em 0; background-color: #f8f9fa !important;">[[File:{{{image}}}|250px]]{{#if:{{{caption|}}}|<br/><small>{{{caption}}}</small>}}</td></tr><tr><td colspan="2" style="padding: 0 1px; background-color: #f8f9fa !important;"><hr style="height: 1px; background-color: #aaa; border: none; margin: 0;" /></td></tr>}}{{#if:{{{occupation|}}}|<tr><th scope="row" style="text-align: left; padding: 8px 12px; width: 40%; font-size: 90%; background-color: #f8f9fa !important;">Occupation</th><td style="padding: 8px 12px; font-size: 90%; background-color: #f8f9fa !important;">{{{occupation}}}</td></tr>}}{{#if:{{{location|}}}|<tr><th scope="row" style="text-align: left; padding: 8px 12px; font-size: 90%; background-color: #f8f9fa !important;">Location</th><td style="padding: 8px 12px; font-size: 90%; background-color: #f8f9fa !important;">{{{location}}}</td></tr>}}{{#if:{{{footnotes|}}}|<tr><td colspan="2" style="padding: 0 1px; background-color: #f8f9fa !important;"><hr style="height: 1px; background-color: #aaa; border: none; margin: 0;" /></td></tr><tr><td colspan="2" style="font-size: 85%; text-align: center; padding: 10px; background-color: #f8f9fa !important;">{{{footnotes}}}</td></tr>}}</table></includeonly>
{| class="infobox" style="width: 22em; border: 1px solid #a2a9b1; background-color: #f8f9fa; float: right; margin: 0 0 1em 1em; padding: 0.2em;"
<noinclude>
|+ style="font-size: 125%; font-weight: bold; padding: 0.2em;" | {{{name|{{PAGENAME}}}}}
== Usage ==
|-
Copy and paste the following code to add this infobox to an article:
| colspan="2" style="border-top: 1px solid #aaa;" |
|-
{{#if:{{{image|}}}|
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|frameless|upright=1.1]]
{{#if:{{{caption|}}}| <br/><small>{{{caption}}}</small> }}
|-
| colspan="2" style="border-top: 1px solid #aaa;" |
}}
|-
{{#if:{{{occupation|}}}|
! scope="row" style="text-align: left;" | Occupation
| {{{occupation}}}
}}
|-
{{#if:{{{location|}}}|
! scope="row" style="text-align: left;" | Location
| {{{location}}}
}}
|-
| colspan="2" style="border-top: 1px solid #aaa;" |
|-
| colspan="2" style="font-size: 90%; text-align: center;" | {{{footnotes|}}}
|}
</includeonly><noinclude>
This is the basic infobox template.


== Usage ==
<pre>
<pre>
{{Basic Infobox
{{Basic Infobox
Line 40: Line 14:
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]
 
== Example ==
<pre>
{{Basic Infobox
| name      = Nimisha Zakaria
| image      = nimi.png
| caption    = Nimisha photographed around the early 1900s
| occupation = Primogen
| location  = San Francisco, California
| footnotes  = One of many Malkavian Primogens, best known for her cruel affect towards non-Malkavians and extensive list of boons.
}}
</pre>
{{Basic Infobox
| name      = Nimisha Zakaria
| image      = nimi.png
| caption    = Nimisha photographed around the early 1900s
| occupation = Primogen
| location  = San Francisco, California
| footnotes  = One of many Malkavian Primogens, best known for her cruel affect towards non-Malkavians and extensive list of boons.
}}
</noinclude>
</noinclude>

Latest revision as of 18:20, 13 May 2026


Usage

Copy and paste the following code to add this infobox to an article:

{{Basic Infobox
| name       = 
| image      = 
| caption    = 
| occupation = 
| location   = 
| footnotes  = 
}}

Example

{{Basic Infobox
| name       = Nimisha Zakaria
| image      = nimi.png
| caption    = Nimisha photographed around the early 1900s
| occupation = Primogen
| location   = San Francisco, California
| footnotes  = One of many Malkavian Primogens, best known for her cruel affect towards non-Malkavians and extensive list of boons.
}}
Nimisha Zakaria


Nimisha photographed around the early 1900s

OccupationPrimogen
LocationSan Francisco, California

One of many Malkavian Primogens, best known for her cruel affect towards non-Malkavians and extensive list of boons.