Template:ArgDocLine/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
{{documentation}}
{{Documentation}}
This template provides left facing bracket data for [[Template:L]].


The [[Template:ArgDocHeader|ArgDocHeader]], [[Template:ArgDocLine|ArgDocLine]], and [[Template:ArgDocFooter|ArgDocFooter]] templates should be used together to build tables of arguments for template documentation.
==Usage==
This template should not normally be linked to, however, it can be, if need be, by entering the following code.


<pre>{{L/o}}</pre>
<pre>
{{ArgDocHeader}}
{{ArgDocLine
|name =
|description =
|optional =
|values =
|default =
}}
{{ArgDocFooter}}
</pre>


==Arguments==
<includeonly>[[Category:Formatting templates|{{PAGENAME}}]]</includeonly>

{{ArgDocHeader|caption=ArgDocHeader}}
{{ArgDocLine
|name = caption
|description = Caption for the table
|optional = Yes
|values = Any text
}}
{{ArgDocFooter}}{{ArgDocHeader|caption=ArgDocLine}}
{{ArgDocLine
|name = name
|description = Name of the argument. Do not set this if the argument is anonymous (unnamed).
|optional = Yes
|values = Any text
}}
{{ArgDocLine
|name = description
|description = Description of the argument
|optional = Yes
|values = Any text
}}
{{ArgDocLine
|name = optional
|description = Is the argument optional?
|optional = Yes
|values = <code>Yes</code> <code>No</code>
|default = <code>No</code>
}}
{{ArgDocLine
|name = values
|description = Values the argument accepts
|values = Any text
}}
{{ArgDocLine
|name = default
|description = The default value for the argument, if any
|optional = Yes
|values = Any text
}}
{{ArgDocFooter}}

Latest revision as of 11:28, 17 October 2024

This is a documentation subpage for Template:ArgDocLine.
It contains usage information, categories, and other content that is not part of the original template page.

The ArgDocHeader, ArgDocLine, and ArgDocFooter templates should be used together to build tables of arguments for template documentation.

{{ArgDocHeader}}
{{ArgDocLine
|name = 
|description = 
|optional = 
|values = 
|default = 
}}
{{ArgDocFooter}}

Arguments

ArgDocHeader
Argument Optional?
caption Caption for the table
Values Any text
ArgDocLine
Argument Optional?
name Name of the argument. Do not set this if the argument is anonymous (unnamed).
Values Any text
description Description of the argument
Values Any text
optional Is the argument optional?
Values Yes No Default No
values Values the argument accepts
Values Any text
default The default value for the argument, if any
Values Any text