Template:Marx and Engels navbox: Difference between revisions
Jump to navigation
Jump to search
Harrystein (talk | contribs) (Testing a shitty hack to make collapse/expand options work right.) |
Harrystein (talk | contribs) (continued test on shitty hack) |
||
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 | <!--Shitty hack to fix the expanded/collapsed options for each of the three:--> | ||
| list1 = {{NavTMarxAlone|none|state = {{#ifeq: marx | {{{1}}} | expanded | collapsed}} }} | <!--These test if param 1 exists; if it does, then expand. Else, check for keyword. If keyword is wrong, then collapse.--> | ||
| list2 = {{NavTMarxEngBoth|none|state = {{#switch: {{{1}}} | both || | | list1 = {{NavTMarxAlone|none|state = {{#if: {{{1|}}} | {{#ifeq: marx | {{{1}}} | expanded | collapsed}} | expanded }} }} | ||
| list3 = {{NavTEngAlone|none|state = {{#ifeq: engels | {{{1}}} | expanded | collapsed}} }} | | list2 = {{NavTMarxEngBoth|none|state = {{#if: {{{1|}}} | {{#switch: {{{1}}} | both|all|expanded = expanded | collapsed}} | expanded }} }} | ||
| list3 = {{NavTEngAlone|none|state = {{#if: {{{1|}}} | {{#ifeq: engels | {{{1}}} | expanded | collapsed}} | expanded }} }} | |||
}} | }} | ||
<noinclude> | <noinclude> | ||
[[category:Original templates]] | [[category:Original templates]] | ||
</noinclude> | </noinclude> |