Difference between revisions of "Template:AB"

From Archives of Lusternian Lore
Jump to navigation Jump to search
(Instead of the preformatted text box, I have made this more in line with wiki style.)
(Moved the template code to the top of the page; added an example section.)
Line 1: Line 1:
<noinclude>
<includeonly>
This template should be used in conjunction with the [[Template:Sub|Sub Template]] for all AB entries, so that future style changes can be made across the entire wiki at once.
 
== Parameters: ==
<code>skillname</code> *    - Self Explanatory. Make sure to use the same case and formatting as its shortname from the TOC<br>
<code>syntax</code>        - Separate Syntaxes with <<nowiki />br> tags.<br>
<code>cost</code>          - This argument holds both the cost and effect blocks. See [[Style Guide]].<br>
<code>description</code> *  - Obvious. If there are SYNTAXes in the text, surround them in <<nowiki />tt> tags.<br>
<code>notes</code>          - For editorial comments explaining the effect pool or details on how the skill actually works. <br>
 
(*required arguments)
 
Be sure to clear linebreaks from the description. If you're having trouble formatting, contact the Chief Chronicler.
[[Category: Templates]]
</noinclude><includeonly>
== {{{skillname|Needs "skillname"!}}} ==
== {{{skillname|Needs "skillname"!}}} ==
{|
{|
Line 37: Line 23:
{{!}}-
{{!}}-
{{!}}}
{{!}}}
}}</includeonly>
}}</includeonly><noinclude>
This template should be used in conjunction with the [[Template:Sub|Sub Template]] for all AB entries, so that future style changes can be made across the entire wiki at once.
 
== Parameters: ==
<code>skillname</code> *    - Self Explanatory. Make sure to use the same case and formatting as its shortname from the TOC<br>
<code>syntax</code>        - Separate Syntaxes with <<nowiki />br> tags.<br>
<code>cost</code>          - This argument holds both the cost and effect blocks. See [[Style Guide]].<br>
<code>description</code> *  - Obvious. If there are SYNTAXes in the text, surround them in <<nowiki />tt> tags.<br>
<code>notes</code>          - For editorial comments explaining the effect pool or details on how the skill actually works. <br>
 
(*required arguments)
 
Be sure to clear linebreaks from the description. If you're having trouble formatting, contact the Chief Chronicler.
 
== Example ==
<pre>{{AB
|skillname = Swimming
|syntax = SWIM <direction>
|description = Using this ability, you can swim in lakes, rivers, and the ocean, albeit slowly.
}}</pre>
{{AB
|skillname = Swimming
|syntax = SWIM <direction>
|description = Using this ability, you can swim in lakes, rivers, and the ocean, albeit slowly.
}}
[[Category: Templates]]</noinclude>

Revision as of 21:11, 11 July 2022

This template should be used in conjunction with the Sub Template for all AB entries, so that future style changes can be made across the entire wiki at once.

Parameters:

skillname * - Self Explanatory. Make sure to use the same case and formatting as its shortname from the TOC
syntax - Separate Syntaxes with <br> tags.
cost - This argument holds both the cost and effect blocks. See Style Guide.
description * - Obvious. If there are SYNTAXes in the text, surround them in <tt> tags.
notes - For editorial comments explaining the effect pool or details on how the skill actually works.

(*required arguments)

Be sure to clear linebreaks from the description. If you're having trouble formatting, contact the Chief Chronicler.

Example

{{AB
|skillname = Swimming
|syntax = SWIM <direction>
|description = Using this ability, you can swim in lakes, rivers, and the ocean, albeit slowly.
}}

Swimming

Syntax
SWIM <direction>

Using this ability, you can swim in lakes, rivers, and the ocean, albeit slowly.