ARK: Survival Evolved Wiki
Widowbot (discusión | contribuciones)
m (→‎Uso: clean up)
Cadaei (discusión | contribuciones)
(added replacing spaces with underscores. Cargo saves all categories with underscores.)
Línea 1: Línea 1:
<includeonly>{{#ask: [[Category:{{{1|}}}]] [[ingredient1::+]] [[Pagename::+]]
+
<includeonly>{{#cargo_query: tables = _pageData, Craftables=c
  +
| fields = c._pageName, c.requiredLevel, c.craftedIn, c.craftedIn2, c.engramPoints, c.ingredient1, c.quantity1, c.ingredient2, c.quantity2, c.ingredient3, c.quantity3, c.ingredient4, c.quantity4, c.ingredient5, c.quantity5, c.ingredient6, c.quantity6, c.ingredient7, c.quantity7, c.ingredient8, c.quantity8, c.ingredient9, c.quantity9, c.ingredient10, c.quantity10, c.prerequisite1, c.prerequisite2, c.prerequisite3, c.craftingXP, _pageData._categories
| ?Required Level
 
  +
| join on = _pageData._pageName = c._pageName
| ?Crafted In
 
  +
| where = c.ingredient1 <> "" AND _pageData._categories HOLDS "{{#replace:{{{1|nothing}}}|<nowiki> </nowiki>|_}}"
| ?Engram Points
 
 
| format = template
| ?ingredient1
 
 
| template = CraftingTableRow
| ?quantity1
 
  +
| intro = {{CraftingTableHeader|{{{2|{{{1|unknown}}} Recipes}}}}}
| ?ingredient2
 
  +
| outro = {{TableEndHTML}}
| ?quantity2
 
  +
| order by = c.requiredLevel ASC, c._pageName ASC
| ?ingredient3
 
  +
| limit = 100
| ?quantity3
 
| ?ingredient4
 
| ?quantity4
 
| ?ingredient5
 
| ?quantity5
 
| ?ingredient6
 
| ?quantity6
 
| ?ingredient7
 
| ?quantity7
 
| ?ingredient8
 
| ?quantity8
 
| ?ingredient9
 
| ?quantity9
 
| ?ingredient10
 
| ?quantity10
 
| ?prerequisite1
 
| ?prerequisite2
 
| ?prerequisite3
 
| ?Crafting XP
 
| format=template
 
| template=CraftingTableRow
 
| introtemplate=CraftingTableHeader{{!}}{{{2|}}}
 
| outrotemplate=TableEnd
 
| sort=Required level
 
| order=asc
 
| link=none
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
==Uso==
+
==Usage==
  +
First parameter is the category, second parameter is the title of the table for mobile-devices
El primer parámetro es la categoria, el segundo es el título de la tabla para dispositivos móviles
 
<nowiki>{{CraftingTable|Munición|Munición}}</nowiki>
+
<nowiki>{{CraftingTable|Ammunition|Ammunition Recipes}}</nowiki>
{{CraftingTable|Munición|Munición}}
+
{{CraftingTable|Ammunition|Ammunition Recipes}}
[[Categoría:Plantillas de wiki semántico]]</noinclude>
+
[[Category:Cargo Query Templates]]</noinclude>

Revisión del 22:16 15 feb 2018

Usage

First parameter is the category, second parameter is the title of the table for mobile-devices

{{CraftingTable|Ammunition|Ammunition Recipes}}
Error: no se encontró la tabla _pageData.