Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
Template:Id
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Use on text which needs a reference-able html 'id', for links back to a specific spot in a page, when a page 'section' is inappropriate. For example, items in a list like for dev api functions. See also [[Template:api]]. ;Usage * 1 - first name part, usually a page name prefix, like API or CVar * 2 - second name part, a function, object, variable, some other kind of thing. * 3 - third name part, usually a method or other type of member, or some other kind of child * t [method,member] - type of page. generally does not need to be set. * i [1,0] - create id anchor. Default is 1. * f [1,0] - delimited names like methods and members will display full name. Default is 0. ;Examples :''Note: Hover to see resultant links.'' <nowiki>{{id|CVar|assistAttack}}</nowiki> : {{id|CVar|assistAttack}} <nowiki>{{id|API|UIObject|SetAlpha}}</nowiki> : {{id|API|UIObject|SetAlpha}} <nowiki>{{id|API|UIObject|SetAlpha|t=member}}</nowiki> : {{id|API|UIObject|SetAlpha|t=member}} <nowiki>{{id|API|ChatFrame|AddChannel|f=1}}</nowiki> : {{id|API|ChatFrame|AddChannel|f=1}} <nowiki>{{id|API|ChatFrame|AddChannel}}</nowiki> : {{id|API|ChatFrame|AddChannel}} [[Category:Interface customization templates|{{PAGENAME}}]] ---- ;Template <onlyinclude><includeonly><!-- -->{{#vardefine:name|{{{3|{{{2|{{{1|}}}}}}}}}}}<!-- -->{{#vardefine:id|{{#if:{{{3|}}}|{{{2}}}{{#ifeq:{{{t|}}}|member|.|<nowiki>:</nowiki>}}}}{{#var:name}}}}<!-- -->{{#vardefine:link|{{#if:{{{3|}}}|{{{1}}} {{{2}}} {{{3}}}|{{#if:{{{2|}}}|{{{1}}} {{{2}}}|{{{1|}}}}}}}}}<!-- --><span {{#ifeq:{{{i|}}}|0||id="{{#var:id}}"}}>[[{{#var:link}}|{{#if:{{{f|}}}|{{#var:id}}|{{#var:name}}}}]]</span><!-- --></includeonly></onlyinclude>
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Id
(
edit
)