Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Tess list entry: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Tess list entry/styles.css"/><div class="template-tess-list-entry">
<includeonly><templatestyles src="Tess list entry/styles.css"/><div class="template-tess-list-entry">
<h{{#if: {{{TitleLevel|}}}|{{{TitleLevel}}}|2}} class="template-tess-list-entry-title">{{{Title}}}</h{{#if: {{{TitleLevel|}}}|{{{TitleLevel}}}|2}}>{{#if: {{{Subtitle|}}}|<div class="template-tess-list-entry-subtitle">{{{Subtitle}}}</div>}}<div class="template-tess-list-entry-main"><div class="template-tess-list-entry-image">[[File:{{{Image}}}{{#if: {{{ImageDescription|}}}|{{!}}{{{ImageDescription}}}}}{{#if: {{{ImageAlt|}}}|{{!}}alt={{{ImageAlt}}}}}|thumb]]</div><div class="template-tess-list-entry-labels"><div class="template-tess-list-entry-label">{{{Label1}}} - {{{Field1}}}</div><div class="template-tess-list-entry-label">{{{Label2}}} - {{{Field2}}}</div><div class="template-tess-list-entry-label">{{{SubLabel}}} - {{{SubField}}}</div><div class="template-tess-list-entry-label">{{{OptionalLabel1}}} - {{{OptionalField1}}}</div><div class="template-tess-list-entry-label">{{{OptionalLabel2}}} - {{{OptionalField2}}}</div><div class="template-tess-list-entry-label">{{{OptionalLabel3}}} - {{{OptionalField3}}}</div><div class="template-tess-list-entry-label">{{{OptionalLabel4}}} - {{{OptionalField4}}}</div><div class="template-tess-list-entry-label">{{{OptionalLabel5}}} - {{{OptionalField5}}}</div></div></div>{{#if:{{{Description|}}}|<div class="template-tess-list-entry-description">{{{Description}}}</div>}}
<h{{#if: {{{TitleLevel|}}}|{{{TitleLevel}}}|3}} class="template-tess-list-entry-title">{{{Title}}}</h{{#if: {{{TitleLevel|}}}|{{{TitleLevel}}}|3}}>{{#if: {{{Subtitle|}}}|<div class="template-tess-list-entry-subtitle">{{{Subtitle}}}</div>}}<div class="template-tess-list-entry-main"><div class="template-tess-list-entry-image">[[File:{{{Image}}}{{#if: {{{ImageDescription|}}}|{{!}}{{{ImageDescription}}}}}{{#if: {{{ImageAlt|}}}|{{!}}alt={{{ImageAlt}}}}}|300px]]</div><div class="template-tess-list-entry-labels">{{#if:{{{Field1|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{Label1}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{Field1}}}</span></div>}}{{#if:{{{Field2|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{Label2}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{Field2}}}</span></div>}}{{#if:{{{SubField|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{SubLabel}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{SubField}}}</span></div>}}{{#if:{{{OptionalField1|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{OptionalLabel1}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{OptionalField1}}}</span></div>}}{{#if:{{{OptionalField2|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{OptionalLabel2}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{OptionalField2}}}</span></div>}}{{#if:{{{OptionalField3|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{OptionalLabel3}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{OptionalField3}}}</span></div>}}{{#if:{{{OptionalField4|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{OptionalLabel4}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{OptionalField4}}}</span></div>}}{{#if:{{{OptionalField5|}}}|<div class="template-tess-list-entry-label"><span class="template-tess-list-entry-label-part">{{{OptionalLabel5}}}</span><span class="template-tess-list-entry-label-space"></span><span class="template-tess-list-entry-label-part">{{{OptionalField5}}}</span></div>}}</div></div>{{#if:{{{Description|}}}|<div class="template-tess-list-entry-description">{{{Description}}}</div>}}
</div></includeonly><noinclude>
</div>
Used by [[Template:Star]]. Retains backwards compatibility with [[Template:Nice List Box]].
</includeonly><noinclude>

==Example==
<syntaxhighlight lang="wikitext" copy>
{{Tess list entry
{{Tess list entry
|Title=Tess
|Title=Sol
|Image=Finale.jpg
|Subtitle=Amaranth lega cy
|Label1=Type
|Image=Glypht.png
|Field1=Yellow Dwarf
|ImageDescription=aakfgasdkgrf
|Label2=Native Species
|ImageAlt=sgasdg
|Field2=Humans
|Description=asdgd
|Description=Sol is a medium-sized star in the Milky Way Galaxy. It has a population of 8 billion and a GDP of 100 Trillion USD, the most widely traded currency therein. Over 200 countries lay claim to the Earth, its capital world. As per treaty, no country officially controls other bodies, but this could change as rocket technology advances.
|OptionalLabel1=Planets
|OptionalField1=Mercury, Venus, Earth, Mars, Ceres, Jupiter, Saturn, Uranus, Neptune, Pluto, Eris, Persephone
|OptionalLabel2=Major Moons
|OptionalField2=Luna, Ganymede, Callisto, Europa, Io, Titan, Rhea, Iapetus, Titania, Oberon, Triton, Melinoe, Zagreus
|OptionalLabel3=National Affiliations
|OptionalField3=[[File:Flag of the United Nations.png|30px|link=|alt=]] United Nations
}}
</syntaxhighlight>
{{Tess list entry
|Title=Sol
|Image=Finale.jpg
|Label1=Type
|Field1=Yellow Dwarf
|Label2=Native Species
|Field2=Humans
|Description=Sol is a medium-sized star in the Milky Way Galaxy. It has a population of 8 billion and a GDP of 100 Trillion USD, the most widely traded currency therein. Over 200 countries lay claim to the Earth, its capital world. As per treaty, no country officially controls other bodies, but this could change as rocket technology advances.
|OptionalLabel1=Planets
|OptionalField1=Mercury, Venus, Earth, Mars, Ceres, Jupiter, Saturn, Uranus, Neptune, Pluto, Eris, Persephone
|OptionalLabel2=Major Moons
|OptionalField2=Luna, Ganymede, Callisto, Europa, Io, Titan, Rhea, Iapetus, Titania, Oberon, Triton, Melinoe, Zagreus
|OptionalLabel3=National Affiliations
|OptionalField3=[[File:Flag of the United Nations.png|30px|link=|alt=]] United Nations
}}
}}
</noinclude>
</noinclude>

Latest revision as of 03:09, June 29, 2025

Used by Template:Star. Retains backwards compatibility with Template:Nice List Box.

Example

{{Tess list entry
|Title=Sol
|Image=Finale.jpg
|Label1=Type
|Field1=Yellow Dwarf
|Label2=Native Species
|Field2=Humans
|Description=Sol is a medium-sized star in the Milky Way Galaxy. It has a population of 8 billion and a GDP of 100 Trillion USD, the most widely traded currency therein. Over 200 countries lay claim to the Earth, its capital world. As per treaty, no country officially controls other bodies, but this could change as rocket technology advances.
|OptionalLabel1=Planets
|OptionalField1=Mercury, Venus, Earth, Mars, Ceres, Jupiter, Saturn, Uranus, Neptune, Pluto, Eris, Persephone
|OptionalLabel2=Major Moons
|OptionalField2=Luna, Ganymede, Callisto, Europa, Io, Titan, Rhea, Iapetus, Titania, Oberon, Triton, Melinoe, Zagreus
|OptionalLabel3=National Affiliations
|OptionalField3=[[File:Flag of the United Nations.png|30px|link=|alt=]] United Nations
}}

Sol

Sol is a medium-sized star in the Milky Way Galaxy. It has a population of 8 billion and a GDP of 100 Trillion USD, the most widely traded currency therein. Over 200 countries lay claim to the Earth, its capital world. As per treaty, no country officially controls other bodies, but this could change as rocket technology advances.
Contents