Vorlage:Galerie Guides: Unterschied zwischen den Versionen

Aus DotAWiki
Zur Navigation springenZur Suche springen
 
(18 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly><onlyinclude>
+
<!--
|width=30| {{#if: {{{6}}} | {{#if: {{{5|}}} | {{#if:  
+
 
{{#pos:{{{5}}}|Datei|0}} | [[{{{5}}}|40px]] | {{#if: {{{5|}}} | {{icon|{{{5}}}|40px}} | }}}} |  
+
 
{{icon|{{{2}}}|40px}}
+
Ab hier steht der Teil der eingefügt wird:
}}|{{#if: {{{5|}}} | {{#if:  
+
 
{{#pos:{{{5}}}|Datei|0}} | [[{{{5}}}|40px]] | {{#if: {{{5|}}} | {{icon|{{{5}}}|40px}} |  }}}} |  
+
 
{{icon|{{{2}}}|40px}}
+
-->
}}
+
<onlyinclude><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}}}}}}
 
|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}}} | }}
 
|-
 
|-
 
</includeonly></onlyinclude>
 
</includeonly></onlyinclude>
<noinclude>
+
<!--
 +
 
 +
 
 +
Ab hier fängt die Dokumentation an:
 +
 
 +
 
 +
-->
 
Dies ist eine Vorlage, die zur Formatierung der Darstellung von semantischen Abfragen dient, sie wird in [[Guides/Helden]] usw. verwendet.
 
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:
 +
 +
 +
{| align=center width=80% class="stil1"
 +
!width=80px|Beispiel
 +
|width=30|{{icon|Necronomicon|link=Vorlagen-Guide|40px}}
 +
|style="padding-left:6px;font-size:1.1em"|[[Vorlagen-Guide]]  - <span align=right style="background-color:#c22020">&nbsp; Entwurf &nbsp;</span>
 +
|style="text-align:center"|{{#show:Veraltete Artikel|?AktuelleDotA=}}
 +
|{{#if: {{{7|}}} | &nbsp; {{{7}}} | }}
 +
|-
 +
!width=80px|nötige<br />Attribute
 +
|width=30|{{{2}}}<br />{{{5}}}<br />{{{6}}}
 +
|style="padding-left:6px;font-size:1.1em"|[[ {{{1}}} ]] - <span align=right style="background-color:#c22020">&nbsp; {{{4}}} &nbsp;</span>
 +
|style="text-align:center"|{{{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 ==
 +
{| class="stil1" align=center
 +
!{{{1}}}
 +
!{{{2}}}
 +
!{{{3}}}
 +
!{{{4}}}
 +
!{{{5}}}
 +
!{{{6}}}
 +
!{{{7}}}
 +
|-
 +
|style="padding:6px"|Titel<br /><span align=right style="font-size:0.8em">(automatisch)</span>
 +
|style="padding:6px"|?Guide für
 +
|style="padding:6px"|?Artikelversion
 +
|style="padding:6px"|?Entwurf
 +
|style="padding:6px"|?Guideicon
 +
|style="padding:6px"|?Gibtsnicht=nicht vorhandenes Attribut, sorgt für 40px-Icons
 +
|style="padding:6px"| ???
 +
|}
 +
 +
== Icon-Mechanismus ==
 +
Die Vorschrift, nach der entschieden wird, wie das Icon angezeigt wird, kann schematisch so dargestellt werden:
 +
 +
<!-- ehemaliges Struktogramm:
  
Notiz:
 
<nowiki>{{{5}}} = ?Guideicon
 
 
Wenn {{{6}}} existiert, dann mach folgendes mit 30px-Icons, sonst mit 40px-Icons:
 
Wenn {{{6}}} existiert, dann mach folgendes mit 30px-Icons, sonst mit 40px-Icons:
 
:Wenn Guideicon existiert, dann:
 
:Wenn Guideicon existiert, dann:
::Wenn "Datei" im Guideicon-string vorkommt, dann  
+
::Wenn "Datei" im Guideicon-String vorkommt, dann  
::::[[Guideicon|30px]]
+
::::<nowiki>[[Guideicon|30px]]</nowiki>
 
::sonst
 
::sonst
 
::::Wenn Guideicon existiert, dann
 
::::Wenn Guideicon existiert, dann
::::::{{icon|Guideicon|30px}}
+
::::::<nowiki>{{icon|Guideicon|30px}}</nowiki>
 
:sonst
 
:sonst
::{{icon|Guide für|30px}}</nowiki>
+
::<nowiki>{{icon|Guide für|30px}}</nowiki>
 +
 
 +
-->
 +
{|class="stil1" width=80% align=center style="padding:5px;"
 +
!colspan=4|Existiert {{{6}}}?
 +
|-
 +
|colspan=3 align=center style="background-color:#002200;"|JA
 +
|align=center style="background-color:#220000;"|NEIN
 +
|-
 +
!colspan=3|Existiert Guideicon?
 +
|rowspan=5|Selbes Verfahren wie links, nur dass statt 30px-Icons 40px-Icons verwendet werden
 +
|-
 +
|colspan=2 align=center style="background-color:#002200;"|JA
 +
|align=center style="background-color:#220000;"|NEIN
 +
|-
 +
!colspan=2|Kommt "Datei" im Guideicon-string vor ?
 +
|rowspan=3|<nowiki>{{icon|Guide&nbsp;für|30px}}</nowiki>
 +
|-
 +
|align=center style="background-color:#002200;"|JA
 +
|align=center style="background-color:#220000;"|NEIN
 +
|-
 +
|<nowiki>[[Guideicon|30px]]</nowiki>
 +
|<nowiki>{{icon|Guideicon|30px}}</nowiki>
 +
|}
 +
 
  
[[Kategorie:Semantische Vorlage]]
 
[[Kategorie:Formatierung]]
 
  
</noinclude>
+
[[Kategorie:Semantische Vorlage|Gui]]
 +
[[Kategorie:Formatierung|Gui]]

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}}