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: | ||
− | + | <includeonly><!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
VARIABLE | VARIABLE | ||
− | -->{{#vardefine: | + | -->{{#vardefine:code |
− | |{{ | + | | {{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 | + | |<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> | ||
+ | <!-- | ||
− | + | Bearbeitungslink | |
− | -->{{ | + | -->{{#ifanon:<!--do nothing--> |
+ | |<div class=sysoplinks>[[Spezial:Mit_Formular_bearbeiten/{{#var:vorlage}}/{{FULLPAGENAME}}|Diese Seite mit Formular bearbeiten]]</div> | ||
+ | }} | ||
+ | </div><!-- | ||
− | + | Themen | |
− | < | + | --><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]] | ||
+ | }}<!-- | ||
− | + | 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: | ||
− | -->[http://www.wadoku.de/search/{{ | + | -->[http://www.wadoku.de/search/{{#var:kanji}} WaDoku] • <!-- |
− | [https://ja.wikipedia.org/w/index.php?search={{{ | + | -->[https://ja.wikipedia.org/w/index.php?search={{#var:kanji}} {{#fab:wikipedia-w}}] • <!-- |
− | [https://www.google.co.jp/ | + | --><span class=koto>[https://kotobank.jp/search?q={{#var:kanji}} コ]</span> • <!-- |
− | [https://www.google.co.jp/ | + | -->[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}} | + | Suche nach Transkription: |
− | [https://www.google.com/ | + | -->[https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}} {{#fab:wikipedia-w}}] • <!-- |
− | [https://www.google.com/ | + | -->[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=,  | ||
+ | | intro=<p class=g-usage>Glossarseiten</p> <div class=g-fachbegriffe> | ||
+ | |outro=</div> | ||
+ | }} <!-- | ||
+ | |||
+ | ------------Bilder------------- | ||
--> | --> | ||
− | + | {{#ask: | |
− | [[ | + | [[is_image_article::+]] |
− | [[ | + | [[cites_term::{{#var:code}}]] |
− | | format= ul | + | | format=ul |
| link=none | | link=none | ||
− | | template= | + | | template=smw_g_img |
− | | | + | | class= b_liste |
− | + | | order= rand | |
− | + | | searchlabel= Weitere Bilder... | |
− | + | | intro= <p class=g-usage>Bilder</p> | |
− | + | }}<!-- | |
− | | | + | |
− | }} | + | -----MAP----- |
− | + | ||
− | + | -->{{#if: {{{map|}}} | | |
− | + | <h2>Geographische Lage</h2> | |
− | + | {{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 }} |
− | }} | + | | 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 | ||
− | + | -->{{#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}} | ||
+ | }} | ||
+ | }}<!-- | ||
CSS | CSS | ||
Zeile 90: | Zeile 203: | ||
-->{{#css: | -->{{#css: | ||
.g_styled_term { | .g_styled_term { | ||
− | + | 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 { |
− | |||
} | } | ||
− | .g_links_artikel: | + | .g_links_artikel ul { |
− | . | + | column-count: 2; |
− | + | } | |
− | + | .g-usage { | |
+ | font-style: italic; | ||
+ | padding-top: 1em; | ||
} | } | ||
− | . | + | .g-fachbegriffe { |
− | + | padding-left: 4rem; | |
− | + | padding-bottom: 2em; | |
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | . | + | .smw-ul-furtherresults { |
− | + | display: block; | |
+ | 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." | ||
} | } | ||
− | + | </templatedata> | |
+ | </noinclude> |
Aktuelle Version vom 8. August 2024, 15:17 Uhr
Gestaltet Glossarseiten. Daten von Vorlage:Glossar oder Vorlage:Sanskrit.
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
| keine Beschreibung | Unbekannt | optional | |
Code | code | keine Beschreibung | Unbekannt | optional |
Sprache | sprache | keine Beschreibung | Unbekannt | optional |
Geschlecht | geschlecht | keine Beschreibung | Unbekannt | optional |
Styled_term | styled_term | keine Beschreibung | Unbekannt | optional |
Styled_term_oD | styled_term_oD | keine Beschreibung | Unbekannt | optional |
Alphabetic_term | alphabetic_term | keine Beschreibung | Unbekannt | optional |
Original_script | original_script | keine Beschreibung | Unbekannt | optional |
Desc_of_term | desc_of_term | keine Beschreibung | Unbekannt | optional |
Tags | tags | keine Beschreibung | Unbekannt | optional |
Link | link | keine Beschreibung | Unbekannt | optional |
Map | map | keine Beschreibung | Unbekannt | optional |
Zoom | zoom | keine Beschreibung | Unbekannt | optional |
Style | style | keine Beschreibung | Unbekannt | optional |
Type | type | keine Beschreibung | Unbekannt | optional |
Icon | icon | keine Beschreibung | Unbekannt | optional |
Thema | thema | keine Beschreibung | Unbekannt | optional |