Template:Infobox test: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(106 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table class="infobox location">
{{infobox
<tr>
|autoheaders = y
<th class="name" colspan="2">{{{title|{{PAGENAME}}}}}</th>
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
</tr>
|subheader = {{{tag|}}}
{{#if:{{{tag|}}}|
|image = {{{image|}}}
<tr class="mergedtoprow">
|caption = {{{caption|}}}
<td class="tag {{{tag}}}" colspan="2">{{{tag}}}</td>
 
</tr>
|header1 = 5th Edition Statistics
}}
|label2 = Size
{{#if:{{{image|}}}|
|data2 = {{{size5e|}}}
<tr class="mergedtoprow">
|label3 = Type
<td colspan="2">[[File:{{{image}}}|275px]]</td>
|data3 = {{{type5e|}}}
</tr>
|label4 = Tag(s)
}}
|data4 = {{{tags5e|}}}
{{#if:{{{image-tab|}}}|
|label5 = Typical Alignment
<tr class="mergedtoprow">
|data5 = {{{alignment5e|}}}
<td colspan="2">{{{image-tab}}}</td>
 
</tr>
|header6 = General Information
}}
|label7 = Patron Deity(s)
{{#if:{{{location|}}}|
|data7 = {{{deity|}}}
<tr class="mergedtoprow">
|label8 = Movement
<th>Location</th>
|data8 = {{{movement|}}}
<td>{{{location}}}</td>
|label9 = Vision
</tr>
|data9 = {{{vision|}}}
}}
|label10 = Activity Cycle
{{#if:{{{continent|}}}|
|data10 = {{{sleep_cycle|}}}
<tr class="mergedtoprow">
|label11 = Diet
<th>Continent</th>
|data11 = {{{diet|}}}
<td>{{{continent}}}</td>
|label12 = Average Lifespan
</tr>
|data12 = {{{lifespan|}}}
}}
|label13 = Homeland(s)
{{#if:{{{country|}}}|
|data13 = {{{homeland|}}}
<tr class="mergedtoprow">
|label14 = Intelligence
<th>Country</th>
|data14 = {{{intelligence|}}}
<td>{{{country}}}</td>
|label15 = Language(s)
</tr>
|data15 = {{{language|}}}
}}
|label16 = Subraces
{{#if:{{{nearestcity|}}}|
|data16 = {{{subraces|}}}
<tr class="mergedrow">
|label17 = Favored Climate
<th>Nearest City</th>
|data17 = {{{favored_climate|}}}
<td>{{{nearestcity}}}</td>
|label18 = Favored Terrain
</tr>
|data18 = {{{favored_terrain|}}}
}}
 
{{#if:{{{largestcity|}}}|
|header19 = Appearance
<tr class="mergedrow">
|label20 = Average Height
<th>Largest City</th>
|data20 = {{{height|}}}
<td>{{{largestcity}}}</td>
|label21 = Wingspan
</tr>
|data21 = {{{wingspan|}}}
}}
|label22 = Skin Color(s)
{{#if:{{{population|}}}|
|data22 = {{{skin_colors|}}}
<tr class="mergedrow">
|label23 = Hair Color(s)
<th>Population</th>
|data23 = {{{hair_colors|}}}
<td>{{{population}}}</td>
|label24 = Feather Color(s)
</tr>
|data24 = {{{feathers|}}}
}}
|label25 = Eye Color(s)
{{#if:{{{area|}}}|
|data25 = {{{eye_color|}}}
<tr class="mergedrow">
|label26 = Build
<th>Area</th>
|data26 = {{{build|}}}
<td>{{{area}}}</td>
|label27 = Distinctions
</tr>
|data27 = {{{distinctions|}}}
}}
 
{{#if:{{{owner|}}}|
|aboveclass = mergedtoprow name
<tr class="mergedrow">
|subheaderrowclass1 = mergedbottomrow tag
<th>Owner</th>
|imagerowclass1 = mergedtoprow mergedbottomrow
<td>{{{owner}}}</td>
|rowclass1 = mergedtoprow
</tr>
|rowstyle1 = background:#DFDECF;
}}
|rowclass2 = mergedrow
{{#if:{{{countries|}}}|
|rowclass3 = mergedrow
<tr class="mergedtoprow">
|rowclass4 = mergedrow
<th>Countries</th>
|rowclass5 = mergedbottomrow
<td>{{{countries}}}</td>
|rowclass6 = mergedtoprow
</tr>
|rowstyle6 = background:#DFDECF;
}}
|rowclass7 = mergedrow
{{#if:{{{largestcities|}}}|
|rowclass8 = mergedrow
<tr class="mergedrow">
|rowclass9 = mergedrow
<th>Largest Cities</th>
|rowclass10 = mergedrow
<td>{{{largestcities}}}</td>
|rowclass11 = mergedrow
</tr>
|rowclass12 = mergedrow
}}
|rowclass13 = mergedrow
{{#if:{{{government|}}}|
|rowclass14 = mergedrow
<tr class="mergedtoprow">
|rowclass15 = mergedrow
<th>Government</th>
|rowclass16 = mergedrow
<td>{{{government}}}</td>
|rowclass17 = mergedrow
</tr>
|rowclass18 = mergedbottomrow
}}
|rowclass19 = mergedtoprow
{{#if:{{{capital|}}}|
|rowstyle19 = background:#DFDECF;
<tr class="mergedrow">
|rowclass20 = mergedrow
<th>Capital</th>
|rowclass21 = mergedrow
<td>{{{capital}}}</td>
|rowclass22 = mergedrow
</tr>
|rowclass23 = mergedrow
}}
|rowclass24 = mergedrow
{{#if:{{{leader|}}}|
|rowclass25 = mergedrow
<tr class="mergedrow">
|rowclass26 = mergedrow
<th>Leader</th>
|rowclass27 = mergedbottomrow
<td>{{{leader}}}</td>
}}</includeonly><noinclude>
</tr>
{{Documentation}}
}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
{{#if:{{{languages|}}}|
<tr class="mergedtoprow">
<th>Languages</th>
<td>{{{languages}}}</td>
</tr>
}}
{{#if:{{{setting|}}}|
<tr class="mergedtoprow">
<th>Setting</th>
<td>{{{setting}}}</td>
</tr>
}}
</table>
[[Category:All Locations]]
{{#if:{{{tag|}}}|[[Category:All {{{tag}}}s]]}}
{{#if:{{{setting|}}}|[[Category:All {{{setting}}} Locations]]}}
{{#if:{{{tag|}}}|{{#if:{{{setting|}}}|[[Category:All {{{setting}}} {{{tag}}}s]]}}}}
</includeonly>
<noinclude>
== Blank Templates ==
=== Buildings/Areas ===
==== Image ====
|tag = Building/Area<br />
|image = <br />
|location = <br />
|area = <br />
|owner = <br />
|setting =
==== Image-Tab ====
|tag = Building/Area<br />
|image-tab = <br />
|location = <br />
|area = <br />
|owner = <br />
|setting =
=== Cities/Towns/Villages ===
==== Image ====
|tag = City/Town/Village<br />
|image = <br />
|country = <br />
|population = <br />
|area = <br />
|government = <br />
|leader = <br />
|languages = <br />
|setting =
==== Image-Tab ====
|tag = City/Town/Village<br />
|image-tab = <br />
|country = <br />
|population = <br />
|area = <br />
|government = <br />
|leader = <br />
|languages = <br />
|setting =
=== Forests ===
==== Image ====
|tag = Forest<br />
|image = <br />
|location = <br />
|nearestcity = <br />
|area = <br />
|setting =
==== Image-Tab ====
|tag = Forest<br />
|image-tab = <br />
|location = <br />
|nearestcity = <br />
|area = <br />
|setting =
=== Countries ===
==== Image ====
|tag = Country<br />
|image = <br />
|continent = <br />
|largestcity = <br />
|population = <br />
|area = <br />
|government = <br />
|capital = <br />
|leader = <br />
|languages = <br />
|setting =
==== Image-Tab ====
|tag = Country<br />
|image-tab = <br />
|continent = <br />
|largestcity = <br />
|population = <br />
|area = <br />
|government = <br />
|capital = <br />
|leader = <br />
|languages = <br />
|setting =
=== Continents ===
==== Image ====
|tag = Continent<br />
|image = <br />
|location = <br />
|population = <br />
|area = <br />
|countries = <br />
|largestcities = <br />
|languages = <br />
|setting =
==== Image-Tab ====
|tag = Continent<br />
|image = <br />
|location = <br />
|population = <br />
|area = <br />
|countries = <br />
|largestcities = <br />
|languages = <br />
|setting =
</noinclude>
</noinclude>

Latest revision as of 14:26, 29 May 2022