Vorlage:BD-Satz-Kopf
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
(Der Versionsvergleich bezieht 107 dazwischenliegende Versionen mit ein.) | |||
Zeile 1: | Zeile 1: | ||
- | <noinclude> | + | <noinclude>{{tpldoc|section=descstart}} |
- | {| | + | |
- | + | ||
|Name: | |Name: | ||
- | |BD-Satz-Kopf | + | |'''BD-Satz-Kopf''' |
- | | | + | {{tpldoc|section=descnewrow}} |
|Beschreibung: | |Beschreibung: | ||
|Diese Vorlage erzeugt die Kopfzeile der [[Hilfe:Bearbeiten des Inhaltes#Bearbeiten der Zusammenfassung|Bogenzusammenfassung]]. | |Diese Vorlage erzeugt die Kopfzeile der [[Hilfe:Bearbeiten des Inhaltes#Bearbeiten der Zusammenfassung|Bogenzusammenfassung]]. | ||
- | | | + | {{tpldoc|section=descnewrow}} |
|Parameter: | |Parameter: | ||
| | | | ||
- | ; Gebiet : Sammelgebiet, zu die Marken oder Satz gehört. Zulässige Bezeichnungen siehe Vorlage [[Vorlage:SeiteLink|SeiteLink]] Parameter ''Gebiet''. | + | ; Gebiet : Sammelgebiet, zu die Marken oder Satz gehört. Zulässige Bezeichnungen siehe Vorlage [[Vorlage:SeiteLink|SeiteLink]] Parameter ''Gebiet''. |
- | ; | + | ; Gebiet1 : Untergeordnetes Gebiet zum Sammelgebiet. Siehe Vorlage [[Vorlage:SeiteLink|SeiteLink]] Parameter ''Gebiet1''. |
- | ; Anlass : Kurze Beschreibung des Ausgabeanlass. | + | ; MiNr : Katalognummer(n) der Marke oder des Satzes. |
- | + | ; MiNr1 : Unternummer zur Katalognummer(n) | |
- | + | ; Anlass : Kurze Beschreibung des Ausgabeanlass. | |
- | + | ; KatNrText: Text der vor der Katalognummer (MiNr/MiNr1) angezeigt werden soll. Standart ist "KatNr.". | |
- | {| | + | ; KatNrText1: Text der anstatt der Katalognummer angezeigt werden soll. Standart ist "KatNr. ''MiNr[/MiNr1]''". |
- | | | + | {{tpldoc|section=descend}} |
+ | {{tpldoc|section=exmplstart}} | ||
|<pre> | |<pre> | ||
{{BD-Satz-Kopf |Gebiet=Bund |MiNr=123 |Anlass=Freimarken: Posthorn }} | {{BD-Satz-Kopf |Gebiet=Bund |MiNr=123 |Anlass=Freimarken: Posthorn }} | ||
{{BD-Satz-Abschn |Titel=Abc }} | {{BD-Satz-Abschn |Titel=Abc }} | ||
|Beliebiger Text... | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
{{BD-Satz-Fuss }} | {{BD-Satz-Fuss }} | ||
</pre> | </pre> | ||
- | | | + | {{tpldoc|section=exmplnewrow}} |
|{{BD-Satz-Kopf |Gebiet=Bund |MiNr=123 |Anlass=Freimarken: Posthorn }} | |{{BD-Satz-Kopf |Gebiet=Bund |MiNr=123 |Anlass=Freimarken: Posthorn }} | ||
{{BD-Satz-Abschn |Titel=Abc }} | {{BD-Satz-Abschn |Titel=Abc }} | ||
|Beliebiger Text... | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
{{BD-Satz-Fuss }} | {{BD-Satz-Fuss }} | ||
- | |} | + | {{tpldoc|section=exmplnewrow}} |
- | </noinclude><includeonly>{|style="background:#C0C0C0" cellpadding="6" cellspacing="1" width="100%" | + | |<pre> |
+ | {{BD-Satz-Kopf |Gebiet=VgnBnd |Gebiet1=Weihnachtssiegelmarke |MiNr=1959 |KatNrText=Jahr }} | ||
+ | {{BD-Satz-Abschn |Titel=Abc }} | ||
+ | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
+ | {{BD-Satz-Fuss }} | ||
+ | </pre> | ||
+ | {{tpldoc|section=exmplnewrow}} | ||
+ | |{{BD-Satz-Kopf |Gebiet=VgnBnd |Gebiet1=Weihnachtssiegelmarke |MiNr=1959 |KatNrText=Jahr }} | ||
+ | {{BD-Satz-Abschn |Titel=Abc }} | ||
+ | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
+ | {{BD-Satz-Fuss }} | ||
+ | {{tpldoc|section=exmplnewrow}} | ||
+ | |<pre> | ||
+ | {{BD-Satz-Kopf |Gebiet=DDRBM |Gebiet1=FDJ |MiNr=27-32 |MiNr1=1968 |Anlass=... }} | ||
+ | {{BD-Satz-Abschn |Titel=Abc }} | ||
+ | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
+ | {{BD-Satz-Fuss }} | ||
+ | </pre> | ||
+ | {{tpldoc|section=exmplnewrow}} | ||
+ | |{{BD-Satz-Kopf |Gebiet=DDRBM |Gebiet1=FDJ |MiNr=27-32 |MiNr1=1968 |Anlass=... }} | ||
+ | {{BD-Satz-Abschn |Titel=Abc }} | ||
+ | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
+ | {{BD-Satz-Fuss }} | ||
+ | {{tpldoc|section=exmplend}} | ||
+ | </noinclude><includeonly><nowiki | ||
+ | /><html><script type="text/javascript"> | ||
+ | // Check if the printable version of the page is opened | ||
+ | var sQueryString = window.location.search; | ||
+ | var urlParams = new URLSearchParams(sQueryString); | ||
+ | var isPrintable = false; | ||
+ | if (urlParams.has('printable')) | ||
+ | if (urlParams.get('printable') == 'yes') | ||
+ | isPrintable = true; | ||
+ | console.log('sQueryString = ',sQueryString); | ||
+ | console.log('isPrintable = ',isPrintable); | ||
+ | // Template: BD-Satz-Kopf | ||
+ | Gebiet = '</html>{{{Gebiet}}}<html>'; | ||
+ | Gebiet1 = '</html>{{{Gebiet1|}}}<html>'; | ||
+ | BogenListe = []; | ||
+ | bvSessionID = ''+Math.round(Math.random()*Math.pow(2,32)); | ||
+ | bvStatus = 0; // 0 = BV deaktiviert; 1 = BV aktiv und angezeigt; 2 = BV aktiv aber ausgeblendet | ||
+ | if (wgUserGroups !== null) { | ||
+ | for (var g = 0; g < wgUserGroups.length; g++) | ||
+ | if (wgUserGroups[g] == 'GBV') bvStatus = 1; | ||
+ | } | ||
+ | // Cannot use && because the Wiki parser replaces all & by & !!! | ||
+ | if (bvStatus > 0) | ||
+ | if (localStorage.getItem('BVConfig_EinAus') == 'AUS') | ||
+ | bvStatus = 2; | ||
+ | function ZeigeBogen(sBg) | ||
+ | { | ||
+ | var nBgIdx = -1; | ||
+ | for (var b=0; b<BogenListe.length; b++) { | ||
+ | if (BogenListe[b].Bg == sBg) | ||
+ | nBgIdx = b; | ||
+ | } | ||
+ | var eSpanNode = document.getElementById('BogenBild1.'+BogenListe[nBgIdx].KatNr); | ||
+ | if (eSpanNode) { | ||
+ | var sBgAlt = (eSpanNode.hasAttribute('bgnr')?eSpanNode.getAttribute('bgnr'):''); | ||
+ | var eANode = 0; | ||
+ | var eImgNode = 0; | ||
+ | if (nBgIdx >= 0) { | ||
+ | for (var n=0; n<eSpanNode.childNodes.length; n++) { | ||
+ | var eNode = document.getElementById('BogenBild1.'+BogenListe[nBgIdx].KatNr).childNodes[n]; | ||
+ | if (eNode.nodeName == 'A') { | ||
+ | eANode = eNode; | ||
+ | for (var m=0; m<eANode.childNodes.length; m++) { | ||
+ | var eNode1 = eANode.childNodes[m]; | ||
+ | if (eNode1.nodeName == 'IMG') | ||
+ | eImgNode = eNode1; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if (nBgIdx >= 0) { | ||
+ | if (sBgAlt != '') { | ||
+ | var eBDSatzZeileAlt = document.getElementById('BD-Satz-BDZeile-'+sBgAlt); | ||
+ | if (eBDSatzZeileAlt) { | ||
+ | eBDSatzZeileAlt.innerHTML = '« '; | ||
+ | eBDSatzZeileAlt.title = 'Bogen anzeigen'; | ||
+ | } | ||
+ | } | ||
+ | eSpanNode.setAttribute('bgnr',sBg); | ||
+ | if (eImgNode) | ||
+ | eImgNode.src = BogenListe[nBgIdx].Bild; | ||
+ | if (eANode) { | ||
+ | eANode.href = BogenListe[nBgIdx].Link; | ||
+ | eANode.title = BogenListe[nBgIdx].Titel; | ||
+ | } | ||
+ | var eBDSatzZeile = document.getElementById('BD-Satz-BDZeile-'+sBg); | ||
+ | if (eBDSatzZeile) { | ||
+ | eBDSatzZeile.innerHTML = '<span style="color:blue;"><b>◄</b></span>'; | ||
+ | eBDSatzZeile.title = 'angezeigter Bogen'; | ||
+ | } | ||
+ | } | ||
+ | sessionStorage.setItem('SelBg_'+BogenListe[nBgIdx].KatNr+'_'+bvSessionID,sBg); | ||
+ | } | ||
+ | } | ||
+ | // Bestandsverwaltung | ||
+ | bvGM = []; | ||
+ | bvKatNr = []; | ||
+ | function bvbfAddGMOnClick(ebvbfAddGM) | ||
+ | { | ||
+ | var sGM = ''; | ||
+ | var sGMKatNr = ''; | ||
+ | if (ebvbfAddGM.hasAttribute('KatNr')) | ||
+ | sGMKatNr = ebvbfAddGM.getAttribute('KatNr'); | ||
+ | if (sGMKatNr != '') { | ||
+ | for (var g = 0; g < bvGM.length; g++) | ||
+ | if (bvGM[g].KatNr == sGMKatNr) | ||
+ | sGM += (sGM!=''?'|':'')+'"'+bvGM[g].Merkmal+'";"'+bvGM[g].Schluessel+'";"'+bvGM[g].Beschreibung+'"'; | ||
+ | sessionStorage.setItem('GM_'+sGMKatNr+'_'+bvSessionID,sGM); | ||
+ | } | ||
+ | } | ||
+ | function bvEinAusOnClick() | ||
+ | { | ||
+ | bvStatus = (bvStatus==1 ? 2 : 1); | ||
+ | for (var k = 0; k < bvKatNr.length; k++) { | ||
+ | var ebvbfAddGM = document.getElementById('bvbfAddGM_'+bvKatNr[k]); | ||
+ | if (ebvbfAddGM) | ||
+ | ebvbfAddGM.style.display = (bvStatus==1 ? '' : 'none'); | ||
+ | var ebvbfTR = document.getElementById('BV_TR_'+Gebiet+'_'+Gebiet1+'_'+bvKatNr[k]); | ||
+ | if (ebvbfTR) | ||
+ | ebvbfTR.style.display = (bvStatus==1 ? '' : 'none'); | ||
+ | } | ||
+ | var ebvEinAus = document.getElementById('bvEinAus'); | ||
+ | if (ebvEinAus) | ||
+ | ebvEinAus.innerHTML = '<b>[BV '+(bvStatus==1 ? 'aus' : 'ein')+']</b>'; | ||
+ | } | ||
+ | </script></html> | ||
+ | {{SH|Cmd=InitJS}} | ||
+ | {|style="background:#C0C0C0" cellpadding="6" cellspacing="1" width="100%" | ||
|-valign="top" style="background:#D0D0D0" | |-valign="top" style="background:#D0D0D0" | ||
- | |<big><b>{{SeiteLink|Typ=Übersicht|Gebiet={{{Gebiet}}}}} MiNr. {{{MiNr}}}: {{{Anlass}}}</b></big></includeonly> | + | | |
+ | {|style="background:transparent" cellpadding="0" cellspacing="0" width="100%" | ||
+ | |<big><b>{{SeiteLink|Typ=Übersicht|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}} <nowiki | ||
+ | />{{#if:{{{KatNrText1|}}}|{{{KatNrText1}}}|<nowiki | ||
+ | />{{#if:{{{KatNrText|}}}|{{{KatNrText}}}|KatNr.}} {{#ifeq:{{{Gebiet1|-}}}|MHB|MHB}}{{#ifeq:{{{MiNr1|-}}}|-|{{{MiNr}}}|{{SeiteLink|Typ=Marke|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}}/{{{MiNr1}}}}}<nowiki | ||
+ | />}}<nowiki | ||
+ | />{{#if:{{{Anlass|}}}|<nowiki>:</nowiki> {{{Anlass}}}}}</b></big> | ||
+ | |align="right"|<html><span id="bvEinAus" style="display:none;cursor:pointer;" onclick="bvEinAusOnClick();"><b>[BV aus]</b></span></html> | ||
+ | |} | ||
+ | <html><script type="text/javascript"> | ||
+ | var ebvEinAus = document.getElementById('bvEinAus'); | ||
+ | if (ebvEinAus) { | ||
+ | if (bvStatus > 0) { | ||
+ | if (!isPrintable) { | ||
+ | ebvEinAus.style.display = 'inline'; | ||
+ | bvStatus = (bvStatus==1 ? 2 : 1); | ||
+ | bvEinAusOnClick(); | ||
+ | } else { | ||
+ | ebvEinAus.innerHTML = ''; | ||
+ | } | ||
+ | } else { | ||
+ | ebvEinAus.innerHTML = ''; | ||
+ | } | ||
+ | } | ||
+ | </script></html></includeonly> |
Aktuelle Version vom 06:51, 12. Aug. 2025
Beschreibung
| ||||||||||||||||||||||||
Beispiele
| ||||||||||||||||||||||||
Zurück zur Referenzliste der Vorlagen |