Actions

Template

Difference between revisions of "Item/Table"

From Crea Wiki

m (1 revision)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
{{#switch: {{{list}}} | item =
 
{{#ask: [[Has subcategory::{{{category|}}}]][[Has image::+]]
 
{{#ask: [[Has subcategory::{{{category|}}}]][[Has image::+]]
 
|?# ?Has image
 
|?# ?Has image
Line 12: Line 13:
 
|outrotemplate=Item/Table/Outro
 
|outrotemplate=Item/Table/Outro
 
}}
 
}}
</includeonly>
+
| armor =
<noinclude>
+
{{#ask: [[Has category:: Armor]] [[Has subcategory::{{{category|}}}]] [[Has image::+]]
 +
|?# ?Has image
 +
|?Has defense
 +
|?Has level
 +
|?Has flavor
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows
 +
|introtemplate=Item/Table/Intro/Armor
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| basics =
 +
{{#ask: [[Has subcategory::{{{category|}}}]][[Has image::+]][[:+]] [[Has subpagename::!~*/* ]]
 +
|?# ?Has image
 +
|?Has category
 +
|?Has flavor
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows/4
 +
|introtemplate=Item/Table/Intro/Basics
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| potion =
 +
{{#ask:[[Has subcategory::{{{category|}}}]][[Has image::+]]
 +
|?# ?Has image
 +
|?Has effect
 +
|?Has tooltip
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows/4
 +
|introtemplate=Item/Table/Intro/Potion
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| recipelist =
 +
{{#ask:[[Has serviceRequired::{{{category|}}}]] [[Has image::+]]
 +
|?# ?Has image
 +
|?Has category
 +
|?Has subcategory
 +
|?Has ingredient
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows
 +
|introtemplate=Item/Table/Intro/RecipeList
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| uses =
 +
{{#ask: [[Has material::{{{category|}}}]][[Has image::+]]
 +
|?# ?Has image
 +
|?Has category
 +
|?Has subcategory
 +
|?Has flavor
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows
 +
|introtemplate=Item/Table/Intro/Uses
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| weapon =
 +
{{#ask: [[Has subcategory::{{{category|}}}]] [[Has image::+]]
 +
|?# ?Has image
 +
|?Has power
 +
|?Has level
 +
|?Has flavor
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows
 +
|introtemplate=Item/Table/Intro/Weapon
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| tool =
 +
{{#ask: [[Has subcategory::{{{category|}}}]][[Has image::+]]
 +
|?# ?Has image
 +
|?Has power
 +
|?Has level
 +
|?Has flavor
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows
 +
|introtemplate=Item/Table/Intro/Tool
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
| set =
 +
{{#ask:[[Category:Item]] [[Category:{{{category|}}}]][[Has image::+]]
 +
|?# ?Has image
 +
|?Has power
 +
|?Has defense
 +
|?Has tooltip
 +
|format=template
 +
|link=none
 +
|headers=show
 +
|template=Item/Table/Rows
 +
|introtemplate=Item/Table/Intro/Set
 +
|outrotemplate=Item/Table/Outro
 +
}}
 +
}}
 +
</includeonly><noinclude>
 
This template is to create tables on pages. Simply input which category you want to build a table for.
 
This template is to create tables on pages. Simply input which category you want to build a table for.
  
<pre>{{Item/Table | category= name of category }}</pre>
+
<pre>{{Item/Table | type= type of table | category= name of category }}</pre>
 
[[Category:Templates]][[Category:Semantic template]]
 
[[Category:Templates]][[Category:Semantic template]]
 
</noinclude>
 
</noinclude>

Revision as of 15:12, 11 April 2016

This template is to create tables on pages. Simply input which category you want to build a table for.

{{Item/Table | type= type of table | category= name of category }}