Template:Place: Difference between revisions
From Equestripedia, the Archives of Equestria!
Content added Content deleted
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< |
<onlyinclude><templatestyles src="Template:Infobox/styles.css" />{{Infobox |
||
| autoheaders=y |
|||
<tr><td colspan="2" style="text-align: center; font-size:140%;">'''{{#if: {{{name|}}}|{{{name|}}}|{{PAGENAME}}}}'''</td></tr> |
|||
| bodystyle = width:270px; border: 2px solid #DFCDDD; |
|||
<tr><td colspan="2">{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size=270|sizedefault=frameless|upright=1.1|alt={{{alt|}}}|suppressplaceholder=yes}}</td></tr><!-- |
|||
| abovestyle = background-color: #2B1D42; color: #DFCDDD; padding: 8px; font-size: 150%; |
|||
--><tr><td colspan="2" style="text-align: center;>{{{caption|}}}</td></tr><!-- |
|||
| imagestyle = padding-top: 9px; |
|||
--><!-- |
|||
| captionstyle = padding: 5px 10px; |
|||
--><td colspan="2" class="ib-line"></td> |
|||
| subheaderstyle = font-size: 110%; padding: 5px; |
|||
<!------------------------------------------------------------------------------------------------------------------- |
|||
| headerstyle = background-color: #2B1D42; font-weight: bold; #DFCDDD: white; font-size: 110%; padding: 4px; |
|||
--> |
|||
| bodyclass = infobox |
|||
<tr><td colspan="2" style="padding-top:5px;text-align: center; font-weight: bold;">Place</td></tr> |
|||
{{#if: {{{location|}}}|<tr> |
|||
| above = {{ #if: {{{name|}}} | {{{name|{{PAGENAME}}|#if:{{{fan|true}}} [[category:Fan names]]}}} | {{PAGENAME}}}} |
|||
<td class="ib-data-title">Location</td> |
|||
|subheader = {{Place/SeriesCategorization|series={{{series|}}}}} |
|||
<td class="ib-data">{{{location|}}}</td> |
|||
</tr>}}<!--<!-- |
|||
| image = {{#invoke:InfoboxImageDRAFT|InfoboxImageDRAFT|image={{trim brackets|{{{image|}}}}}|alt={{{image_alt|}}}|size={{{image_size|270px}}}|upright={{{upright|1.45}}}|sizedefault=frameless|maxsize=270px}} |
|||
-->{{#if: {{{type|}}}|<tr> |
|||
| caption = {{{caption|}}} |
|||
<td class="ib-data-title">Type</td> |
|||
<td class="ib-data">{{{type|}}}</td> |
|||
| header1 = Overview information |
|||
</tr>}}<!-- |
|||
| label2 = {{tooltip|aka|Also known as}} |
|||
<!-- |
|||
| data2 = {{{aka|}}} |
|||
| rowclass2 = bordered |
|||
<td class="ib-data-title">Leader</td> |
|||
| label3 = Location |
|||
<td class="ib-data">{{{leader|}}}</td> |
|||
| data3 = {{{location|}}} |
|||
| rowclass3 = bordered |
|||
<tr><td colspan="2" style="padding-top:5px;text-align: center; font-weight: bold;">Appearances</td></tr> |
|||
| label4 = Type |
|||
⚫ | |||
| data4 = {{{type|}}} |
|||
<td class="ib-data-title">First</td> |
|||
| rowclass4 = bordered |
|||
<td class="ib-data">{{{first|}}}</td> |
|||
| label5 = {{{leader-type|Leader}}} |
|||
</tr>}}<!-- |
|||
| data5 = {{{leader|}}} |
|||
| rowclass5 = bordered |
|||
<td class="ib-data-title">Last</td> |
|||
| header6 = Historical information |
|||
<td class="ib-data">{{{last|}}}</td> |
|||
</tr>}} |
|||
| label7 = Founder |
|||
</table>[[Category:Places]]{{#Switch:{{{series}}}|MLP=[[Category:My Little Pony places]]|TALES=[[Category:Tales places]]|G3=[[Category:Generation 3 places]]|FIM=[[Category:Friendship is Magic places]]|PL=[[Category:Pony Life places]]|EQG=[[Category:Equestria Girls places]]|ANG=[[Category:A New Generation places]]}}</includeonly> |
|||
| data7 = {{{founder|}}} |
|||
| rowclass7 = bordered |
|||
| label8 = Founded |
|||
| data8 = {{{founded|}}} |
|||
| rowclass8 = bordered |
|||
| label9 = Events |
|||
| data9 = {{{events|}}} |
|||
| rowclass9 = bordered |
|||
| label10 = Status |
|||
| data10 = {{{status|}}} |
|||
| rowclass10 = bordered |
|||
⚫ | |||
{{(!}} 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}}} | —}} |
|||
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''Last'''<br />{{#if: {{{last|}}} | {{{last}}} | —}} |
|||
{{!)}} |
|||
}} |
|||
}}</onlyinclude><includeonly>[[Category:Using place infobox]]{{#if:{{{Y|}}}|[[Category:{{{Y}}} place debuts]]}}</includeonly><noinclude><br style="clear:both;" />{{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 = }}