Template:WildStar/id: Difference between revisions

no edit summary
(Created page with "Adds a link with an html id= to a wiki page, that is referable via link with an # (anchor). Optionally create complex links and ids for technical pages. See {{t|WildStar/api}}...")
No edit summary
Line 10: Line 10:
;Example
;Example
Link accessible via [[#AMP:Detonate]] (click and page will move there)
Link accessible via [[#AMP:Detonate]] (click and page will move there)
<pre>{{../id|AMP:Detonate}}</pre>
<pre>{{\|id|AMP:Detonate}}</pre>
{{../id|AMP:Detonate|ns=WildStar}}
{{WildStar\id|AMP:Detonate|ns=WildStar}}


;Options
;Options
Line 38: Line 38:
----
----
;Template
;Template
<onlyinclude><!--
<onlyinclude><includeonly><!--


-->{{#vardefine:sub|{{{ns|{{BASEPAGENAME}}}}}}}<!--
-->{{#vardefine:sub|{{{ns|{{NAMESPACE}}}}}}}<!--


-->{{#vardefine:t1|{{#switch:{{{1|}}}|APIT=API TYPE|APIE=API EVENT|#default={{{1|}}}}}}}<!-- alternate names
-->{{#vardefine:t1|{{#switch:{{{1|}}}|APIT=API TYPE|APIE=API EVENT|#default={{{1|}}}}}}}<!-- alternate names
Line 50: Line 50:
-->{{#if:{{{3|}}}|<span id="{{{2}}}{{#var:tDEL}}{{{3}}}">[[{{#var:sub}}/{{#var:t1}} {{{2}}} {{{3}}}|{{#var:tLT2}}{{{3}}}]]</span>|<!--
-->{{#if:{{{3|}}}|<span id="{{{2}}}{{#var:tDEL}}{{{3}}}">[[{{#var:sub}}/{{#var:t1}} {{{2}}} {{{3}}}|{{#var:tLT2}}{{{3}}}]]</span>|<!--
-->{{#if:{{{2|}}}|<span id="{{{2}}}">[[{{#var:sub}}/{{#var:t1}} {{{2}}}|{{{2}}}]]</span>|<!--
-->{{#if:{{{2|}}}|<span id="{{{2}}}">[[{{#var:sub}}/{{#var:t1}} {{{2}}}|{{{2}}}]]</span>|<!--
-->{{#if:{{{1|}}}|<span id="{{{1}}}">[[{{#var:sub}}/{{{1}}}]]</span>|}}}}}}}}</onlyinclude>
-->{{#if:{{{1|}}}|<span id="{{{1}}}">[[{{#var:sub}}/{{{1}}}]]</span>|}}}}}}}}<!--
 
--></includeonly></onlyinclude>