Template:Marx and Engels navbox: Difference between revisions
Jump to navigation
Jump to search
Harrystein (talk | contribs) m (added options for middle and top/bottom to be displayed, i.e. 2 out of three open.) |
Harrystein (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
<!--Shitty hack to fix the expanded/collapsed options for each of the three:--> | <!--Shitty hack to fix the expanded/collapsed options for each of the three:--> | ||
<!--These test if param 1 exists; if it does, then expand. Else, check for keyword. If keyword is wrong, then collapse.--> | <!--These test if param 1 exists; if it does, then expand. Else, check for keyword. If keyword is wrong, then collapse.--> | ||
| list1 = {{NavTMarxAlone|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|marx|marx-both|marxboth = expanded | collapsed}} | expanded }} }} | | list1 = {{NavTMarxAlone|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|marx|marx-only|marxonly|marx-both|marxboth = expanded | collapsed}} | expanded }} }} | ||
| list2 = {{NavTMarxEngBoth|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|both-only|only-both|bothonly|engels-both|engelsboth|marx-both|marxboth = expanded | collapsed}} | expanded }} }} | | list2 = {{NavTMarxEngBoth|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|both-only|only-both|bothonly|engels-both|engelsboth|marx-both|marxboth = expanded | collapsed}} | expanded }} }} | ||
| list3 = {{NavTEngAlone|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|engels|engels-both|engelsboth = expanded | collapsed}} | expanded }} }} | | list3 = {{NavTEngAlone|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|engels|engels-only|engelsonly|engels-both|engelsboth = expanded | collapsed}} | expanded }} }} | ||
}} | }} | ||
<noinclude> | <noinclude> |
Revision as of 18:40, 21 August 2023
Created by someone on old Leftypedia. Parameters revised on 8/20/23 by Harrystein.
The first parameter simply tells the template which of the three sections – Marx's works, Engels's works, or the collaborations of both – should be expanded or collapsed. Typically the section that includes the work at hand should be expanded, but use your own judgement.
How to use
Leaving the parameter blank will expand all three:
{{navTMarxEng}}
Adding a parameter, such as Marx
, will expand only that section.
{{navTMarxEng|Marx}}
Params
Parameters are case insensitive. Or should be, anyway.
Options | Behavior |
all |
Whole template will expand. Also doable by leaving the parameter blank. |
both‑only |
Only the middle, comprising the two's collaborations, will expand. |
marx |
Marx's works will expand. |
engels |
Engels's works will expand. |
marx‑both |
Marx's works, including his collaborations with Engels, will expand. |
engels‑both |
Engels's works, including his collaborations with Marx, will expand. |