Vorlage:Glossar eintrag: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<noinclude> ===Code === <nowiki>{{Glossar_eintrag | code= | styled_term= | styled_term_oD= | original_script= | sprache= | geschlecht= | desc_of_…“)
 
 
(163 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= 
 
}}
 
</nowiki>
 
</noinclude><includeonly><!--
 
  
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:spr
+
-->{{#vardefine:code
|{{#regex: {{{sprache|jap.}}} | /\w+/}}
+
| {{lc:{{{code|}}}}}  
 
}}<!--
 
}}<!--
 +
-->{{#vardefine:spr
 +
|{{lc:{{{sprache|jap.}}}}}
 +
}}<!--
 +
-->{{#vardefine:sprache
 +
| {{#switch:{{#var:spr}} |
 +
| jap.= Japanisch
 +
| chin.= Chinesisch
 +
| kor.= Koreanisch
 +
| west.= Westlich
 +
| skt.= Sanskrit
 +
| #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
|([[lang_of_term::{{#var:spr}}.]]{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}})
+
|<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 30: 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
 +
 +
-->__NOTOC__<div class=glossarseite><div class= g_maininfo>
 +
<div class=g_styled_term>{{#var:term}} {{#var:original_script}} {{#var:set_spr}}</div>
 +
<p class=g_desc_of_term>[[desc_of_term::{{{desc_of_term|}}}]]</p>
 +
<!--
  
SCHREIBEN
+
Bearbeitungslink
  
-->{{titel| Glossareintrag „{{{styled_term_oD|{{{styled_term|}}}}}}“ }}
+
-->{{#ifanon:<!--do nothing-->
 +
|<div class=sysoplinks>[[Spezial:Mit_Formular_bearbeiten/{{#var:vorlage}}/{{FULLPAGENAME}}|Diese Seite mit Formular bearbeiten]]</div>
 +
}}
 +
</div><!--
  
<span class=g_styled_term>[[styled_term::{{{styled_term|}}}]] [[original_script::{{{original_script|}}}|{{{original_script| }}}]] {{#var:set_spr}}</span>
+
Themen
  
<span class=g_desc_of_term>[[desc_of_term::{{{desc_of_term|}}}]]</span><!--  
+
--><div class=g_thema><!--
 +
-->{{#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]]
 +
}}<!--
  
Themen, externe Links
+
externe Links
  
--><div class=g_thema>
 
Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[category:$0]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}<!--
 
 
--><span class=g_links_extern>{{#if: {{#var:suche_kanji}}| <!--
 
--><span class=g_links_extern>{{#if: {{#var:suche_kanji}}| <!--
 +
 
Suche nach Kanji:
 
Suche nach Kanji:
-->[http://www.wadoku.de/search/{{{original_script|}}} Wadoku.de] •  
+
-->[http://www.wadoku.de/search/{{#var:kanji}} WaDoku] • <!--
[https://ja.wikipedia.org/w/index.php?search={{{original_script|}}}} Wikipedia(ja)] •  
+
-->[https://ja.wikipedia.org/w/index.php?search={{#var:kanji}} {{#fab:wikipedia-w}}] • <!--
[https://www.google.co.jp/#q={{{original_script|}}} Google(ja)] •  
+
--><span class=koto>[https://kotobank.jp/search?q={{#var:kanji}} ]</span> <!--
[https://www.google.co.jp/#q={{{original_script|}}}}&tbm=isch 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:
+
 
-->[https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}} Wikipedia] •  
+
Suche nach Transkription:
[https://www.google.com/#q={{#var:suchbegriff}} Google] •  
+
-->[https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}} {{#fab:wikipedia-w}}] • <!--
[https://www.google.com/#q={{#var:suchbegriff}}&tbm=isch Google Images]
+
-->[https://www.google.com/search?q={{#var:suchbegriff}} {{#fab:google}}] • <!--
}}
+
-->[https://www.google.com/search?q={{#var:suchbegriff}}&tbm=isch {{#fas:camera}}]
</span></div><!--
+
}}</span></div>
 +
<!--  
  
 
USES TERM
 
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-------------
 
-->
 
-->
<div class='g_links_artikel'>{{#ask:  
+
{{#ask:  
[[category:Artikel]]
+
[[is_image_article::+]]
[[uses_term::{{#var:code}}]]  
+
[[cites_term::{{#var:code}}]]
| format= ul
+
| format=ul
 
| link=none
 
| link=none
| template= smw_g
+
| template=smw_g_img
| userparam= {{#var:id}}
+
| class= b_liste
}}</div>
+
| order= rand
<div class='g_links_glossar'>{{#ask:  
+
| searchlabel= Weitere Bilder...
[[category:glossar]]
+
| intro= <p class=g-usage>Bilder</p>
[[uses_term::{{#var:code}}]] 
+
}}<!--
| format= ul
+
 
}}</div>
+
-----MAP-----
<div class='g_links_bilder'>{{#ask:  
+
 
[[Bild:+]]
+
-->{{#if: {{{map|}}} |
[[uses_term::{{#var:code}}]]
+
<h2>Geographische Lage</h2>
| format= ul
+
{{map
| link=none
+
| {{{map| }}}~ ~ ~ ~ ~{{#var:simple_term}}
| template= smw_g_img
+
| caption= Geographische Lage von {{#var:simple_term}}; s.a. {{Glossar_geo_q|region={{#var:region}} }}
| userparam= {{#var:code}}
+
| zoom= {{#if: {{{zoom|}}}| {{{zoom|}}} | 9 }}
}}</div><!--
+
| type= {{#if: {{{style|{{{type| }}}}}}| {{{style|{{{type| }}}}}} | terrain }}
 +
| height=400px
 +
| controls= type
 +
| icon= {{ucfirst:{{#if:{{{icon|}}}|{{{icon|}}}|Star}} }}_icon.png
 +
}}
 +
}}<!-- 
 +
 
 +
----KATEGORIEN-----
 +
 
 +
-->[[Kategorie:Glossar]]<!--
 +
-->{{Schlagworte
 +
|thema= {{{thema|}}}
 +
|sprache={{#var:sprache}}
 +
}}<!--
 +
 
 +
Attribute
  
KATEGORIEN
+
-->{{#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}}}}
 +
}}<!--
  
-->[[category:glossar]][[defines_term::{{#var:code}}| ]]<!--
+
----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}}
 +
}}
 +
}}<!--
  
 
CSS
 
CSS
Zeile 90: Zeile 203:
 
-->{{#css:
 
-->{{#css:
 
.g_styled_term {
 
.g_styled_term {
font-size: 1.2em;
+
    font-size: 1.5em;
 +
    font-family: calibri, arial, sans;
 +
    text-align: center;
 +
    padding: 1em 0;
 +
}
 +
.g_lang {
 +
  font-size: .66em;
 +
  text-transform: uppercase;
 +
}
 +
.g_maininfo,
 +
.g_thema {
 +
  border: 4px solid;
 +
  padding: 1em 31px;
 +
  margin: 1em auto;
 +
  border-radius: 8px;
 +
}
 +
.g_maininfo {
 +
  margin-top:4.5rem;
 +
  color: #135;
 +
  background-color: #f3f8ff;
 +
  border-color: #9ab9db;
 +
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
 +
}
 +
.g_thema {
 +
  border: 0;
 +
  background-color: #def;
 +
  margin-bottom: 2em;
 +
    color: #1067ac;
 
}
 
}
 
.g_links_extern {
 
.g_links_extern {
Zeile 99: 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:empty,
+
.g_links_artikel ul {
.g_links_glossar:empty,
+
  column-count: 2;
.g_links_bilder:empty {
+
}
display: none;  
+
.g-usage {
 +
    font-style: italic;
 +
    padding-top: 1em;
 
}
 
}
.g_links_artikel::before,
+
.g-fachbegriffe {
.g_links_glossar::before,
+
    padding-left: 4rem;
.g_links_bilder::before {
+
    padding-bottom: 2em;
display: block;
 
font-family: calibri, sans;  
 
font-size: 1.2em;
 
padding: 1.5em 0 .8em;
 
 
}
 
}
.g_links_artikel ul {
+
.smw-ul-furtherresults {
  column-count: 3;
+
    display: block;
 +
    text-align: right;
 
}
 
}
.g_links_artikel::before {
+
#content .g_links_extern a.external::after {  
content: 'Folgende Artikel erwähnen „{{{styled_term_oD|{{{styled_term|}}}}}}“:';
+
    padding-left: 0;
 +
    content: "";
 
}
 
}
.g_links_glossar::before {
+
.koto {
content: 'Verwandte Fachbegriffe:';
+
    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;
 
}
 
}
.g_links_bilder::before {
+
}}</div></includeonly>
content: 'Verwandte Bilder:';
+
<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