Template:Place: Difference between revisions
From Equestripedia, the Archives of Equestria!
Content added Content deleted
Equestripedia>Amelia No edit summary |
No edit summary |
||
(41 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><templatestyles src="Template:Infobox/styles.css" />{{Infobox |
|||
<infobox> |
|||
| autoheaders=y |
|||
<title source="name"><center><font color = "#EAD5FC">{{{name|{{PAGENAME}}}}}</font></center></title> |
|||
| bodystyle = width:270px; border: 2px solid #DFCDDD; |
|||
<group collapse="closed" layout="horizontal"><data source="caption"></data></group> |
|||
| abovestyle = background-color: #2B1D42; color: #DFCDDD; padding: 8px; font-size: 150%; |
|||
<image source="image" /> |
|||
| imagestyle = padding-top: 9px; |
|||
<group> |
|||
| captionstyle = padding: 5px 10px; |
|||
<header>Background information</header> |
|||
| subheaderstyle = font-size: 110%; padding: 5px; |
|||
<data source="location"><label>Location</label></data> |
|||
| headerstyle = background-color: #2B1D42; font-weight: bold; #DFCDDD: white; font-size: 110%; padding: 4px; |
|||
<data source="type"><label>Type</label></data> |
|||
| bodyclass = infobox |
|||
<data source="species"><label>Species</label></data> |
|||
<data source="language"><label>Language(s)</label></data> |
|||
| above = {{ #if: {{{name|}}} | {{{name|{{PAGENAME}}|#if:{{{fan|true}}} [[category:Fan names]]}}} | {{PAGENAME}}}} |
|||
<data source="cities"><label>Cities</label></data> |
|||
|subheader = {{Place/SeriesCategorization|series={{{series|}}}}} |
|||
<data source="inhabitants"><label>Inhabitants</label></data> |
|||
<data source="goods"><label>Goods</label></data> |
|||
| image = {{#invoke:InfoboxImageDRAFT|InfoboxImageDRAFT|image={{trim brackets|{{{image|}}}}}|alt={{{image_alt|}}}|size={{{image_size|270px}}}|upright={{{upright|1.45}}}|sizedefault=frameless|maxsize=270px}} |
|||
<data source="menu"><label>Menu</label></data> |
|||
| caption = {{{caption|}}} |
|||
<data source="workers"><label>Workers</label></data> |
|||
<data source="regulars"><label>Regulars</label></data> |
|||
| header1 = Overview information |
|||
<data source="ruler"><label>Ruler</label></data> |
|||
| label2 = {{tooltip|aka|Also known as}} |
|||
</group> |
|||
| data2 = {{{aka|}}} |
|||
<group> |
|||
| rowclass2 = bordered |
|||
<header><center><font color = "#EAD5FC">Appearances</font></center></header> |
|||
| label3 = Location |
|||
<data source="first"><label>First</label></data> |
|||
| data3 = {{{location|}}} |
|||
<data source="last"><label>Last</label></data> |
|||
| rowclass3 = bordered |
|||
</group> |
|||
| label4 = Type |
|||
</infobox><includeonly>{{#Switch:{{{MLP-MOVIE|}}}|Yes=[[Category:My Little Pony: The Movie (1986) places]]}}{{#Switch:{{{ACB|}}}|Yes=[[Category:A Charming Birthday places]]}}{{#Switch:{{{DITC|}}}|Yes=[[Category:Dancing in the Clouds places]]}}{{#Switch:{{{FANFA|}}}|Yes=[[Category:Friends are Never Far Away places]]}}{{#Switch:{{{AVMC|}}}|Yes=[[Category:A Very Minty Christmas places]]}}{{#Switch:{{{TPP|}}}|Yes=[[Category:The Princess Promenade places]]}}{{#Switch:{{{PPATLJ|}}}|Yes=[[Category:Pinkie Pie and the Lady Bug Jamboree places]]}}{{#Switch:{{{TRR|}}}|Yes=[[Category:The Runaway Rainbow places]]}}{{#Switch:{{{GFU|}}}|Yes=[[Category:Greetings from Unicornia]]}}{{#Switch:{{{AVPP|}}}|Yes=[[Category:A Very Pony Place places]]}}{{#Switch:{{{WBTP|}}}|Yes=[[Category:World's Biggest Tea Party places]]}}{{#Switch:{{{MTP|}}}|Yes=[[Category:Meet the Ponies places]]}}{{#Switch:{{{PPSP|}}}|Yes=[[Category:Pinkie Pie's Special Day places]]}}{{#Switch:{{{RDSP|}}}|Yes=[[Category:Rainbow Dash's Special Day places]]}}{{#Switch:{{{SSATMDS|}}}|Yes=[[Category:Star Song and the Magic Dance Shoes places]]}}{{#Switch:{{{FIM-ANI|}}}|Yes=[[Category:Friendship is Magic cartoon places]]}}{{#Switch:{{{FIM-IDW|}}}|Yes=[[Category:Friendship is Magic comic places]]}}{{#Switch:{{{PL|}}}|Yes=[[Category:Pony Life places]]}}{{#Switch:{{{FIM-BOOK|}}}|Yes=[[Category:Friendship is Magic book places]]}}{{#Switch:{{{MS|}}}|Yes=[[Category:Micro-Series places]]}}{{#Switch:{{{FF|}}}|Yes=[[Category:Friends Forever places]]}}{{#Switch:{{{FIE|}}}|Yes=[[Category:FIENDship is Magic places]]}}{{#Switch:{{{LOM|}}}|Yes=[[Category:Legends of Magic places]]}}{{#Switch:{{{SPF|}}}|Yes=[[Category:Spirit of the Forest places]]}}{{#Switch:{{{NK|}}}|Yes=[[Category:Nightmare Knights places]]}}{{#Switch:{{{TTM|}}}|Yes=[[Category:Through the Mirror places]]}}{{#Switch:{{{RR|}}}|Yes=[[Category:Rainbow Rocks places]]}}{{#Switch:{{{FG|}}}|Yes=[[Category:Friendship Games places]]}}{{#Switch:{{{LOE|}}}|Yes=[[Category:Legend of Everfree places]]}}{{#Switch:{{{FOF|}}}|Yes=[[Category:Feats of Friendship places]]}}{{#Switch:{{{DS|}}}|Yes=[[Category:Better Together places]]}}{{#Switch:{{{ROF|}}}|Yes=[[Category:Rollercoaster of Friendship places]]}}{{#Switch:{{{SPD|}}}|Yes=[[Category:Spring Breakdown places]]}}{{#Switch:{{{BGE|}}}|Yes=[[Category:Best Gift Ever places]]}}{{#Switch:{{{HH|}}}|Yes=[[Category:Happy Holidays places]]}}{{#Switch:{{{GUW|}}}|Yes=[[Category:Gift Unwrapped places]]}}</includeonly><noinclude><pre>{{Place |
|||
| |
| data4 = {{{type|}}} |
||
| |
| rowclass4 = bordered |
||
| |
| label5 = {{{leader-type|Leader}}} |
||
| |
| data5 = {{{leader|}}} |
||
| |
| rowclass5 = bordered |
||
| |
| header6 = Historical information |
||
|species = |
|||
| |
| label7 = Founder |
||
| |
| data7 = {{{founder|}}} |
||
| |
| rowclass7 = bordered |
||
| label8 = Founded |
|||
|inhabitants = |
|||
| |
| data8 = {{{founded|}}} |
||
| |
| rowclass8 = bordered |
||
| |
| label9 = Events |
||
| |
| data9 = {{{events|}}} |
||
| |
| rowclass9 = bordered |
||
| |
| label10 = Status |
||
| data10 = {{{status|}}} |
|||
|ruler-title = |
|||
| rowclass10 = bordered |
|||
}}</pre></noinclude><includeonly>[[Category:Places (A to Z)]]{{#if:{{{series|}}}|{{#Switch:{{{series}}}| |
|||
|data11 = {{#if:{{{first|}}}{{{last|}}}| |
|||
|MLP=[[Category:My Little Pony places]] |
|||
{{(!}} style="width: 100%; display: inline-table; border-collapse: collapse" |
|||
|TALES=[[Category:Tales places]] |
|||
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''First'''<br />{{#if: {{{first|}}} | {{{first}}} | —}} |
|||
|G3=[[Category:Generation 3 places]] |
|||
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''Last'''<br />{{#if: {{{last|}}} | {{{last}}} | —}} |
|||
|FIM=[[Category:Friendship is Magic places]] |
|||
{{!)}} |
|||
|EQG=[[Category:Equestria Girls places]] |
|||
}} |
|||
|CROSS=[[Category:Crossover places]] |
|||
}}</onlyinclude><includeonly>[[Category:Using place infobox]]{{#if:{{{Y|}}}|[[Category:{{{Y}}} place debuts]]}}</includeonly><noinclude><br style="clear:both;" />{{documentation}}</noinclude> |
|||
}}}}</includeonly> |
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 = }}