Template:Menu bar: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This template generates the navigation bar to be placed manually on top of content pages.
Syntax:
<pre>
<pre>
{{menu bar
{{menu bar
|lang1= English
|work= [populate this field with the work's acronym]
|target1= Tractatus Logico-Philosophicus
|lang1alt= tree
|target1alt= Tractatus Logico-Philosophicus (tree-like view)
|lang2=
|target2=
|lang2alt=
|target2alt=
|lang3=
|target3=
|lang3alt=
|target3alt=
|lang4=
|target4=
|lang4alt=
|target4alt=
|lang5=
|target5=
|lang5alt=
|target5alt=
|lang6=
|target6=
|lang7=
|target7=
|lang8=
|target8=
|lang9=
|target9=
|lang10=
|target10=
|export links= [populate this field with any string (e.g. "1" to display the export options)
|export links= [populate this field with any string (e.g. "1" to display the export options)
}}
}}
Line 48: Line 23:
</div>
</div>
{{#ifeq:{{PAGENAME}}|All texts|'''<span style="display: inline-block; float: left; color: #fbf0a4; text-align: center; padding: 14px 16px;">All texts</span>'''|[[Project:All texts|All texts]]}}<!--
{{#ifeq:{{PAGENAME}}|All texts|'''<span style="display: inline-block; float: left; color: #fbf0a4; text-align: center; padding: 14px 16px;">All texts</span>'''|[[Project:All texts|All texts]]}}<!--
-->{{#switch: {{{work|}}}
--><div class="dropdown separator">
| TLP = <div class="dropdown separator">
<html><p class="dropbtn" onclick="toggleLanguageLinks(); hideDownloadLinks();">Change language</p></html>
<html><p class="dropbtn" onclick="toggleLanguageLinks(); hideDownloadLinks();">Change language</p></html>
<div id="navbar-language-links" class="dropdown-content"><html><img class="close-language-links" src="https://wittgensteinproject.org/w/images/7/75/White-cross-padding.png" width="25" onclick="toggleLanguageLinks()"></html>
<div id="navbar-language-links" class="dropdown-content"><html><img class="close-language-links" src="https://wittgensteinproject.org/w/images/7/75/White-cross-padding.png" width="25" onclick="toggleLanguageLinks()"></html>
{{#switch: {{{work|}}}
| RC =
{{#ifeq: {{PAGELANGUAGE}}|en|[[Review of P. Coffey, “The Science of Logic”|English]]}}
{{#ifeq: {{PAGELANGUAGE}}|it|[[Recensione di “La scienza della logica” di P. Coffey|Italian]]}}
{{#ifeq: {{PAGELANGUAGE}}|es|[[Reseña, «La Ciencia de la Lógica»|Spanish]]}}
{{#ifeq: {{PAGELANGUAGE}}|ar|[[مراجعة كتاب "علم المنطق" لبيتر كوفي|Arabic]]}}
{{#ifeq: {{PAGELANGUAGE}}|tr|[[P. Coffey’in “Mantık Bilimi” Eseri Üzerine Bir İnceleme|Turkish]]}}
| NL =
{{#ifeq: {{PAGELANGUAGE}}|en||[[Notes on Logic|English]]
{{#ifeq: {{PAGELANGUAGE}}|it||[[Note sulla logica|Italian]]
| NM =
{{#ifeq: {{PAGELANGUAGE}}|en||[[Notes Dictated to G.E. Moore in Norway|English]]
{{#ifeq: {{PAGELANGUAGE}}|it||[[Note dettate a G.E. Moore in Norvegia|Italian]]
| TB =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Tagebücher 1914-1916|German]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Quaderni 1914-1916|Italian]]}}
| TLP =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Logisch-philosophische Abhandlung|German]]<span class="dropdown-content-alt">[[Logisch-philosophische Abhandlung (Darstellung in Baumstruktur)|Tree (interactive)]]
{{#ifeq: {{PAGELANGUAGE}}|de||[[Logisch-philosophische Abhandlung|German]]<span class="dropdown-content-alt">[[Logisch-philosophische Abhandlung (Darstellung in Baumstruktur)|Tree (interactive)]]
[[Logisch-philosophische Abhandlung (statische Darstellung in Baumstruktur)|Tree (static)]]</span>}}
[[Logisch-philosophische Abhandlung (statische Darstellung in Baumstruktur)|Tree (static)]]</span>}}
Line 63: Line 54:
[[Tratado lógico-filosófico (presentación estática en árbol)|Tree (static)]]</span>}}
[[Tratado lógico-filosófico (presentación estática en árbol)|Tree (static)]]</span>}}
[[Tractatus Logico-Philosophicus (multilingual side-by-side view)|Multilingual side-by-side view]]
[[Tractatus Logico-Philosophicus (multilingual side-by-side view)|Multilingual side-by-side view]]
| WB =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Wörterbuch für Volks- und Bürgerschulen|German]]}}
| RLF =
{{#ifeq: {{PAGELANGUAGE}}|en||[[Some Remarks on Logical Form|English]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Alcune osservazioni sulla forma logica|Italian]]}}
{{#ifeq: {{PAGELANGUAGE}}|es||[[Algunas observaciones sobre la forma lógica|Spanish]]}}
| LE =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Vortrag über Ethik|German]]}}
{{#ifeq: {{PAGELANGUAGE}}|en||[[Lecture on Ethics|English]]}}
{{#ifeq: {{PAGELANGUAGE}}|fr||[[Une conférence sur l’Ethique|French]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Conferenza sull’etica|Italian]]}}
{{#ifeq: {{PAGELANGUAGE}}|es||[[Conferencia sobre Ética|Spanish]]}}
{{#ifeq: {{PAGELANGUAGE}}|gr||[[Μια διάλεξη για την Ηθική|Greek]]}}
{{#ifeq: {{PAGELANGUAGE}}|ro||[[Prelegere despre etică|Romanian]]}}
{{#ifeq: {{PAGELANGUAGE}}|da||[[Forelæsning om etik|Danish]]}}
| CEM =
{{#ifeq: {{PAGELANGUAGE}}|en||[[Letter to the Editor of “Mind”|English]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Lettera al direttore di “Mind”|Italian]]}}
{{#ifeq: {{PAGELANGUAGE}}|ar||[[“Mind”_رسالة_إلى_محرر|Arabic]]}}
| GB =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Bemerkungen über Frazers “The Golden Bough”|German]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Osservazioni sul “Ramo d’oro” di Frazer|Italian]]}}
{{#ifeq: {{PAGELANGUAGE}}|es||[[Observaciones sobre “La rama dorada” de Frazer|Spanish]]}}
{{#ifeq: {{PAGELANGUAGE}}|pt-br||[[Observações sobre “O ramo de ouro” de Frazer|Portuguese]]}}
| PH =
{{#ifeq: {{PAGELANGUAGE}}|es||[[Filosofía|Spanish]]}}
| Blue =
{{#ifeq: {{PAGELANGUAGE}}|en||[[Blue Book|English]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Libro blu|Italian]]}}
| Brown =
{{#ifeq: {{PAGELANGUAGE}}|en||[[Brown Book|English]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Libro marrone|Italian]]}}
| PI =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Philosophische Untersuchungen|German]]}}
| Z =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Zettel|German]]}}
| ROC =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Bemerkungen über die Farben|German]]}}
{{#ifeq: {{PAGELANGUAGE}}|it||[[Osservazioni sui colori|Italian]]}}
| OC =
{{#ifeq: {{PAGELANGUAGE}}|de||[[Über Gewißheit|German]]}}
{{#ifeq: {{PAGELANGUAGE}}|hi||[[ऑन सर्टेन्टि|Hindi]]}}
}}
</div>
</div>
</div>
</div><!--
| {{#if:{{{lang1|}}}|<div class="dropdown separator">
<html><p class="dropbtn" onclick="toggleLanguageLinks(); hideDownloadLinks();">Change language</p></html>
<div id="navbar-language-links" class="dropdown-content"><html><img class="close-language-links" src="https://wittgensteinproject.org/w/images/7/75/White-cross-padding.png" width="25" onclick="toggleLanguageLinks()"></html>
[[{{{target1}}}|{{{lang1|}}}]] {{#if:{{{lang1alt|}}}|<span class="dropdown-content-alt">[[{{{target1alt|}}}|({{{lang1alt|}}})]]</span>|}}<!--
-->{{#if:{{{lang2|}}}|[[{{{target2}}}|{{{lang2|}}}]]|}} {{#if:{{{lang2alt|}}}|<span class="dropdown-content-alt">[[{{{target2alt|}}}|({{{lang2alt|}}})]]</span>|}}<!--
-->{{#if:{{{lang3|}}}|[[{{{target3}}}|{{{lang3|}}}]]|}} {{#if:{{{lang3alt|}}}|<span class="dropdown-content-alt">[[{{{target3alt|}}}|({{{lang3alt|}}})]]</span>|}}<!--
-->{{#if:{{{lang4|}}}|[[{{{target4}}}|{{{lang4|}}}]]|}} {{#if:{{{lang4alt|}}}|<span class="dropdown-content-alt">[[{{{target4alt|}}}|({{{lang4alt|}}})]]</span>|}}<!--
-->{{#if:{{{lang5|}}}|[[{{{target5}}}|{{{lang5|}}}]]|}} {{#if:{{{lang5alt|}}}|<span class="dropdown-content-alt">[[{{{target5alt|}}}|({{{lang5alt|}}})]]</span>|}}<!--
-->{{#if:{{{lang6|}}}|[[{{{target6}}}|{{{lang6|}}}]]|}}<!--
-->{{#if:{{{lang7|}}}|[[{{{target7}}}|{{{lang7|}}}]]|}}<!--
-->{{#if:{{{lang8|}}}|[[{{{target8}}}|{{{lang8|}}}]]|}}<!--
-->{{#if:{{{lang9|}}}|[[{{{target9}}}|{{{lang9|}}}]]|}}<!--
-->{{#if:{{{lang10|}}}|[[{{{target10}}}|{{{lang10|}}}]]|}}</div>
</div>|}}
}}<!--
-->{{#if:{{{export links|}}}|<div class="dropdown {{#if:{{{lang1|}}}||separator}}">
-->{{#if:{{{export links|}}}|<div class="dropdown {{#if:{{{lang1|}}}||separator}}">
<html><p class="dropbtn" onclick="toggleDownloadLinks(); hideLanguageLinks();">Download/export</p></html>
<html><p class="dropbtn" onclick="toggleDownloadLinks(); hideLanguageLinks();">Download/export</p></html>