Template:TestThisTable: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Starfox9507
Created page with "<noinclude> This is the "Book" template. {{#cargo_declare:_table=Books |Authors=List (,) of Page |Genres=List (,) of String |Year_of_publication=Date |Number_of_pages=Integer}} </noinclude> <includeonly> {{#cargo_store:_table=Books}} {| ! Author(s) | {{#arraymap:{{{Authors|}}}|,|x|{{#formredlink:form=Author|target=x}} }} |- ! Genre(s) | {{{Genres|}}} |- ! Year of publication | {{{Year_of_publication|}}} |- ! Number of pages | {{{Number_of_pages|}}} |} </includeonly>"
 
imported>Starfox9507
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>
<noinclude>
<br>
This is the "Book" template.
{{#get_db_data:db = spawncount
| parameters={{{mob name|{{PAGENAMEE}}}}}
| data= mobcount=mobcount, zonename=zonename
}}<!--
-->{| class="wikitable"
! zonename !! mobcount{{#for_external_table:|<nowiki/>
{{!}}-
{{!}} {{{zonename}}} {{!}}{{!}} {{{mobcount}}}
}}
|}</onlyinclude></includeonly>



{{#cargo_declare:_table=Books
==Usage==
|Authors=List (,) of Page
Work in progress...
|Genres=List (,) of String
===Examples===
|Year_of_publication=Date
<pre>{{TestThisTable|mob name=Seeker_Bats}}</pre>
|Number_of_pages=Integer}}

</noinclude>
{{TestThisTable|mob name=Seeker_Bats}}
<includeonly>
{{#cargo_store:_table=Books}}
{|
! Author(s)
| {{#arraymap:{{{Authors|}}}|,|x|{{#formredlink:form=Author|target=x}} }}
|-
! Genre(s)
| {{{Genres|}}}
|-
! Year of publication
| {{{Year_of_publication|}}}
|-
! Number of pages
| {{{Number_of_pages|}}}
|}
</includeonly>

Latest revision as of 11:17, 29 February 2024


Usage

Work in progress...

Examples

{{TestThisTable|mob name=Seeker_Bats}}



Error: Incomplete information for this database ID spawncount (type).
Error: Incomplete information for this database ID spawncount (user/user file).
Error: Incomplete information for this database ID spawncount (name).
Error: Incomplete information for this database ID spawncount (server).
Error: No "from / join on" parameter specified.
{| class="wikitable" ! zonename !! mobcount |}