Es gibt z.Z. Probleme mit einem Update, es ist nur Lesen möglich.
Currently there are issues with the installation, readonly possible for now.

Difference between revisions of "Template:BoxColl"

From Jigsaw-Wiki
Jump to: navigation, search
m (Text replacement - "Vorlage:" to "Template:")
(no text Project:Puzzle-Special-Collections)
 
(12 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
  Template: BoxColl
 
  Template: BoxColl
  Parameter 1: Typ ("F" = Familie, "N" = Name identisch, "M" = Motiv identisch)
+
  Parameter 1: Typ ("F" = Familie, "N" = Name identisch, "P" = Bild identisch)
 
  Parameter 2: Name der Sammlung
 
  Parameter 2: Name der Sammlung
 +
 +
Wird 'Typ' nicht angegeben, wird der Parameter als allgemeine Kategorie angezeigt und zugeordnet.
  
 
Beispiel für eine Familie:
 
Beispiel für eine Familie:
 
  <nowiki>{{BoxColl|F|Neuschwanstein}}</nowiki>
 
  <nowiki>{{BoxColl|F|Neuschwanstein}}</nowiki>
 
ergibt
 
ergibt
{{BoxColl|F|Neuschwanstein}}</noinclude><!--
+
{{BoxColl|F|Neuschwanstein}}
--><includeonly>
+
 
{{#switch:{{{1}}}|F=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:#fffc8d;">'''Familie:''' [[{{{2}}} (F)]]</div>|M=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:#add8e6;">'''Motiv identisch:''' [[{{{2}}} (M)]]</div>|N=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:#ffb6c1;">'''Name identisch:''' [[{{{2}}} (N)]]</div>}}</includeonly>
+
Beispiel ohne Angabe des Typs:
<noinclude>[[Category:Vorlagen]]</noinclude>
+
<pre>
 +
  {{BoxColl|Triangular box}}
 +
  {{BoxColl|Deutschland (C)}}
 +
</pre>
 +
ergibt
 +
{{BoxColl|Triangular box}}
 +
{{BoxColl|Deutschland (C)}}</noinclude><includeonly>{{#switch:{{{1}}}|
 +
F=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:#fffc8d;">[[{{{2}}} (F)]]</div>
 +
|P=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:#add8e6;">[[{{{2}}} (P)]]</div>
 +
|N=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:#ffb6c1;">[[{{{2}}} (N)]]</div>
 +
|#default=<div style="padding:0.4em 0.4em; margin-right:0.5em; display:inline-block; color:#000000; border-radius: 6px; background-color:Gainsboro;">{{#if:{{#pos:{{{1}}}|)}}|[[:Category:{{{1}}}|{{{1}}}]]|[[:Category:{{{1}}}|{{Project:Puzzle-Special-{{{1}}}}}]]}}</div>}}</includeonly>
 +
<noinclude>[[Category:Collection templates]]</noinclude>

Latest revision as of 15:54, 5 May 2022

Anzeige einer farbigen Box für Sammlungen.

Template: BoxColl
Parameter 1: Typ ("F" = Familie, "N" = Name identisch, "P" = Bild identisch)
Parameter 2: Name der Sammlung

Wird 'Typ' nicht angegeben, wird der Parameter als allgemeine Kategorie angezeigt und zugeordnet.

Beispiel für eine Familie:

{{BoxColl|F|Neuschwanstein}}

ergibt

Neuschwanstein (F)


Beispiel ohne Angabe des Typs:

  {{BoxColl|Triangular box}}
  {{BoxColl|Deutschland (C)}}

ergibt

Triangular box
Deutschland (C)