User:KokoroSenshi/Sandbox/Template:Nav Template1/Arrow pair: Difference between revisions
Jump to navigation
Jump to search
KokoroSenshi (talk | contribs) m (experiment1 cont. - need no gaps beside the image in the divs or it tries to <p> stuff) |
KokoroSenshi (talk | contribs) m (removed newlines i mistakenly thought would be stripped as whitespace) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
(for Nav_template1 (used twice for up/down, per upn): {{#var:id}}, {{{up{{#vardefineecho:n|?}}|}}}, {{#var:n}} respectively (#vardefineecho must precede #var) | (for Nav_template1 (used twice for up/down, per upn): {{#var:id}}, {{{up{{#vardefineecho:n|?}}|}}}, {{#var:n}} respectively (#vardefineecho must precede #var) | ||
for up# cases (for up) {{Nav Template/Arrow pair|id={{#var:id}}|upn={{{up{{#vardefineecho:n|?}}|}}}|n={{#var:n}}|arrow=up}} | for up# cases (for up) {{Nav Template/Arrow pair|id={{#var:id}}|upn={{{up{{#vardefineecho:n|?}}|}}}|n={{#var:n}}|arrow=up}} | ||
for | for base case DOWN is absent + UP needs to be displayed, so use raw html, not this template that has style="display:none;" | ||
for up(max n) no need to worry about a lack of blank space in place of absent up arrow since this template doesn't handle it | for up(max n) no need to worry about a lack of blank space in place of absent up arrow since this template doesn't handle it | ||
-->{{#ifeq:{{{arrow|}}}|up| | -->{{#ifeq:{{{arrow|}}}|up| | ||
Line 17: | Line 16: | ||
-->[[File:Up Arrow.png|link=]]</div> | -->[[File:Up Arrow.png|link=]]</div> | ||
}} | }} | ||
|{{#ifeq:{{{arrow|}}}|down| | |{{#ifeq:{{{arrow|}}}|down| | ||
{{#ifeq:{{{upn|}}}| <!-- this bit is for the down arrows; if up2, then we show an down arrow at up2 (n) lvl that toggles to show up1 (n-1) lvl --> | {{#ifeq:{{{upn|}}}| <!-- this bit is for the down arrows; if up2, then we show an down arrow at up2 (n) lvl that toggles to show up1 (n-1) lvl --> | ||
Line 25: | Line 23: | ||
-->[[File:Down Arrow.png|link=]]</div> | -->[[File:Down Arrow.png|link=]]</div> | ||
}} | }} | ||
|ERROR: "arrow" parameter incorrectly entered}}}} | |ERROR: "arrow" parameter incorrectly entered}}}} |
Latest revision as of 13:55, 23 April 2016
ERROR: "arrow" parameter incorrectly entered