Vorlage:Galerie Guides: Unterschied zwischen den Versionen

Aus DotAWiki
Zur Navigation springenZur Suche springen
K
 
Zeile 6: Zeile 6:
  
 
-->
 
-->
<onlyinclude>
+
<onlyinclude><includeonly>
<includeonly>
+
|width=30|{{#if: {{{6}}}|{{#if: {{{5|}}}|{{#if: {{#pos:{{{5}}}|Datei|0}} |[[{{{5}}}|link={{{2}}}|30px]]|{{icon|{{{5}}}|link={{{2}}}|30px}}}}|{{icon|{{{2}}}|30px}}}}|{{#if: {{{5|}}}|{{#if: {{#pos:{{{5}}}|Datei|0}}|[[{{{5}}}|link={{{2}}}|40px]]|{{icon|{{{5}}}|link={{{2}}}|40px}}}}|{{icon|{{{2}}}|40px}}}}}}
|width=30|  
 
{{#if: {{{6}}}|{{#if: {{{5|}}}|{{#if: {{#pos:{{{5}}}|Datei|0}} |[[{{{5}}}|link={{{2}}}|30px]]|{{icon|{{{5}}}|link={{{2}}}|30px}}}}|{{icon|{{{2}}}|30px}}}}|{{#if: {{{5|}}}|{{#if: {{#pos:{{{5}}}|Datei|0}}|[[{{{5}}}|link={{{2}}}|40px]]|{{icon|{{{5}}}|link={{{2}}}|40px}}}}|{{icon|{{{2}}}|40px}}}}}}
 
 
|style="padding-left:6px;font-size:1.1em"|[[{{{1}}}]] {{#ifeq: {{{4}}} | wahr |  - <span align=right style="background-color:#c22020">&nbsp; Entwurf &nbsp;</span> |  }}
 
|style="padding-left:6px;font-size:1.1em"|[[{{{1}}}]] {{#ifeq: {{{4}}} | wahr |  - <span align=right style="background-color:#c22020">&nbsp; Entwurf &nbsp;</span> |  }}
 
|style="text-align:center"|{{{3}}}
 
|style="text-align:center"|{{{3}}}
 
|{{#if: {{{7|}}} | &nbsp; {{{7}}} | }}
 
|{{#if: {{{7|}}} | &nbsp; {{{7}}} | }}
 
|-
 
|-
</includeonly>
+
</includeonly></onlyinclude>
</onlyinclude>
 
 
<!--  
 
<!--  
  

Aktuelle Version vom 8. Juni 2011, 14:17 Uhr


Dies ist eine Vorlage, die zur Formatierung der Darstellung von semantischen Abfragen dient, sie wird in Guides/Helden usw. verwendet.

Sie erzeugt Tabellenzeilen nach folgendem Schema:


Beispiel Necronomicon.gif Vorlagen-Guide -   Entwurf   6.83d
nötige
Attribute
{{{2}}}
{{{5}}}
{{{6}}}
[[ {{{1}}} ]] -   {{{4}}}   {{{3}}} {{{7}}}


Anmerkung zur Entwurfskennzeichnung
Ist der Artikel/Guide nicht als Entwurf gekennzeichnet, ist also {{{4}}} == falsch, so wird natürlich auch kein roter Kasten angezeigt.

Attribut-Legende

{{{1}}} {{{2}}} {{{3}}} {{{4}}} {{{5}}} {{{6}}} {{{7}}}
Titel
(automatisch)
?Guide für ?Artikelversion ?Entwurf ?Guideicon ?Gibtsnicht=nicht vorhandenes Attribut, sorgt für 40px-Icons ???

Icon-Mechanismus

Die Vorschrift, nach der entschieden wird, wie das Icon angezeigt wird, kann schematisch so dargestellt werden:

Existiert {{{6}}}?
JA NEIN
Existiert Guideicon? Selbes Verfahren wie links, nur dass statt 30px-Icons 40px-Icons verwendet werden
JA NEIN
Kommt "Datei" im Guideicon-string vor ? {{icon|Guide für|30px}}
JA NEIN
[[Guideicon|30px]] {{icon|Guideicon|30px}}