Vorlage:Glossar eintrag: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(121 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>
+
<includeonly><!--
===Code ===
 
 
 
<nowiki>{{Glossar_eintrag
 
| code= 
 
| styled_term= 
 
| styled_term_oD= 
 
| original_script= 
 
| sprache= 
 
| geschlecht= 
 
| desc_of_term= 
 
| tags= 
 
| map=
 
| zoom=
 
| type=
 
| icon=
 
}}
 
</nowiki>
 
</noinclude><includeonly><!--
 
  
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:spr |{{{sprache|jap.}}} }}<!--
+
-->{{#vardefine:code
 +
| {{lc:{{{code|}}}}}
 +
}}<!--
 
-->{{#vardefine:spr  
 
-->{{#vardefine:spr  
| {{#ifeq: {{#regex: {{#var:spr}} | /\W/}} |.|{{lc:{{#var:spr}}}}| {{#var:spr}} }}
+
|{{lc:{{{sprache|jap.}}}}}
}}<!--
+
}}<!--  
 
-->{{#vardefine:sprache
 
-->{{#vardefine:sprache
| {{#switch:{{lc:{{{sprache|jap.}}}}} |  
+
| {{#switch:{{#var:spr}} |  
 
| jap.= Japanisch
 
| jap.= Japanisch
 
| chin.= Chinesisch
 
| chin.= Chinesisch
Zeile 32: Zeile 16:
 
| west.= Westlich
 
| west.= Westlich
 
| skt.= Sanskrit
 
| skt.= Sanskrit
| #default= {{{sprache|}}}
+
| #default= Alles
 +
}} }}<!--
 +
-->{{#vardefine:region
 +
| {{#switch:{{#var:spr}} |
 +
| jap.= Japan
 +
| chin.= China und Korea
 +
| kor.= China und Korea
 +
| #default=Sonstige
 
}} }}<!--
 
}} }}<!--
 
-->{{#vardefine:set_spr
 
-->{{#vardefine:set_spr
|<span class=g_lang>([[lang_of_term::{{#var:spr}}| ]][[Metalog:Glossar/{{#var:sprache}}|{{#var:spr}}]]{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}})</span>
+
|<span class=g_lang>({{#queryformlink:form=Fachbegriffe
 +
    |link text= {{#var:spr}}
 +
    |query string=<!--
 +
-->Fachbegriffe[sprache]={{#var:sprache}}&<!--
 +
-->Fachbegriffe[thema]=Alles&_run
 +
    }}{{#set:lang_of_term={{#var:spr}} }}{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}})</span>  
 
}}<!--
 
}}<!--
 +
-->{{#vardefine:term
 +
| {{{styled_term|}}}
 +
}}<!--
 +
-->{{#vardefine:simple_term
 +
| {{{styled_term_oD|{{{styled_term|}}}}}}
 +
}}<!--
 +
-->{{#vardefine:alphabetic_term
 +
| {{{alphabetic_term|{{{styled_term|}}}}}}
 +
}}<!--
 +
 
-->{{#vardefine:suchbegriff
 
-->{{#vardefine:suchbegriff
 
| {{#regex:{{#regex: {{{styled_term_oD|{{{styled_term|}}}}}}|/ /e|_}}|/'/e|}}
 
| {{#regex:{{#regex: {{{styled_term_oD|{{{styled_term|}}}}}}|/ /e|_}}|/'/e|}}
 +
}}<!--
 +
-->{{#vardefine:original_script
 +
| [[original_script::{{{original_script|}}}]]
 
}}<!--  
 
}}<!--  
 
-->{{#vardefine:suche_kanji
 
-->{{#vardefine:suche_kanji
Zeile 44: Zeile 53:
 
}}<!--  
 
}}<!--  
 
-->{{#vardefine:id | {{#regex: {{lc:{{NAMESPACE}}}}|/\w/}}-{{#var:code}} }}<!--
 
-->{{#vardefine:id | {{#regex: {{lc:{{NAMESPACE}}}}|/\w/}}-{{#var:code}} }}<!--
 +
}}<!--
 +
-->{{#vardefine:vorlage
 +
| {{#ifeq: {{NAMESPACE}} | Skt | Sanskrit
 +
  | {{NAMESPACE}}
 +
  }}
 +
}}<!--
  
SCHREIBEN
+
SCHREIBEN  
  
-->{{titel| Glossareintrag „{{{styled_term_oD|{{{styled_term|}}}}}}“ }}
+
-->__NOTOC__<div class=glossarseite><div class= g_maininfo>
<div class= g_maininfo>
+
<div class=g_styled_term>{{#var:term}} {{#var:original_script}} {{#var:set_spr}}</div>
<p class=g_styled_term>[[styled_term::{{{styled_term|}}}]] [[original_script::{{{original_script|}}}|{{{original_script| }}}]] {{#var:set_spr}}</p>
 
 
<p class=g_desc_of_term>[[desc_of_term::{{{desc_of_term|}}}]]</p>
 
<p class=g_desc_of_term>[[desc_of_term::{{{desc_of_term|}}}]]</p>
<!--  
+
<!--
USES TERM
 
  
-->
+
Bearbeitungslink
<div class='g_links_artikel'>{{#ask:
 
[[:+]]
 
[[uses_term::{{#var:code}}]] 
 
| format=ul
 
| intro= <h3>Artikel zu „{{{styled_term_oD|{{{styled_term|}}}}}}“:</h3>
 
| link= none
 
| template= smw_g
 
| userparam= {{lc:{{#regex:{{NAMESPACE}}|/\w/}}}}-{{#var:code}}
 
}}</div><!--
 
  
------------Fachbegriffe-------------
+
-->{{#ifanon:<!--do nothing-->
--><div class='g_links_glossar'>{{#ask:
+
|<div class=sysoplinks>[[Spezial:Mit_Formular_bearbeiten/{{#var:vorlage}}/{{FULLPAGENAME}}|Diese Seite mit Formular bearbeiten]]</div>
[[Glossar:+]][[uses_term::{{#var:code}}]] OR
+
}}
[[Skt:+]][[uses_term::{{#var:code}}]]  
+
</div><!--  
| ?styled_term=
 
| format=plain
 
| link= none
 
| template= smw_links_12
 
| sep= ,&ensp;
 
| intro= <h3>Verwandte Fachbegriffe:</h3>
 
:
 
}}</div></div><!--
 
  
 
Themen
 
Themen
  
--><div class=g_thema><!--
+
--><div class=g_thema><!--  
-->Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[hat_thema::$0| ]] [[category:$0]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}<!--
+
-->{{#if: {{{thema|}}}
 +
|{{#fas:tags}} {{#arraymap: {{{thema|}}} |, |§
 +
  | {{#queryformlink:form=Fachbegriffe
 +
    |link text= {{#regex:§|/Sonstiges/|}}
 +
    |query string=<!--
 +
-->Fachbegriffe[sprache]=Alles&<!--
 +
-->Fachbegriffe[thema]={{#regex:§|/Sonstiges/|}}&_run
 +
    }} {{#set: hat_thema_neu=§}}
 +
  }}  
 +
| [[Kategorie: Glossareintrag ohne Thema]]
 +
}}<!--
  
Attribute
+
externe Links
-->[[glossar_id::{{#var:id}}| ]]<!--
 
  
externe Links
 
 
--><span class=g_links_extern>{{#if: {{#var:suche_kanji}}| <!--
 
--><span class=g_links_extern>{{#if: {{#var:suche_kanji}}| <!--
  
 
Suche nach Kanji:
 
Suche nach Kanji:
-->[[Bild:Wadoku logo.svg| x20px| link=http://www.wadoku.de/search/{{#var:kanji}}| Suche {{{kanji|}}} in Wadoku.de]] • [[Bild:Wikipedia-icon.png| 20px
+
-->[http://www.wadoku.de/search/{{#var:kanji}} WaDoku] • <!--
| link=https://ja.wikipedia.org/w/index.php?search={{#var:kanji}}| Suche {{{kanji|}}} in Wikipedia(ja)]] • [[Bild:Google-icon.png| 20px
+
-->[https://ja.wikipedia.org/w/index.php?search={{#var:kanji}} {{#fab:wikipedia-w}}] • <!--
| link=https://www.google.co.jp/#q={{#var:kanji}}| Suche {{{kanji|}}} mit Google(ja)]] • [[Bild:camera-icon.png| 20px
+
--><span class=koto>[https://kotobank.jp/search?q={{#var:kanji}} ]</span> <!--  
| link=https://www.google.co.jp/#q={{#var:kanji}}&tbm=isch| Suche {{{kanji|}}} mit Google Images(ja)]]
+
-->[https://www.google.co.jp/search?q={{#var:kanji}} {{#fab:google}}] • <!--
 +
-->[https://www.google.co.jp/search?q={{#var:kanji}}&tbm=isch {{#fas:camera}}]
 
| <!--
 
| <!--
  
Suche nach Transkription:  
+
Suche nach Transkription:
-->[[Bild:Wikipedia-icon.png| 20px| link=https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}}| Suche {{{romaji|}}} in Wikipedia]] • [[Bild:Google-icon.png| 20px
+
-->[https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}} {{#fab:wikipedia-w}}] • <!--
| link=https://www.google.com/#q={{#var:suchbegriff}}| Suche {{{romaji|}}} mit Google]] • [[Bild:camera-icon.png| 20px
+
-->[https://www.google.com/search?q={{#var:suchbegriff}} {{#fab:google}}] • <!--
| link=https://www.google.com/#q={{#var:suchbegriff}}&tbm=isch| Suche {{{romaji|}}} mit Google Images]]
+
-->[https://www.google.com/search?q={{#var:suchbegriff}}&tbm=isch {{#fas:camera}}]
}}</span></div><!--
+
}}</span></div>
 +
<!--
 +
 
 +
USES TERM
 +
 
 +
-->Der Begriff „{{#var:simple_term}}“ wird in diesem Handbuch auf folgenden Seiten erwähnt:
 +
 +
{{shortlist|{{#ask:
 +
[[:+||Metalog:+]]
 +
[[links_to_glossar::{{FULLPAGENAME}}]]
 +
| sort=Chapternumber
 +
| format=ul 
 +
| template=Glossar eintrag a
 +
| userparam={{#var:id}}
 +
| link=none
 +
}}}}<!--
 +
 
 +
------------Fachbegriffe-------------
 +
-->{{#ask:
 +
[[Glossar:+]][[cites_term::{{#var:code}}]] OR
 +
[[Skt:+]][[cites_term::{{#var:code}}]]
 +
| ?styled_term=
 +
| format=plain
 +
| link=none
 +
| template=smw_links_12
 +
| sep=,&ensp;
 +
| intro=<p class=g-usage>Glossarseiten</p> <div class=g-fachbegriffe>
 +
|outro=</div>
 +
}} <!--
  
 
------------Bilder-------------
 
------------Bilder-------------
--><div class='g_links_bilder b_liste'>{{#ask:  
+
-->
[[Bild:+]]
+
{{#ask:  
[[uses_term::{{#var:code}}]]   
+
[[is_image_article::+]]
 +
[[cites_term::{{#var:code}}]]   
 
| format=ul
 
| format=ul
 
| link=none
 
| link=none
 
| template=smw_g_img
 
| template=smw_g_img
| limit= 9
+
| class= b_liste
 
| order= rand
 
| order= rand
| searchlabel= Weitere Bilder...
+
| searchlabel= Weitere Bilder...  
}}</div><!--
+
| intro= <p class=g-usage>Bilder</p>
 +
}}<!--
  
 
-----MAP-----
 
-----MAP-----
-->{{#if: {{{map|}}}  
+
 
|{{map
+
-->{{#if: {{{map|}}} |
| {{{map| }}}~ ~ ~ ~ ~{{{romaji|}}}
+
<h2>Geographische Lage</h2>
| caption= Geographische Lage von {{{styled_term_oD|{{{styled_term|}}}}}}; s.a. [[Metalog:Karte]]
+
{{map
 +
| {{{map| }}}~ ~ ~ ~ ~{{#var:simple_term}}
 +
| caption= Geographische Lage von {{#var:simple_term}}; s.a. {{Glossar_geo_q|region={{#var:region}} }}
 
| zoom= {{#if: {{{zoom|}}}| {{{zoom|}}} | 9 }}
 
| zoom= {{#if: {{{zoom|}}}| {{{zoom|}}} | 9 }}
 
| type= {{#if: {{{style|{{{type| }}}}}}| {{{style|{{{type| }}}}}} | terrain }}
 
| type= {{#if: {{{style|{{{type| }}}}}}| {{{style|{{{type| }}}}}} | terrain }}
Zeile 124: Zeile 161:
 
| controls= type  
 
| controls= type  
 
| icon= {{ucfirst:{{#if:{{{icon|}}}|{{{icon|}}}|Star}} }}_icon.png
 
| icon= {{ucfirst:{{#if:{{{icon|}}}|{{{icon|}}}|Star}} }}_icon.png
 +
}}
 +
}}<!-- 
 +
 +
----KATEGORIEN-----
 +
 +
-->[[Kategorie:Glossar]]<!--
 +
-->{{Schlagworte
 +
|thema= {{{thema|}}}
 +
|sprache={{#var:sprache}}
 +
}}<!--
 +
 +
Attribute
 +
 +
-->{{#set: glossar_id={{#var:id}}
 +
|defines_term={{FULLPAGENAME}}
 +
|mainlink={{{link|}}}
 +
|styled_term= {{#var:simple_term}}
 +
|styled_term_mD= {{#var:term}}
 +
|alphabetic_term= {{#var:alphabetic_term}}
 +
|location type= {{#if:{{{map|}}}|{{#if:{{{icon|}}}|{{{icon|}}}|Ort}}}}
 +
}}<!--
 +
 +
----Attribute Map----
 +
 +
-->{{#vardefine:region
 +
| {{#switch: {{lc:{{#regex:{{#var:spr}}|/\w+/}}}}
 +
| jap= Japan
 +
| kor= Korea
 +
| chin= China
 +
| #default= sonstige
 +
}}
 +
}}<!--
 +
-->{{#if:{{{map| }}}
 +
| {{#set: has_coordinates= {{{map|}}}
 +
| located in= {{#var:region}}
 +
}}
 
}}<!--
 
}}<!--
  
Zeile 130: Zeile 203:
 
-->{{#css:
 
-->{{#css:
 
.g_styled_term {
 
.g_styled_term {
font-size: 1.5em;  
+
    font-size: 1.5em;  
text-align: center;
+
    font-family: calibri, arial, sans;
}  
+
    text-align: center;
 +
    padding: 1em 0;
 +
}
 
.g_lang {
 
.g_lang {
 
   font-size: .66em;
 
   font-size: .66em;
 
   text-transform: uppercase;  
 
   text-transform: uppercase;  
 
}
 
}
#content h3 {
 
  font-size: 1.2em;
 
  color: #135;
 
}
 
 
.g_maininfo,
 
.g_maininfo,
 
.g_thema {
 
.g_thema {
 
   border: 4px solid;
 
   border: 4px solid;
 
   padding: 1em 31px;  
 
   padding: 1em 31px;  
   margin: 1em -35px;
+
   margin: 1em auto;
 
   border-radius: 8px;
 
   border-radius: 8px;
 
}
 
}
 
.g_maininfo {  
 
.g_maininfo {  
 +
  margin-top:4.5rem;
 
   color: #135;
 
   color: #135;
 
   background-color: #f3f8ff;
 
   background-color: #f3f8ff;
Zeile 155: Zeile 227:
 
}
 
}
 
.g_thema {  
 
.g_thema {  
   border-color: #e2e1e1;
+
   border: 0;
   background-color: #f9f9f9;  
+
  background-color: #def;  
 +
   margin-bottom: 2em;
 +
    color: #1067ac;
 
}
 
}
 
.g_links_extern {
 
.g_links_extern {
Zeile 165: Zeile 239:
 
.g_links_artikel,
 
.g_links_artikel,
 
.g_links_glossar,
 
.g_links_glossar,
.g_links_bilder {
+
.g_links_bilder {  
font-size: .85em;
 
 
}
 
}
 
.g_links_artikel ul {
 
.g_links_artikel ul {
 
   column-count: 2;
 
   column-count: 2;
 +
}
 +
.g-usage {
 +
    font-style: italic;
 +
    padding-top: 1em;
 +
}
 +
.g-fachbegriffe {
 +
    padding-left: 4rem;
 +
    padding-bottom: 2em;
 
}
 
}
.g_links_artikel ul,
+
.smw-ul-furtherresults {
.g_links_artikel li {
+
    display: block;
  list-style:none;
+
    text-align: right;
 +
}
 +
#content .g_links_extern a.external::after {
 +
    padding-left: 0;
 +
    content: "";
 +
}
 +
.koto {
 +
    font-size: .8em;
 +
    line-height: 1em;
 +
    width: 1em;
 +
    display: inline-block;
 +
    font-family: sans-serif;
 +
    font-weight: bold;
 +
    border: 1px solid;
 +
    border-radius: 50%;
 +
    padding: 0.2em;
 +
}
 +
}}</div></includeonly>
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"": {},
 +
"code": {},
 +
"sprache": {},
 +
"geschlecht": {},
 +
"styled_term": {},
 +
"styled_term_oD": {},
 +
"alphabetic_term": {},
 +
"original_script": {},
 +
"desc_of_term": {},
 +
"tags": {},
 +
"link": {},
 +
"map": {},
 +
"zoom": {},
 +
"style": {},
 +
"type": {},
 +
"icon": {},
 +
"thema": {}
 +
},
 +
"description": "Gestaltet Glossarseiten. Daten von Vorlage:Glossar oder Vorlage:Sanskrit."
 
}
 
}
}}</includeonly>
+
</templatedata>
 +
</noinclude>

Aktuelle Version vom 8. August 2024, 15:17 Uhr


Gestaltet Glossarseiten. Daten von Vorlage:Glossar oder Vorlage:Sanskrit.

Vorlagenparameter

ParameterBeschreibungTypStatus

keine Beschreibung

Unbekanntoptional
Codecode

keine Beschreibung

Unbekanntoptional
Sprachesprache

keine Beschreibung

Unbekanntoptional
Geschlechtgeschlecht

keine Beschreibung

Unbekanntoptional
Styled_termstyled_term

keine Beschreibung

Unbekanntoptional
Styled_term_oDstyled_term_oD

keine Beschreibung

Unbekanntoptional
Alphabetic_termalphabetic_term

keine Beschreibung

Unbekanntoptional
Original_scriptoriginal_script

keine Beschreibung

Unbekanntoptional
Desc_of_termdesc_of_term

keine Beschreibung

Unbekanntoptional
Tagstags

keine Beschreibung

Unbekanntoptional
Linklink

keine Beschreibung

Unbekanntoptional
Mapmap

keine Beschreibung

Unbekanntoptional
Zoomzoom

keine Beschreibung

Unbekanntoptional
Stylestyle

keine Beschreibung

Unbekanntoptional
Typetype

keine Beschreibung

Unbekanntoptional
Iconicon

keine Beschreibung

Unbekanntoptional
Themathema

keine Beschreibung

Unbekanntoptional