Difference between revisions of "Template:Headingcs"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<span id="{{{id|}}}"></span> | <span id="{{{id|}}}"></span> | ||
{{#switch: {{{heading|}}} | {{#switch: {{{heading|}}} | ||
| 1 = | | 1 = = | ||
| 2 = | | 2 = == | ||
| 4 = ==== | | 4 = ==== | ||
| = === }} {{{title|}}} {{#switch: {{{heading|}}} | | = === }} {{{title|}}} {{#switch: {{{heading|}}} | ||
| 1 = | | 1 = = | ||
| 2 = | | 2 = == | ||
| 4 = ==== | | 4 = ==== | ||
| = === }}<!--{{#ifeq: {{{heading|}}} | 4 | <div style="margin-bottom: 1ex;"> }}<span id="idheading"></span>{{#if: {{{id|}}} | <span id="{{{id|}}}"></span> }}{{#if: {{{id2|}}} | <span id="{{{id2|}}}"></span> }}{{#if: {{{feature|}}} | <span id="{{{feature|}}}"></span> }}{{#if: {{{feature2|}}} | <span id="{{{feature2|}}}"></span> }}{{#if: {{{feature3|}}} | <span id="{{{feature3|}}}"></span> }}{{#if: {{{feature4|}}} | <span id="{{{feature4|}}}"></span> }}{{#if: {{{figure|}}} | <span id="{{{figure|}}}"></span> }}{{#if: {{{figure2|}}} | <span id="{{{figure2|}}}"></span> }}{{#if: {{{piece|}}} | <span id="{{{piece|}}}"></span> }}{{#if: {{{piece2|}}} | <span id="{{{piece2|}}}"></span> }}{{#if: {{{piece3|}}} | <span id="{{{piece3|}}}"></span> }}{{{{#ifeq: {{{heading|}}} | 4 | GreyStrip | HeadingStrip }}|title={{{title|}}} |heading={{{heading|3}}}|top={{{top|}}}|icon={{#if: | | = === }}<!--{{#ifeq: {{{heading|}}} | 4 | <div style="margin-bottom: 1ex;"> }}<span id="idheading"></span>{{#if: {{{id|}}} | <span id="{{{id|}}}"></span> }}{{#if: {{{id2|}}} | <span id="{{{id2|}}}"></span> }}{{#if: {{{feature|}}} | <span id="{{{feature|}}}"></span> }}{{#if: {{{feature2|}}} | <span id="{{{feature2|}}}"></span> }}{{#if: {{{feature3|}}} | <span id="{{{feature3|}}}"></span> }}{{#if: {{{feature4|}}} | <span id="{{{feature4|}}}"></span> }}{{#if: {{{figure|}}} | <span id="{{{figure|}}}"></span> }}{{#if: {{{figure2|}}} | <span id="{{{figure2|}}}"></span> }}{{#if: {{{piece|}}} | <span id="{{{piece|}}}"></span> }}{{#if: {{{piece2|}}} | <span id="{{{piece2|}}}"></span> }}{{#if: {{{piece3|}}} | <span id="{{{piece3|}}}"></span> }}{{{{#ifeq: {{{heading|}}} | 4 | GreyStrip | HeadingStrip }}|title={{{title|}}} |heading={{{heading|3}}}|top={{{top|}}}|icon={{#if: |
Latest revision as of 06:34, 19 April 2024
Popis
Šablona pro vytvoření nadpisu s obrázkem.
Parametry
title
(povinné): Názevid
aid2
(volitelné): Výchozíidheading
- Kotva HTMLheading
(volitelné): [3
|4
] výchozí3
- Pořadí nadpisu
Vložení a nastavení obrázku
top
(volitelné): Nastavení svislé pozice obrázkuimage
/image2
(volitelné): Obrázek k nadpisufeature
/feature2
/feature3
/feature4
(volitelné): Obrázek k nadpisu z šablony - Featurefigure
/figure2
(volitelné): Obrázek k nadpisu z šablony - Figurepiece
/piece2
/piece3
(volitelné): Obrázek k nadpisu z šablony - Piece
image
/feature
/figure
/piece
/image2
/feature2
/figure2
/piece2
/feature3
/piece3
/feature4
- ukázka jak jsou v šabloně parametry seřazeny za sebouedition
(volitelné): Nastavení edice pro obrázky z šablon "Feature", "Figure" nebo "Piece" (kategorie: Headingcs)sizefeature2
(volitelné): Nastavení velikosti obrázku parametrufeature2
sizefigure2
(volitelné): Nastavení velikosti obrázku parametrufigure2
sizepiece2
(volitelné): Nastavení velikosti obrázku parametrupiece2
Příklady
Kód | Popis |
---|---|
{{Headingcs|title=Lázeňský dům}} |
Příklad |
Lázeňský dům | |
{{Headingcs|id=circus_spaces|title=Kartička Místo pro manéž, figurka šapitó a žetony zvířat|feature=CircusSpace|figure2=BigTop|piece3=AnimalTokens}} |
Příklad s více druhy parametrů |
Kartička Místo pro manéž, figurka šapitó a žetony zvířat | |
{{Headingcs|heading=4|title=Trh}} |
Příklad |
Trh | |
{{Headingcs|heading=4|title=Starosta a vůz|figure=Mayor|figure2=Wagon|sizefigure2=x45px}} |
Příklad |
Starosta a vůz |