6,364
editsTrim properly 3
(add level information into template, update docs) |
(Trim properly 3) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{# | <onlyinclude><includeonly>{{#lvardef:entry|{{Trim|{{{1|}}}}}++{{#var:page_expose_item_level_low}}++{{#var:page_expose_item_level_high}}}} | ||
{{#vardefine:page_exposed_items|{{#if:{{#var:page_exposed_items}}|{{#var:page_exposed_items}},{{#lvar:entry}}|{{#lvar:entry}}}}}}</includeonly></onlyinclude> | |||
Warning: at the moment this is an experimental template and it may be changed without warning or backwards compatibility. Please don't use it without a good reason to. | Warning: at the moment this is an experimental template and it may be changed without warning or backwards compatibility. Please don't use it without a good reason to. | ||
Line 15: | Line 16: | ||
The level low and high are read from vars <tt>page_expose_item_level_low</tt> and <tt>page_expose_item_level_high</tt>, defaulting to 1 and 12, respectively. Vars are set with [[Template:Expose Item/SetLevel]] and reset with [[Template:Expose Item/ResetLevel]]. '''ResetLevel''' should be called by '''DropTableStart''', while '''SetLevel''' should be called by [[Template:DropTableLevel]]. [[Template:DropTableDivider]] will be the implementation details of '''DropTableLevel'''. | The level low and high are read from vars <tt>page_expose_item_level_low</tt> and <tt>page_expose_item_level_high</tt>, defaulting to 1 and 12, respectively. Vars are set with [[Template:Expose Item/SetLevel]] and reset with [[Template:Expose Item/ResetLevel]]. '''ResetLevel''' should be called by '''DropTableStart''', while '''SetLevel''' should be called by [[Template:DropTableLevel]]. [[Template:DropTableDivider]] will be the implementation details of '''DropTableLevel'''. | ||
Example below: | |||
{{User:Sky/ArronCopy}} |