Template:WildStar/id: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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}} or [[:Category:Link helper templates]] for helper templates for regular links.
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|{{BASEPAGENAME}}/api}} or [[:Category:Link helper templates]] for helper templates for regular links.


;Usage
;Usage
Line 11: Line 11:
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>
{{WildStar/id|AMP:Detonate|ns=WildStar}}
{{ {{BASEPAGENAME}}/id|AMP:Detonate|ns=WildStar}}


;Options
;Options
:1= Special link part names:
:1= Special link part names:
:* API - A [[{{BASEPAGENAME}}/UI API|UI API]] api page link. Defaults to t=member (.). Omits |2= in link text if 3 or 4 parts
:* API - A [[{{BASEPAGENAME}}:UI API|UI API]] api page link. Defaults to t=member (.). Omits |2= in link text if 3 or 4 parts
:* API TYPE - A [[{{BASEPAGENAME}}/API types|API types]] page link. Defaults to t=method (:). Omits |2= in link text if 3 or 4 parts
:* API TYPE - A [[{{BASEPAGENAME}}:API types|API types]] page link. Defaults to t=method (:). Omits |2= in link text if 3 or 4 parts
:* API EVENT - A [[{{BASEPAGENAME}}/API events|API events]] page link. Defaults to t=member (.). Omits del |2= in link text if 3 or 4 parts
:* API EVENT - A [[{{BASEPAGENAME}}:API events|API events]] page link. Defaults to t=member (.). Omits del |2= in link text if 3 or 4 parts
:* CVAR - A [[{{BASEPAGENAME}}/CVars|CVars]] page link. Defaults to t=member (.).
:* CVAR - A [[{{BASEPAGENAME}}:CVars|CVars]] page link. Defaults to t=member (.).
:* APIT - short-hand for ''API TYPE''. Otherwise works the same and produces same links.
:* APIT - short-hand for ''API TYPE''. Otherwise works the same and produces same links.
:* APIE - short-hand for ''API EVENT''. Otherwise works the same and produces same links.
:* APIE - short-hand for ''API EVENT''. Otherwise works the same and produces same links.
Line 40: Line 40:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--


-->{{#vardefine:sub|{{{ns|{{NAMESPACE}}}}}}}<!--
-->{{#vardefine:sub|{{{ns|{{#var:sub}}}}}|{{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