Difference between revisions of "Template: Noble House"

From A Wiki of Ice and Fire
Jump to: navigation, search
m
m (I change from "Lord" to "Head" to be able to better differentiate the titles of the heads of Houses (Lord, Lady, Prince(ss), Master and Ser).)
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<table class="infobox" style="width: 20em; text-align: left">
+
<includeonly>{{Infobox
<caption style="font-size: larger;"><span style="display:none;">'''Title''' </span>'''''{{{name}}}'''''</caption><!--
+
| above        = {{{House_name|{{PAGENAME}}}}}
<table class="infobox" style="width: 20em; text-align: left">
+
| abovestyle    = background: #DEDEE2;
<caption style="font-size: larger;"><span style="display:none;">'''Title''' </span>'''''{{{House_name}}}'''''</caption><!--
+
| image = {{#invoke:InfoboxImage | InfoboxImage | image={{{image| {{#ifeq: {{{Region|}}}|[[Dorne]]|None (Dorne).svg|None.svg}} }}} | size=250px | maxsize=300px | sizedefault=frameless | alt={{{alt|}}} | border=no | suppressplaceholder=no }}[[Category:Houses {{#if:{{{image|}}}|with|without}} COA| ]]
-->{{#if: {{{image|}}} |<tr><td colspan=2 style="text-align: center">{{{image}}}
 
{{#if: {{{image_caption|}}} | <br> {{{image_caption}}} }}</td></tr>}}
 
-->{{#if:{{{Coat_of_Arms|}}}|<tr><th>Coat&nbsp;of&nbsp;Arms</th><td>{{{Coat_of_Arms}}}</td></tr>}}<!--
 
-->{{#if:{{{Words|}}}|<tr><th>Words</th><td>{{{words|}}}</td></tr>}}<!--
 
-->{{#if:{{{Seat|}}}|<tr><th>Seat</th><td>{{{Seat|}}}</td></tr>}}<!--
 
-->{{#if:{{{Current lord|}}}|<tr><th>Current&nbsp;lord</th><td>{{{Current lord|}}}</td></tr>}}<!--
 
-->{{#if:{{{Region|}}}|<tr><th>Region</th><td>{{{Region|}}}</td></tr>}}<!--
 
-->{{#if:{{{Title|}}}|<tr><th>Title</th><td>{{{Title|}}}</td></tr>}}<!--
 
-->{{#if:{{{Heir|}}}|<tr><th>Heir</th><td>{{{Heir}}}</td></tr>}}<!--
 
-->{{#if:{{{Overlord|}}}|<tr><th>{{nowrap|Overlord(s)}}</th><td>{{{Overlord|}}}</td></tr>}}<!--
 
-->{{#if:{{{Ancestral_weapon|}}}|<tr><th>{{nowrap|Ancestral&nbsp;weapon(s)}}</th><td>{{{Ancestral_weapon|}}}</td></tr>}}
 
<!--
 
-->{{#if:{{{Cadet_branch|}}}|<tr><th>Cadet&nbsp;branch</th><td>{{{Cadet_branch}}}</td></tr>}}<!--
 
-->{{#if:{{{Founded_in|}}}|<tr><th>Founded&nbsp;in</th><td>{{{Founded_in|}}}</td></tr>}}<!--
 
-->{{#if:{{{Founder|}}}|<tr><th>Founder</th><td>{{{Founder|}}}</td></tr>}}<!--
 
-->{{#if:{{{Died_out in|}}}|<tr><th>Died&nbsp;out&nbsp;in</th><td>{{{Died_out in|}}}</td></tr>}}<!--
 
  
</table><noinclude>
+
| caption = {{{image_caption|}}}
 +
| captionstyle = font-size: 130%; margin-bottom:10px;
  
 +
| label3 = Coat of arms
 +
| data3 = {{{Coat_of_arms|}}}
 +
| label4 = Words
 +
| data4 = {{{Words|}}}
 +
| label5 = Seat
 +
| data5 = {{{Seat|}}}
 +
| label6 = Head
 +
| data6 = {{{Current_Lord|}}}
 +
| label7 = Region
 +
| data7 = {{{Region|}}}
 +
| label8 = Title
 +
| data8 = {{{Title|}}}
 +
| label9 = Heir
 +
| data9 = {{{Heir|}}}
 +
| label10 = Overlord
 +
| data10 = {{{Overlord|}}}
 +
| label11 = Cadet Branch
 +
| data11 = {{{Cadet_branch|}}}
 +
| label12 = Ancestral Weapon
 +
| data12 = {{{Ancestral_weapon|}}}
 +
| label13 = Founder
 +
| data13 = {{{Founder|}}}
 +
| label14 = Founded
 +
| data14 = {{{Founded|{{{Founded_in|}}}}}}
 +
| label15 = Died out
 +
| data15 = {{{Died_out|}}}
 +
}}</includeonly><noinclude>
 +
 +
<!-- Example -->
 +
{{Noble House
 +
| House_name = House name
 +
| image_caption = image caption
 +
| Coat_of_arms = text
 +
| Words = text
 +
| Seat = text
 +
| Current_Lord = text
 +
| Region = text
 +
| Title = text
 +
| Heir = text
 +
| Overlord = text
 +
| Ancestral_weapon = text
 +
| Cadet_branch = text
 +
| Founded = {{Date|xxx}} or Age
 +
| Founder = text
 +
| Died_out = {{Date|xxx}} or Age
 +
}}
 
==Usage==
 
==Usage==
 +
Quick copy/pate infobox code for a new house entry:
 +
<pre>
 +
{{Noble House
 +
| House_name =
 +
| image        =
 +
| image_caption =
 +
| Coat_of_arms =
 +
| Words =
 +
| Seat =
 +
| Current_Lord =
 +
| Region =
 +
| Title =
 +
| Heir =
 +
| Overlord =
 +
| Ancestral_weapon =
 +
| Cadet_branch =
 +
| Founded =
 +
| Founder =
 +
| Died_out =
 +
}}</pre>
 +
  
<pre style="width:35em">
+
Note:Parameters which get no value are not shown when the template is used.<br />
{{Noble House
+
you can see a preview on your right side.
| House_name =
 
| image =
 
| image_caption =
 
| Coat_of_Arms =
 
| Words =
 
| Seat =
 
| Current lord =
 
| Region =
 
| Title =
 
| Heir =
 
| Overlord =
 
| Ancestral_weapon=
 
| Cadet_branch =
 
| Founded_in =
 
| Founder =
 
| Died_out in =
 
}}
 
</pre>
 
  
See the talk page for more thorough documentation.
+
[[Category:Infobox templates|Noble House]]</noinclude>
Please do not make major changes to the infobox without proposing and discussing it on the talk page first.
 
</noinclude>
 

Revision as of 15:11, 4 August 2020


House name
None.svg
text
Coat of arms text
Seat text
Head text
Region text
Title text
Heir text
Overlord text
Cadet branch text
Ancestral weapon text
Founder text
Founded xxx AC or Age
Died out xxx AC or Age

Usage

Quick copy/pate infobox code for a new house entry:

{{Noble House 
| House_name 	=
| image         = 
| image_caption = 
| Coat_of_arms 	=
| Words		=
| Seat		=
| Current_Lord 	=
| Region 	=
| Title		=
| Heir		=
| Overlord 	=
| Ancestral_weapon =
| Cadet_branch 	=
| Founded 	=
| Founder 	=
| Died_out 	=
}}


Note:Parameters which get no value are not shown when the template is used.
you can see a preview on your right side.