Template:Test: Difference between revisions

From IdleOn MMO Wiki
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 4: Line 4:
-->{{#cargo_declare:_table=Tests
-->{{#cargo_declare:_table=Tests
   |Name=String
   |Name=String
   |Source=Wikitext
   |Source=Text
}}</noinclude><!--
}}</noinclude><!--


### Cargo Store ###
### Cargo Store ###
--><includeonly>{{#invoke:LuaVar|varDefine|name=Sources|value={{Sources}}}}{{#cargo_store:_table=Tests
--><includeonly>{{#cargo_store:_table=Tests
   |Name={{{name|Null}}}
   |Name={{{1|{{{name|{{PAGENAME}}}}}}}}
   |Source={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined (cargo store).|{{{source|Unobtainable (cargo_store)}}}|{{#invoke:LuaVar|var|name=Sources}}}}
   |Source={{#invoke:SourcesQuery|Main|item={{{1|{{{name|{{PAGENAME}}}}}}}}}}
}}<!--
}}<!--


--><div class="Infobox">
--><div class="Infobox">


{{#if:{{{name|}}}|<dt>Name</dt><dd>{{{name|}}}</dd>}}
{{#if:{{{1|{{{name|}}}}}}|<dt>Name</dt><dd>{{{1|{{{name|}}}}}}</dd>}}


<dt>Source</dt><dd style="display:inline;">{{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined. (in table)|{{{source|Unobtainable (in table)}}}|{{#invoke:LuaVar|var|name=Sources}}}}</dd>
<dt>Source</dt><dd style="display:inline;">{{#invoke:LuaVar|var|name=Sources}}</dd>


</div>
</div>
</includeonly><noinclude><pre>This is a test!</pre>
</includeonly><noinclude><pre>This is a test!</pre>
</noinclude>
</noinclude>

Latest revision as of 15:31, 29 December 2022

This template defines the table "Tests". This table has not been created yet.

This is a test!