Editing Template:DM Fusion Material/sandbox
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
// Whether or not to store SMW properties | // Whether or not to store SMW properties | ||
-->{{ #vardefine: $fusion-store-properties | {{ #if: {{NAMESPACE}} || {{{store_properties|}}} }} }}<!-- | -->{{ #vardefine: $fusion-store-properties | {{ #if: {{NAMESPACE}} || {{{store_properties|}}} }} }}<!-- | ||
− | |||
− | |||
− | -->{{ #if: {{{ | + | // A counter used to distinguish different Fusions on the same article. |
+ | // Each time this template is used on a page, this number will increase by 1. | ||
+ | -->{{ #vardefine: $fusion-counter | {{ #expr: {{ #var: $fusion-counter | 0 }} + 1 }} }}<!-- | ||
+ | |||
+ | -->{{ #if: {{{target<includeonly>|</includeonly>}}} | {{Main|{{{target}}}}} }}<!-- | ||
-->{{{description<includeonly>|</includeonly>}}} | -->{{{description<includeonly>|</includeonly>}}} | ||
<table class="wikitable"> | <table class="wikitable"> | ||
Line 48: | Line 50: | ||
}} | }} | ||
}} | }} | ||
− | </table> | + | </table><!-- |
+ | |||
+ | // =================== \\ | ||
+ | Semantic properties | ||
+ | \\ =================== // | ||
+ | |||
+ | // Subobject containing properties of the Fusion. | ||
+ | // The `/row` subtemplate will add more subobjects for each combination, which link to this subobject. | ||
+ | -->{{ #if: {{ #var: $fusion-store-properties }} | ||
+ | | {{ #subobject: Fusion-{{ #var: $fusion-counter }} | ||
+ | | Fusion Monster = {{{target|}}} | ||
+ | | Description = {{{description|}}} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | --> |