Template:Place: Difference between revisions
From Equestripedia, the Archives of Equestria!
Content added Content deleted
m (Category was added to check on import-progress, but now that that is largely taken care of, category is no longer needed.) |
No edit summary |
||
(27 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><templatestyles src="Template:Infobox/styles.css" />{{Infobox |
|||
{| class="infobox" |
|||
| autoheaders=y |
|||
|- |
|||
| bodystyle = width:270px; border: 2px solid #DFCDDD; |
|||
! class = "infobox-header1" colspan="2" | {{{name|{{PAGENAME}}}}} |
|||
| abovestyle = background-color: #2B1D42; color: #DFCDDD; padding: 8px; font-size: 150%; |
|||
{{#if:{{{image|}}}|}} |
|||
| imagestyle = padding-top: 9px; |
|||
|- |
|||
| captionstyle = padding: 5px 10px; |
|||
{{#if:{{{image|}}}| |
|||
| subheaderstyle = font-size: 110%; padding: 5px; |
|||
! style="text-align:center; padding: 0px; border-bottom:0px solid" colspan="2" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size=270|sizedefault=frameless|upright=1.1|alt={{{alt|}}}|suppressplaceholder=yes}} |
|||
| headerstyle = background-color: #2B1D42; font-weight: bold; #DFCDDD: white; font-size: 110%; padding: 4px; |
|||
}} |
|||
| bodyclass = infobox |
|||
{{!}}- |
|||
{{#if: {{{location|}}} {{{type|}}}| {{{!}} class="infobox mw-collapsible infobox-bottom" style="{{#if:{{{image|}}}|width:278px|width:270px}}" |
|||
! class = "infobox-header3 purple-text" colspan="2" {{!}} {{#switch:{{{series}}}|FIM=''Friendship is Magic'' place[[Category:Friendship is Magic places]]|EQG=''Equestria Girls'' place[[Category:Equestria Girls places]]|MLP=''My Little Pony'' place[[Category:My Little Pony places]]|TALES=''Tales'' place[[Category:Tales places]]}} |
|||
}} |
|||
{{!}}-}} |
|||
{{!}}- |
|||
{{#if:{{{location|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{location-title|Location}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{location|}}} |
|||
{{!}}-}} |
|||
| above = {{ #if: {{{name|}}} | {{{name|{{PAGENAME}}|#if:{{{fan|true}}} [[category:Fan names]]}}} | {{PAGENAME}}}} |
|||
{{#if:{{{type|}}}| |
|||
|subheader = {{Place/SeriesCategorization|series={{{series|}}}}} |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{type-title|Type}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{type|}}} |
|||
{{!}}-}} |
|||
| image = {{#invoke:InfoboxImageDRAFT|InfoboxImageDRAFT|image={{trim brackets|{{{image|}}}}}|alt={{{image_alt|}}}|size={{{image_size|270px}}}|upright={{{upright|1.45}}}|sizedefault=frameless|maxsize=270px}} |
|||
{{#if: {{{language|}}} {{{species|}}} {{{demonym|}}} {{{exports|}}} {{{imports|}}} {{{cities|}}} {{{organizations|}}} {{{establishments|}}} {{{structures|}}} {{{landmarks|}}} | {{{!}} class="infobox mw-collapsible mw-collapsed infobox-bottom" style="{{#if:{{{image|}}}|width:278px|width:270px}}" |
|||
| caption = {{{caption|}}} |
|||
! class = "infobox-header2 purple-text" colspan="2" {{!}} Culture and geography |
|||
{{!}}- |
|||
}} |
|||
|- |
|||
{{#if:{{{language|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{language-title|Language}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{language|}}} |
|||
{{!}}-}} |
|||
| header1 = Overview information |
|||
{{#if:{{{species|}}}| |
|||
| label2 = {{tooltip|aka|Also known as}} |
|||
{{!}} class="infobox-label" {{!}} |
|||
| data2 = {{{aka|}}} |
|||
'''{{{species-title|Species}}}''': |
|||
| rowclass2 = bordered |
|||
{{!}} class="infobox-cell" {{!}} |
|||
| label3 = Location |
|||
{{{species|}}} |
|||
| data3 = {{{location|}}} |
|||
{{!}}-}} |
|||
| rowclass3 = bordered |
|||
| label4 = Type |
|||
| data4 = {{{type|}}} |
|||
| rowclass4 = bordered |
|||
| label5 = {{{leader-type|Leader}}} |
|||
| data5 = {{{leader|}}} |
|||
| rowclass5 = bordered |
|||
| header6 = Historical information |
|||
| label7 = Founder |
|||
{{#if:{{{demonym|}}}| |
|||
| data7 = {{{founder|}}} |
|||
{{!}} class="infobox-label" {{!}} |
|||
| rowclass7 = bordered |
|||
'''{{{demonym-title|Demonym}}}''': |
|||
| label8 = Founded |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{ |
| data8 = {{{founded|}}} |
||
| rowclass8 = bordered |
|||
{{!}}-}} |
|||
| label9 = Events |
|||
| data9 = {{{events|}}} |
|||
{{#if:{{{exports|}}}| |
|||
| rowclass9 = bordered |
|||
{{!}} class="infobox-label" {{!}} |
|||
| label10 = Status |
|||
'''{{{exports-title|Exports}}}''': |
|||
| data10 = {{{status|}}} |
|||
{{!}} class="infobox-cell" {{!}} |
|||
| rowclass10 = bordered |
|||
{{{exports|}}} |
|||
|data11 = {{#if:{{{first|}}}{{{last|}}}| |
|||
{{!}}-}} |
|||
{{(!}} style="width: 100%; display: inline-table; border-collapse: collapse" |
|||
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''First'''<br />{{#if: {{{first|}}} | {{{first}}} | —}} |
|||
{{#if:{{{imports|}}}| |
|||
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''Last'''<br />{{#if: {{{last|}}} | {{{last}}} | —}} |
|||
{{!}} class="infobox-label" {{!}} |
|||
{{!)}} |
|||
'''{{{imports-title|Imports}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{imports|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{imports|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{imports-title|Imports}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{imports|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{organizations|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{organizations-title|Organizations}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{organizations|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{establishments|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{establishments-title|Establishments}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{establishments|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{structures|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{structures-title|Structures}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{structures|}}} |
|||
{{!}}-}} |
|||
{{#if: {{{goods|}}} {{{menu|}}} {{{workers|}}} {{{regulars|}}} | {{{!}} class="infobox mw-collapsible mw-collapsed infobox-bottom" style="{{#if:{{{image|}}}|width:278px|width:270px}}" |
|||
! class = "infobox-header2 purple-text" colspan="2" {{!}} Stock and people |
|||
{{!}}- |
|||
}} |
}} |
||
}}</onlyinclude><includeonly>[[Category:Using place infobox]]{{#if:{{{Y|}}}|[[Category:{{{Y}}} place debuts]]}}</includeonly><noinclude><br style="clear:both;" />{{documentation}}</noinclude> |
|||
|- |
|||
{{#if:{{{goods|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{goods-title|Goods}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{goods|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{menu|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{menu-title|Menu}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{menu|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{workers|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{workers-title|Workers}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{workers|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{regulars|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{regulars-title|Regulars}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{regulars|}}} |
|||
{{!}}-}} |
|||
{{#if: {{{founder|}}} {{{founding|}}} {{{disestablishment|}}} {{{battles|}}} | {{{!}} class="infobox mw-collapsible mw-collapsed infobox-bottom" style="{{#if:{{{image|}}}|width:278px|width:270px}}" |
|||
! class = "infobox-header2 purple-text" colspan="2" {{!}} History |
|||
{{!}}- |
|||
}} |
|||
|- |
|||
{{#if:{{{founder|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{founder-title|Founder}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{founder|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{founding|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{founding-title|Goods}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{founding|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{disestablishment|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{disestablishment-title|Disestablishment}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{disestablishment|}}} |
|||
{{!}}-}} |
|||
{{#if:{{{battles|}}}| |
|||
{{!}} class="infobox-label" {{!}} |
|||
'''{{{battles-title|Battles}}}''': |
|||
{{!}} class="infobox-cell" {{!}} |
|||
{{{battles|}}} |
|||
{{!}}-}} |
|||
|}<noinclude>[[Category:Infobox templates]]{{Documentation}}</noinclude> |
Latest revision as of 22:25, 7 April 2024
Place |
---|
This infobox is for rendering typical places and their information. It is a generic template that should work for most places. There is only one alternate templates for different types of places, Template:School, but this should work for most pages for now.
The syntax is as following:
{{Place|series = |name = |image = |location = |type = |leader = |founder = |founded = |events = |status = |first = |last = }}