Latest Neocron News and Information
- New test server patch #564 has been released to Vedeena
Difference between revisions of "Template:Api"
From Neocron Wiki
m |
|||
Line 7: | Line 7: | ||
=== Required parameters === | === Required parameters === | ||
− | {{#ifeq:{{{param_items}}}|yes|{{THNapi:Parameter - Items}}}}<!-- WS | + | {{#ifeq:{{{param_items}}}|yes|{{THNapi:Parameter - Items}} |
− | -->{{#ifeq:{{{param_faction}}}|yes|{{THNapi:Parameter - Faction}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_format}}}|yes|{{THNapi:Parameter - Format}}}}<!-- WS | + | -->{{#ifeq:{{{param_faction}}}|yes|{{THNapi:Parameter - Faction}} |
− | -->{{#ifeq:{{{param_group}}}|yes|{{THNapi:Parameter - Group}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_level}}}|yes|{{THNapi:Parameter - Level}}}}<!-- WS | + | -->{{#ifeq:{{{param_format}}}|yes|{{THNapi:Parameter - Format}} |
− | -->{{#ifeq:{{{param_order}}}|yes|{{THNapi:Parameter - Order}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_page}}}|yes|{{THNapi:Parameter - Page}}}}<!-- WS | + | -->{{#ifeq:{{{param_group}}}|yes|{{THNapi:Parameter - Group}} |
− | -->{{#ifeq:{{{param_plural}}}|yes|{{THNapi:Parameter - Plural}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_position}}}|yes|{{THNapi:Parameter - Position}}}}<!-- WS | + | -->{{#ifeq:{{{param_level}}}|yes|{{THNapi:Parameter - Level}} |
− | -->{{#ifeq:{{{param_qty}}}|yes|{{THNapi:Parameter - Qty}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_size}}}|yes|{{THNapi:Parameter - Size}}}}<!-- WS | + | -->{{#ifeq:{{{param_order}}}|yes|{{THNapi:Parameter - Order} |
− | -->{{#ifeq:{{{param_style}}}|yes|{{THNapi:Parameter - Style}}}}<!-- WS | + | }}}<!-- WS |
− | -->{{#ifeq:{{{param_viewname}}}|yes|{{THNapi:Parameter - Viewname}}}}<!-- WS | + | -->{{#ifeq:{{{param_page}}}|yes|{{THNapi:Parameter - Page}} |
− | -->{{#ifeq:{{{param_viewoption}}}|yes|{{THNapi:Parameter - Viewoption}}}} | + | }}<!-- WS |
+ | -->{{#ifeq:{{{param_plural}}}|yes|{{THNapi:Parameter - Plural}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_position}}}|yes|{{THNapi:Parameter - Position}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_qty}}}|yes|{{THNapi:Parameter - Qty}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_size}}}|yes|{{THNapi:Parameter - Size}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_style}}}|yes|{{THNapi:Parameter - Style}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_viewname}}}|yes|{{THNapi:Parameter - Viewname}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_viewoption}}}|yes|{{THNapi:Parameter - Viewoption}} | ||
+ | }} | ||
=== Optional parameters === | === Optional parameters === | ||
− | {{#ifeq:{{{param_items}}}|opt|{{THNapi:Parameter - Items}}}}<!-- WS | + | {{#ifeq:{{{param_items}}}|opt|{{THNapi:Parameter - Items}} |
− | -->{{#ifeq:{{{param_faction}}}|opt|{{THNapi:Parameter - Faction}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_format}}}|opt|{{THNapi:Parameter - Format}}}}<!-- WS | + | -->{{#ifeq:{{{param_faction}}}|opt|{{THNapi:Parameter - Faction}} |
− | -->{{#ifeq:{{{param_group}}}|opt|{{THNapi:Parameter - Group}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_level}}}|opt|{{THNapi:Parameter - Level}}}}<!-- WS | + | -->{{#ifeq:{{{param_format}}}|opt|{{THNapi:Parameter - Format} |
− | -->{{#ifeq:{{{param_order}}}|opt|{{THNapi:Parameter - Order}}}}<!-- WS | + | }}}<!-- WS |
− | -->{{#ifeq:{{{param_page}}}|opt|{{THNapi:Parameter - Page}}}}<!-- WS | + | -->{{#ifeq:{{{param_group}}}|opt|{{THNapi:Parameter - Group}} |
− | -->{{#ifeq:{{{param_plural}}}|opt|{{THNapi:Parameter - Plural}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_position}}}|opt|{{THNapi:Parameter - Position}}}}<!-- WS | + | -->{{#ifeq:{{{param_level}}}|opt|{{THNapi:Parameter - Level}} |
− | -->{{#ifeq:{{{param_qty}}}|opt|{{THNapi:Parameter - Qty}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_size}}}|opt|{{THNapi:Parameter - Size}}}}<!-- WS | + | -->{{#ifeq:{{{param_order}}}|opt|{{THNapi:Parameter - Order}} |
− | -->{{#ifeq:{{{param_style}}}|opt|{{THNapi:Parameter - Style}}}}<!-- WS | + | }}<!-- WS |
− | -->{{#ifeq:{{{param_viewname}}}|opt|{{THNapi:Parameter - Viewname}}}}<!-- WS | + | -->{{#ifeq:{{{param_page}}}|opt|{{THNapi:Parameter - Page}} |
− | -->{{#ifeq:{{{param_viewoption}}}|opt|{{THNapi:Parameter - Viewoption}}}} | + | }}<!-- WS |
+ | -->{{#ifeq:{{{param_plural}}}|opt|{{THNapi:Parameter - Plural} | ||
+ | }}}<!-- WS | ||
+ | -->{{#ifeq:{{{param_position}}}|opt|{{THNapi:Parameter - Position}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_qty}}}|opt|{{THNapi:Parameter - Qty} | ||
+ | }}}<!-- WS | ||
+ | -->{{#ifeq:{{{param_size}}}|opt|{{THNapi:Parameter - Size}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_style}}}|opt|{{THNapi:Parameter - Style}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_viewname}}}|opt|{{THNapi:Parameter - Viewname}} | ||
+ | }}<!-- WS | ||
+ | -->{{#ifeq:{{{param_viewoption}}}|opt|{{THNapi:Parameter - Viewoption}} | ||
+ | }} | ||
{{ #if:{{{tag|}}} |[[Category:Wiki Item DB tags|{{{tag}}}]]}} | {{ #if:{{{tag|}}} |[[Category:Wiki Item DB tags|{{{tag}}}]]}} |
Revision as of 19:38, 2 July 2008
Api -
- Usage: No information
Required parameters
{{#ifeq:{{{param_order}}}|yes|{{THNapi:Parameter - Order} }}}
Optional parameters
{{#ifeq:{{{param_format}}}|opt|{{THNapi:Parameter - Format} }}}{{#ifeq:{{{param_plural}}}|opt|{{THNapi:Parameter - Plural} }}}{{#ifeq:{{{param_qty}}}|opt|{{THNapi:Parameter - Qty} }}}
Template Documentation | [edit] |
This documentation is transcluded from Template:Api/doc. (edit | history)
{{api | tag = tag:name | command = comand_name | usage = What it does | thn_only = no | param_items = yes/no/opt | param_faction = yes/no/opt | param_format = yes/no/opt | param_group = yes/no/opt | param_level = yes/no/opt | param_order = yes/no/opt | param_page = yes/no/opt | param_plural = yes/no/opt | param_position = yes/no/opt | param_qty = yes/no/opt | param_size = yes/no/opt | param_style = yes/no/opt | param_viewname = yes/no/opt | param_viewoption = yes/no/opt | param_tag = yes/no/opt | param_cols = yes/no/opt | param_class = yes/no/opt | param_index = yes/no/opt }}