Template:Marx and Engels navbox: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
mNo edit summary
m (comment typo)
Line 1: Line 1:
{{navbox | title=Texts by Marx and Engels|name=NavTMarxEng|state={{{state|expanded}}}|border={{{border|}}}
{{navbox | title=Texts by Marx and Engels|name=NavTMarxEng|state={{{state|expanded}}}|border={{{border|}}}
<!--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 doesn't, then expand. If it does exist, then check for keyword. If keyword is wrong, then collapse.-->
| list1 = {{NavTMarxAlone|none|state = {{#if: {{{1|}}} | {{#switch: {{lc: {{{1}}} }} | all|both|expanded|marx|marx-only|marxonly|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 }} }}

Revision as of 18:44, 21 August 2023