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:CatCatalogue"
(new) |
(determine titles smarter) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
:- alle Kataloge | :- alle Kataloge | ||
:- alle Kataloge dieses Herstellers | :- alle Kataloge dieses Herstellers | ||
+ | |||
+ | Es erfolgt eine automatische Zuordnung zur '''[[:Category:Catalogues|Kategorie:Kataloge]]'''. | ||
Beispiel: | Beispiel: | ||
Line 18: | Line 20: | ||
{{CatCatalogue}} | {{CatCatalogue}} | ||
</pre> | </pre> | ||
− | + | {{#dplvar:set|_TEST|Schmidt 2008}} | |
− | + | ergibt (Beispiel für die Katalogseite "Schmidt 2008") als Header der Seite: | |
− | + | <h1>{{JW:Puzzle-Catalogue}} '''"{{#dplvar:_TEST}}"'''</h1> | |
− | + | <!-- find pos of year -->{{#dplvar:set|_x|{{#if:{{#pos:{{#dplvar:_TEST}}|19}}|{{#pos:{{#dplvar:_TEST}}|19}}|{{#pos:{{#dplvar:_TEST}}|20}}}}}}<!-- | |
− | + | -- set variable for Producer -->{{#dplvar:set|_PR|{{#sub:{{#dplvar:_TEST}}|0|{{#expr:{{#dplvar:_x}}}}}}}}<!-- | |
− | + | --><div style="border:2px solid black;border-radius:5px;padding:2px;"> | |
+ | {| style="background-color:Gainsboro; display:block;" | ||
+ | | rowspan="2" | [[File:Cat-Catalogue.svg|80px|{{JW:Puzzle-Catalogue}}|link=]] || <div style="background-color:Gainsboro; display:block;">'''{{Project:Puzzle-Producer}} : ''' [[:Category:Producer|{{Project:Cat-Header-All}}]] • [[:Category:{{#dplvar:_PR}}|{{#dplvar:_PR}}]]</div> | ||
+ | |- | ||
+ | | <div style="margin:5px; display:block; text-align:left; background:Gainsboro;">'''{{JW:Puzzle-Catalogue}} : ''' [[:Category:Catalogues|{{Project:Cat-Header-All}}]]{{#dpl: | ||
+ | |category=Catalogues | ||
+ | |debug=0 | ||
+ | |titlematch=%{{#dplvar:_PR}} % | ||
+ | |ordermethod=sortkey | ||
+ | |format=, • [[%TITLE%|²{#sub:%TITLE%¦²{#dplvar:_x}² }²]],, | ||
+ | }}</div> | ||
+ | |}</div> | ||
+ | [[Category:Category templates]]</noinclude><includeonly><!-- | ||
+ | <!-- find pos of year -->{{#dplvar:set|_x|{{#if:{{#pos:{{PAGENAME}}|19}}|{{#pos:{{PAGENAME}}|19}}|{{#pos:{{PAGENAME}}|20}}}}}}<!-- | ||
+ | -- set variable for Producer -->{{#dplvar:set|_PR|{{#sub:{{PAGENAME}}|0|{{#expr:{{#dplvar:_x}}}}}}}}<!-- | ||
-->{{DISPLAYTITLE:{{JW:Puzzle-Catalogue}} '''"{{PAGENAME}}"'''}}<!-- | -->{{DISPLAYTITLE:{{JW:Puzzle-Catalogue}} '''"{{PAGENAME}}"'''}}<!-- | ||
− | --><div style=" | + | --><div style="border:2px solid black;border-radius:5px;padding:2px;"> |
− | {| | + | {| style="background-color:Gainsboro; display:block;" |
− | | rowspan="2" | [[File:Cat Catalogue. | + | | rowspan="2" | [[File:Cat-Catalogue.svg|80px|{{JW:Puzzle-Catalogue}}|link=]] || <div style="margin:5px; display:block; text-align:left; background:Gainsboro;">'''{{Project:Puzzle-Producer}} : ''' [[:Category:Producer|{{Project:Cat-Header-All}}]] • [[:Category:{{#dplvar:_PR}}|{{#dplvar:_PR}}]]</div> |
|- | |- | ||
| <div style="margin:5px; display:block; text-align:left; background:Gainsboro;">'''{{JW:Puzzle-Catalogue}} : ''' [[:Category:Catalogues|{{Project:Cat-Header-All}}]]{{#dpl: | | <div style="margin:5px; display:block; text-align:left; background:Gainsboro;">'''{{JW:Puzzle-Catalogue}} : ''' [[:Category:Catalogues|{{Project:Cat-Header-All}}]]{{#dpl: | ||
|category=Catalogues | |category=Catalogues | ||
|debug=0 | |debug=0 | ||
− | |titlematch={{#dplvar:_PR}} % | + | |titlematch=%{{#dplvar:_PR}} % |
|ordermethod=sortkey | |ordermethod=sortkey | ||
− | |format=, • [[%TITLE%|%TITLE%]],, | + | |format=, • [[%TITLE%|²{#sub:%TITLE%¦²{#dplvar:_x}² }²]],, |
}}</div> | }}</div> | ||
|}</div>[[Category:Catalogues]]</includeonly> | |}</div>[[Category:Catalogues]]</includeonly> |
Latest revision as of 13:05, 9 December 2019
Vorlage: CatCatalogue
Parameter: keine
Anzeige der Kopfdaten für einen Puzzle-Katalog.
Angezeigt werden:
- Kategorie-Bild
- Links zu
- - alle Hersteller
- - Hersteller zu diesem Katalog (wird aus dem Seitentitel ermittelt)
- - alle Kataloge
- - alle Kataloge dieses Herstellers
Es erfolgt eine automatische Zuordnung zur Kategorie:Kataloge.
Beispiel:
{{CatCatalogue}}
ergibt (Beispiel für die Katalogseite "Schmidt 2008") als Header der Seite: