Difference between revisions of "Template:Class doclink"

m
add branch parameter, defaults to "master"
>Shirayuki
(pass PATH to urlencode, per Help:Magic_words#urlencode)
>SamanthaNguyen
m (add branch parameter, defaults to "master")
Line 1: Line 1:
<span class=plainlinks>[https://doc.wikimedia.org/{{{project|mediawiki-core}}}/master/{{#ifeq:{{{project|mediawiki-core}}}|mediawiki-core|php/}}{{{type|class}}}{{urlencode:{{replace|{{trim|{{#invoke:String|replace|source={{{class|{{{1}}}}}}|pattern=_|replace=__}}}}|\|_1_1}}|PATH}}.{{#if:{{{anchor|}}}|html#{{{anchor}}}|html}} {{{text|{{{2|{{{class|{{{1}}}}}}}}}}}}]</span><noinclude>
<span class=plainlinks>[https://doc.wikimedia.org/{{{project|mediawiki-core}}}/{{{branch|master}}}/{{#ifeq:{{{project|mediawiki-core}}}|mediawiki-core|php/}}{{{type|class}}}{{urlencode:{{replace|{{trim|{{#invoke:String|replace|source={{{class|{{{1}}}}}}|pattern=_|replace=__}}}}|\|_1_1}}|PATH}}.{{#if:{{{anchor|}}}|html#{{{anchor}}}|html}} {{{text|{{{2|{{{class|{{{1}}}}}}}}}}}}]</span><noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>
Anonymous user