Difference between revisions of "Template:Gathering node table row"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(creation)
 
m
Line 1: Line 1:
<includeonly>{{#ask:[[{{{1}}}]]
<includeonly>|- {{#vardefine:gatheringnodecnt|{{#expr:{{#var:gatheringnodecnt|0}}+1}}}}{{#subobject:gatheringnode{{#var:gatheringnodecnt}}
| ?Has gathering area
| Has gathering node area                  = {{{area|{{PAGENAME}}}}}
| ?Has gathering type
| Has gathering node type                  = {{#vardefineecho:gathering_node_type|{{#switch:{{{type|}}}|logging unspoiled=Unspoiled Logging|harvesting unspoiled=Unspoiled Harvesting|mining unspoiled=Unspoiled Mining|quarrying unspoiled=Unspoiled Quarrying|fishing unspoiled=Unspoiled Fishing|spearfishing unspoiled=Unspoiled Spearfishing|#default={{ucfirst:{{{type|}}}}}}} }}
| ?Has gathering item output
| Has gathering node item output           = {{{item|}}}
| ?Has gathering level requirement
| Has gathering node level requirement     = {{{gathering-level|0}}}
| ?Has gathering perception requirement
| Has gathering node perception requirement = {{{perception|0}}}
| ?Has gathering node level
| Has gathering node level                 = {{{level|0}}}
| ?Has gathering respawn time
| Has gathering node respawn time           = {{{respawn|}}}
| link = none
}}
| valuesep=,
{{#ifeq:{{#var:gathering_node_show_area|false}}|true|{{!}} {{cname|{{{area|{{PAGENAME}}}}}}}}}
| format = template
| {{Map icon|{{lc:{{{type|}}}}}}} {{#var:gathering_node_type}}
| template = gathering table row format
| {{Item icon|{{{item|}}}}}
}}</includeonly><noinclude>
| style="text-align:right; padding-right:1em;" | {{#if:{{{gathering-level|}}}|{{{gathering-level|}}}|&mdash;}}
==Description==
| style="text-align:right; padding-right:1em;" | {{#if:{{{perception|}}}|{{{perception|}}}|&mdash;}}
<pre>{{Gathering table row|<action name>}}</pre>
| style="text-align:right; padding-right:1em;" | {{#if:{{{level|}}}|{{{level|}}}|&mdash;}}
| {{#if:{{{respawn|}}}|{{{respawn|}}}|&mdash;}}
</includeonly><noinclude>


This template is intended for use in ''gathering'' tables in conjunction with the {{tl|gathering table header}}.  It returns the wiki code for a single table row.  It does not return the table opening or closing tags, so those must be provided on the calling page.
== Usage ==
Creates a row storing a gathering node info. For use with {{tl|Gathering node table header}}.


It uses {{tl|gathering table row format}} to process the results of the semantic query.
<pre>
{{Gathering node table row
| area =
| type =
| item =
| gathering-level =
| perception =
| level =
| respawn =
}}
</pre>


===Parameters===
== Parameters ==
; ''unnamed parameter 1'' <action name> : Full name of the area article where such gathering node is available, including disambiguation suffixes.  
; area
: The area where this gathering node is available. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>.
; type
: The gathering node type. Accepts: ''logging'', ''logging unspoiled'', ''harvesting'', ''harvesting unspoiled'', ''mining'', ''mining unspoiled'', ''quarrying'', ''quarrying unspoiled'', ''fishing'', ''fishing unspoiled'', ''spearfishing'', and ''spearfishing unspoiled''.
; item
: The item obtained from this node.
; gathering-level
: The gathering level required in order to gather this node.
; perception
: The perception required in order to gather a HQ item from this node.
; level
: The node's level.
; respawn
: The respawn time for unspoiled/special nodes. Example: <code>2:00 am</code>.


== Example ==
[[Category:Gathering formatting templates]]</noinclude>
<pre>{{gathering table header}}
{{gathering action table row|}}
|}</pre>
{| class="gathering-role actions table"
{{gathering action table header}}
{{gathering action table row|Basic Synthesis (alchemist)}}
|}
 
[[Category:Gathering formatting templates]]
 
</noinclude>

Revision as of 18:32, 1 September 2018


Usage

Creates a row storing a gathering node info. For use with {{Gathering node table header}}.

{{Gathering node table row
| area =
| type = 
| item = 
| gathering-level = 
| perception = 
| level = 
| respawn = 
}}

Parameters

area
The area where this gathering node is available. Defaults to {{PAGENAME}}.
type
The gathering node type. Accepts: logging, logging unspoiled, harvesting, harvesting unspoiled, mining, mining unspoiled, quarrying, quarrying unspoiled, fishing, fishing unspoiled, spearfishing, and spearfishing unspoiled.
item
The item obtained from this node.
gathering-level
The gathering level required in order to gather this node.
perception
The perception required in order to gather a HQ item from this node.
level
The node's level.
respawn
The respawn time for unspoiled/special nodes. Example: 2:00 am.