Szablon:Infobox Set: Różnice pomiędzy wersjami

Z Dominion Wiki Polska
Przejdź do nawigacjiPrzejdź do wyszukiwania
Utworzono nową stronę "<!-- Ripped from Wikipedia -->{{#ifeq:{{{child|}}}|yes||<table cellspacing="3" style="border-spacing: 3px; width:22em; border: 1px solid #AAA; background-color: #F9F9F9;..."
 
Nie podano opisu zmian
Linia 1: Linia 1:
<!-- Ripped from Wikipedia
<!-- Ripped from http://wiki.dominionstrategy.com/ -->{
-->{{#ifeq:{{{child|}}}|yes||<table cellspacing="3" style="border-spacing: 3px; width:22em; border: 1px solid #AAA; background-color: #F9F9F9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!--
{Infobox
Caption
|bodystyle = width:300px;{{{bodystyle|}}}
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!--
|abovestyle = {{{namestyle|}}}
Header
|imagestyle = {{{imagestyle|}}}
-->{{#if:{{{above|}}}|<tr><th colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}">{{{above}}}</th></tr>}}
|headerstyle = background-color:#CCF{{{headerstyle|}}}
}}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!--
|labelstyle = width:125px{{{labelstyle|}}}
  Subheader1
|datastyle = {{{datastyle|}}}
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row
 
|data={{{subheader|{{{subheader1|}}}}}}
|above    = {{#if:{{{link|}}}|[[{{{link}}}|{{{name}}}]]|[[{{{name}}}]]}}
|datastyle={{{subheaderstyle|{{{subheaderstyle1|}}}}}}
 
|class={{{subheaderclass|}}}
|image    = {{{image|{{#ifexist:File:{{{name}}}.jpg|[[File:{{{name}}}.jpg|300px|x300px]]|}}}}}
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}}
|image2  = {{{image2|{{#ifexist:File:{{{name}}}2.jpg|[[File:{{{name}}}2.jpg|300px|x300px]]|}}}}}
}} }}<!--
|data1  = {{#if:{{{image|}}}||{{#ifexist:File:{{{name}}}.jpg||<span class="plainlinks">''Seems that we don't have the box image.<br />Maybe you can help by [{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{name}}}.jpg|PATH}}}} uploading] it?''</span>}}}}
Subheader2
 
-->{{#if:{{{subheader2|}}}|{{Infobox/row
|header2 = Info
|data={{{subheader2}}}
 
|datastyle={{{subheaderstyle|{{{subheaderstyle2|}}}}}}
|label3  = Type
|class={{{subheaderclass|}}}
|data3    = {{{type|}}}
|rowclass={{{subheaderrowclass2|}}}
 
}} }}<!--
|label4  = Icon
Image1
|data4    = {{#ifexist:File:{{{name}}} icon.png|[[File:{{{name}}} icon.png|20px|x20px]]|}}
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
 
|data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}
|label5  = Cards
|datastyle={{{imagestyle|}}}
|data5    = {{{cards|{{#expr:{{{kingdomcards|0}}}+{{{basiccards|0}}}+{{{randomizers|0}}}+{{{blankcards|0}}}+{{{othercards|0}}}}}}}}
|class={{{imageclass|}}}
|label6  = <div style="margin:0 0 0 1.6em">[[Kingdom card|Kingdom]]</div>
  |rowclass={{{imagerowclass1|}}}
|data6    = {{#if:{{{kingdomcards|}}}|<div style="margin:0 0 0 1.6em">{{{kingdomcards|}}} {{#if:{{{kingdomsets|}}}|({{{kingdomsets|}}} sets)}}</div>}}
}} }}<!--
|label7  = <div style="margin:0 0 0 1.6em">[[Basic cards|Basic]]</div>
Image2
|data7    = {{#if:{{{basiccards|}}}|<div style="margin:0 0 0 1.6em">{{{basiccards|}}}</div>}}
-->{{#if:{{{image2|}}}|{{Infobox/row
|label8  = <div style="margin:0 0 0 1.6em">[[Randomizer]]s</div>
  |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}
|data8    = {{#if:{{{randomizers|}}}|<div style="margin:0 0 0 1.6em">{{{randomizers|}}}</div>}}
|datastyle={{{imagestyle|}}}
|label9  = <div style="margin:0 0 0 1.6em">[[Blank Card]](s)</div>
|class={{{imageclass|}}}
|data9    = {{#if:{{{blankcards|}}}|<div style="margin:0 0 0 1.6em">{{{blankcards|}}}</div>}}
  |rowclass={{{imagerowclass2|}}}
|label10 = <div style="margin:0 0 0 1.6em">Other Card(s)</div>
}} }}<!--
|data10  = {{#if:{{{othercards|}}}|<div style="margin:0 0 0 1.6em">
-->{{Infobox/row
{{{othercards|}}}</div>}}
|header={{{header1|}}} |headerstyle={{{headerstyle|}}}
 
|label={{{label1|}}|labelstyle={{{labelstyle|}}}
|label11 = Additional Material(s)
|data={{{data1|}}}     |datastyle={{{datastyle|}}}
|data11  = {{#if:{{{mats|}}}{{{tokens|}}}{{{materials|}}}|{{#if:{{{mats|}}}{{{tokens|}}}|&nbsp;|{{{materials}}}}}}}
  |class={{{class1|}}}   |rowclass={{{rowclass1|}}}
|label12 = <div style="margin:0 0 0 1.6em">[[Mat]]s</div>
}}{{Infobox/row
|data12  = {{#if:{{{mats|}}}|<div style="margin:0 0 0 1.6em">
|header={{{header2|}}} |headerstyle={{{headerstyle|}}}
{{{mats|}}}</div>}}
  |label={{{label2|}}}   |labelstyle={{{labelstyle|}}}
|label13  = <div style="margin:0 0 0 1.6em">[[Token]]s</div>
  |data={{{data2|}}}     |datastyle={{{datastyle|}}}
|data13  = {{#if:{{{tokens|}}}|<div style="margin:0 0 0 1.6em">
|class={{{class2|}}}   |rowclass={{{rowclass2|}}}
{{{tokens|}}}</div>}}
}}{{Infobox/row
|label14 = <div style="margin:0 0 0 1.6em">Others</div>
|header={{{header3|}}} |headerstyle={{{headerstyle|}}}
|data14  = {{#if:{{{materials|}}}|{{#if:{{{mats|}}}{{{tokens|}}}|<div style="margin:0 0 0 1.6em">
|label={{{label3|}}}  |labelstyle={{{labelstyle|}}}
{{{materials|}}}</div>}}}}
|data={{{data3|}}}    |datastyle={{{datastyle|}}}
 
|class={{{class3|}}}  |rowclass={{{rowclass3|}}}
|label15 = Theme(s)
}}{{Infobox/row
|data15   = {{{theme|}}}
|header={{{header4|}}} |headerstyle={{{headerstyle|}}}
 
|label={{{label4|}}}  |labelstyle={{{labelstyle|}}}
|label16 = Release
|data={{{data4|}}}    |datastyle={{{datastyle|}}}
|data16  = {{{release|}}}
|class={{{class4|}}}  |rowclass={{{rowclass4|}}}
 
}}{{Infobox/row
|label17  = Official Rulebook
|header={{{header5|}}} |headerstyle={{{headerstyle|}}}
|data17  = {{#if:{{{rulebook|}}}|[{{{rulebook}}} PDF]}}
|label={{{label5|}}}  |labelstyle={{{labelstyle|}}}
}}<includeonly>{{#if:{{{nocats|}}}||
|data={{{data5|}}}    |datastyle={{{datastyle|}}}
[[Category:Sets]]
|class={{{class5|}}}  |rowclass={{{rowclass5|}}}
[[Category:{{#ifeq:{{{name}}}|Dominion|Base|{{{name}}}}}]]
}}{{Infobox/row
}}</includeonly><noinclude>
|header={{{header6|}}} |headerstyle={{{headerstyle|}}}
{{-}}
|label={{{label6|}}}  |labelstyle={{{labelstyle|}}}
{{doc}}</noinclude>
|data={{{data6|}}}    |datastyle={{{datastyle|}}}
|class={{{class6|}}}  |rowclass={{{rowclass6|}}}
}}{{Infobox/row
|header={{{header7|}}} |headerstyle={{{headerstyle|}}}
|label={{{label7|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data7|}}}    |datastyle={{{datastyle|}}}
|class={{{class7|}}}  |rowclass={{{rowclass7|}}}
}}{{Infobox/row
|header={{{header8|}}} |headerstyle={{{headerstyle|}}}
|label={{{label8|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data8|}}}    |datastyle={{{datastyle|}}}
|class={{{class8|}}}  |rowclass={{{rowclass8|}}}
}}{{Infobox/row
|header={{{header9|}}} |headerstyle={{{headerstyle|}}}
|label={{{label9|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data9|}}}    |datastyle={{{datastyle|}}}
|class={{{class9|}}}  |rowclass={{{rowclass9|}}}
}}{{Infobox/row
|header={{{header10|}}} |headerstyle={{{headerstyle|}}}
|label={{{label10|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data10|}}}    |datastyle={{{datastyle|}}}
|class={{{class10|}}}  |rowclass={{{rowclass10|}}}
}}{{Infobox/row
|header={{{header11|}}} |headerstyle={{{headerstyle|}}}
|label={{{label11|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data11|}}}    |datastyle={{{datastyle|}}}
|class={{{class11|}}}  |rowclass={{{rowclass11|}}}
}}{{Infobox/row
|header={{{header12|}}} |headerstyle={{{headerstyle|}}}
|label={{{label12|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data12|}}}    |datastyle={{{datastyle|}}}
|class={{{class12|}}}  |rowclass={{{rowclass12|}}}
}}{{Infobox/row
|header={{{header13|}}} |headerstyle={{{headerstyle|}}}
|label={{{label13|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data13|}}}    |datastyle={{{datastyle|}}}
|class={{{class13|}}}  |rowclass={{{rowclass13|}}}
}}{{Infobox/row
|header={{{header14|}}} |headerstyle={{{headerstyle|}}}
|label={{{label14|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data14|}}}    |datastyle={{{datastyle|}}}
|class={{{class14|}}}  |rowclass={{{rowclass14|}}}
}}{{Infobox/row
|header={{{header15|}}} |headerstyle={{{headerstyle|}}}
|label={{{label15|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data15|}}}    |datastyle={{{datastyle|}}}
|class={{{class15|}}}  |rowclass={{{rowclass15|}}}
}}{{Infobox/row
|header={{{header16|}}} |headerstyle={{{headerstyle|}}}
|label={{{label16|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data16|}}}    |datastyle={{{datastyle|}}}
|class={{{class16|}}}  |rowclass={{{rowclass16|}}}
}}{{Infobox/row
|header={{{header17|}}} |headerstyle={{{headerstyle|}}}
|label={{{label17|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data17|}}}    |datastyle={{{datastyle|}}}
|class={{{class17|}}}  |rowclass={{{rowclass17|}}}
}}{{Infobox/row
|header={{{header18|}}} |headerstyle={{{headerstyle|}}}
|label={{{label18|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data18|}}}    |datastyle={{{datastyle|}}}
|class={{{class18|}}}  |rowclass={{{rowclass18|}}}
}}{{Infobox/row
|header={{{header19|}}} |headerstyle={{{headerstyle|}}}
|label={{{label19|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data19|}}}    |datastyle={{{datastyle|}}}
|class={{{class19|}}}  |rowclass={{{rowclass19|}}}
}}{{Infobox/row
|header={{{header20|}}} |headerstyle={{{headerstyle|}}}
|label={{{label20|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data20|}}}    |datastyle={{{datastyle|}}}
|class={{{class20|}}}  |rowclass={{{rowclass20|}}}
}}<!-- Below
-->{{#if:{{{below|}}}|<tr><td colspan="2" class="{{{belowclass|}}}" style="text-align:center; {{{belowstyle|}}}">{{{below}}}</td></tr>}}<!--
Navbar
-->{{#if:{{{name|}}}|<tr><td colspan="2" style="text-align:right">{{navbar|{{{name}}}|mini=1}}</td></tr>}}
{{#ifeq:{{{child|}}}|yes||</table>}}{{#switch:{{lc:{{{italic title|¬}}}}}
|¬|no      = <!-- no italic title -->
||force|yes = {{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}}
}}<noinclude><br style="clear:both" />
{{doc}}
</noinclude>

Wersja z 21:48, 13 sty 2017

{ {Infobox |bodystyle = width:300px; |abovestyle = |imagestyle = |headerstyle = background-color:#CCF |labelstyle = width:125px |datastyle =

|above = [[{{{name}}}]]

|image = |image2 = |data1 = Seems that we don't have the box image.
Maybe you can help by uploading it?

|header2 = Info

|label3 = Type |data3 =

|label4 = Icon |data4 =

|label5 = Cards |data5 = 0

|label6 =

|data6 =

|label7 =

|data7 =

|label8 =

|data8 =

|label9 =

|data9 =

|label10 =

Other Card(s)

|data10 =

|label11 = Additional Material(s) |data11 =

|label12 =

|data12 =

|label13 =

|data13 =

|label14 =

Others

|data14 =

|label15 = Theme(s) |data15 =

|label16 = Release |data16 =

|label17 = Official Rulebook |data17 = }}

Szablon:Infobox Set/doc