Template:Expose Item: Difference between revisions
Jump to navigation
Jump to search
(create) |
(work) |
||
Line 6: | Line 6: | ||
Why: This will make it possible to collect a list of every drop table item transcluded into a page, thus letting you later query sources of items. | Why: This will make it possible to collect a list of every drop table item transcluded into a page, thus letting you later query sources of items. | ||
<pre>{{Expose Item|<item name to expose>}} | |||
</pre> | |||
Items are stored in following format separated by commas: <pre> | |||
ITEM_NAME+LEVEL_LOW+LEVEL_HIGH | |||
</pre> |
Revision as of 09:22, 14 September 2023
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.
What this templates does: it appends the provided single item name to the contents of the non-locally scoped var page_exposed_items.
Why: This will make it possible to collect a list of every drop table item transcluded into a page, thus letting you later query sources of items.
{{Expose Item|<item name to expose>}}Items are stored in following format separated by commas:
ITEM_NAME+LEVEL_LOW+LEVEL_HIGH