(Imported by WSPageSync) |
(Imported by PageSync) Tag: wsps-content-edit-tag |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>==Syntax== | <noinclude> | ||
==Syntax== | |||
<pre> | <pre> | ||
{{#widget: Link | {{#widget: Link | ||
| Line 25: | Line 26: | ||
|hrefsurround=Used for images that should be surrounded by an ''a'' link | |hrefsurround=Used for images that should be surrounded by an ''a'' link | ||
|targetsurround= | |targetsurround= | ||
|alt= | |||
}} | }} | ||
</pre> | </pre> | ||
==example== | ==example== | ||
{{#widget: Link |type=a |href= | {{#widget: Link |type=a |href={{fullurl:{{FULLPAGENAME}}|action=edit}} |text=edit this page }} | ||
;does not work | ;does not work | ||
| Line 34: | Line 36: | ||
</noinclude><includeonly><!--{if (isset($hrefsurround) && $hrefsurround != "")}--><a href="<!--{$hrefsurround|escape:'html'}-->" <!--{if (isset($targetsurround))}-->target="<!--{$targetsurround|escape:'html'}-->"<!--{/if}-->><!--{/if}--><<!--{$type| | </noinclude><includeonly><!--{if (isset($hrefsurround) && $hrefsurround != "")}--><a href="<!--{$hrefsurround|escape:'html'}-->" <!--{if (isset($targetsurround))}-->target="<!--{$targetsurround|escape:'html'}-->"<!--{/if}-->><!--{/if}--><<!--{$type|allowedvalues:'a,button,img,li'}--> <!--{if (isset($typeattribute) && $typeattribute!="")}-->type="<!--{$typeattribute|escape:'html'}-->"<!--{/if}--> <!--{if (isset($class) && $class!="")}-->class="<!--{$class|escape:'html'}-->"<!--{/if}--> <!--{if (isset($id) && $id!="")}-->id="<!--{$id|escape:'html'}-->"<!--{/if}--> <!--{if (isset($style) && $style!="")}-->style="<!--{$style|escape:'html'}-->"<!--{/if}--> <!--{if (isset($href))}-->href="<!--{$href|escape:'html'}-->"<!--{/if}--> <!--{if (isset($alt))}-->alt="<!--{$alt|escape:'html'}-->"<!--{/if}--> <!--{if (isset($src) && $src!="")}-->src="<!--{$src|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datasrc) && $datasrc!="")}-->data-src="<!--{$datasrc|escape:'html'}-->"<!--{/if}--> <!--{if (isset($width) && $width!="" )}-->width="<!--{$width|escape:'html'}-->"<!--{else}--><!--{/if}--> <!--{if (isset($height) && $height!="" )}-->height="<!--{$height|escape:'html'}-->"<!--{else}--><!--{/if}--> <!--{if (isset($title))}-->title="<!--{$title|escape:'html'}-->"<!--{/if}--> <!--{if (isset($ariacontrols))}-->aria-controls="<!--{$ariacontrols|escape:'html'}-->"<!--{/if}--> <!--{if (isset($role))}-->role="<!--{$role|escape:'html'}-->"<!--{/if}--> <!--{if (isset($target))}-->target="<!--{$target|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datatoggle))}-->data-toggle="<!--{$datatoggle|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datatarget) && $datatarget!="")}-->data-target="<!--{$datatarget|escape:'html'}-->"<!--{/if}--> <!--{if (empty($for))}--><!--{else}-->for="<!--{$for|escape:'html'}-->"<!--{/if}--> <!--{if (isset($name) && $name!="" )}-->name="<!--{$name|escape:'html'}-->"<!--{/if}--> <!--{if (isset($value) && $value!="" )}-->value="<!--{$value|escape:'html'}-->"<!--{/if}--> <!--{if (isset($dataplacement))}-->data-placement="<!--{$dataplacement|escape:'html'}-->"<!--{/if}--> <!--{if (isset($dataslide) && $dataslide!="" )}-->data-slide="<!--{$dataslide|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datadismiss) && $datadismiss!="" )}-->data-dismiss="<!--{$datadismiss|escape:'html'}-->"<!--{/if}-->><!--{if (isset($text) && $text!="")}--><!--{$text|sanitize}--><!--{/if}--></<!--{$type|allowedvalues:'a,button,img,li'}-->><!--{if (isset($hrefsurround) && $hrefsurround!="")}--></a><!--{/if}--></includeonly> | ||
<!--{if (isset($class) && $class!="")}-->class="<!--{$class|escape:'html'}-->"<!--{/if}--> <!--{if (isset($id) && $id!="")}-->id="<!--{$id|escape:'html'}-->"<!--{/if}--> <!--{if (isset($style) && $style!="")}-->style="<!--{$style|escape:'html'}-->"<!--{/if}--> <!--{if (isset($href))}-->href="<!--{$href|escape:'html'}-->"<!--{/if}--> <!--{if (isset($src) && $src!="")}-->src="<!--{$src|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datasrc) && $datasrc!="")}-->data-src="<!--{$datasrc|escape:'html'}-->"<!--{/if}--> <!--{if (isset($width) && $width!="" )}-->width="<!--{$width|escape:'html'}-->"<!--{else}--><!--{/if}--> <!--{if (isset($height) && $height!="" )}-->height="<!--{$height|escape:'html'}-->"<!--{else}--><!--{/if}--> <!--{if (isset($title))}-->title="<!--{$title|escape:'html'}-->"<!--{/if}--> <!--{if (isset($ariacontrols))}-->aria-controls="<!--{$ariacontrols|escape:'html'}-->"<!--{/if}--> <!--{if (isset($role))}-->role="<!--{$role|escape:'html'}-->"<!--{/if}--> <!--{if (isset($target))}-->target="<!--{$target|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datatoggle))}-->data-toggle="<!--{$datatoggle|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datatarget) && $datatarget!="")}-->data-target="<!--{$datatarget|escape:'html'}-->"<!--{/if}--> <!--{if (empty($for))}--><!--{else}-->for="<!--{$for|escape:'html'}-->"<!--{/if}--> <!--{if (isset($name) && $name!="" )}-->name="<!--{$name|escape:'html'}-->"<!--{/if}--> <!--{if (isset($value) && $value!="" )}-->value="<!--{$value|escape:'html'}-->"<!--{/if}--> <!--{if (isset($dataplacement))}-->data-placement="<!--{$dataplacement|escape:'html'}-->"<!--{/if}--> <!--{if (isset($dataslide) && $dataslide!="" )}-->data-slide="<!--{$dataslide|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datadismiss) && $datadismiss!="" )}-->data-dismiss="<!--{$datadismiss|escape:'html'}-->"<!--{/if}-->><!--{if (isset($text) && $text!="")}--><!--{$text| | |||
| ws-base-props | |||
|---|---|---|---|
| Line 1: | Line 1: | ||
{{Base properties | |||
|Class=Application page | |||
|Title=Widget:Link | |||
|Version history={{Version history item | |||
|Version number=1.0 | |||
|Version description=Initial version | |||
|Version date=2022-12-02 08:42:56 | |||
}} | |||
}} | |||
| ws-class-props | |||
| Line 1: | Line 1: | ||
{{Csp class properties | |||
|Type=CSP Basis Core | |||
|Origin=CSP Basis | |||
}} | |||
Latest revision as of 09:37, 15 July 2025
Syntax
{{#widget: Link
|type=a, li, button, img
|typeattribute=
|id=
|class=
|style=
|href=
|src=
|datasrc=
|title=
|ariacontrols=
|text=
|target=
|role=
|height=
|width=
|for=
|datatoggle=
|datatarget=
|dataplacement=
|dataslide=
|datadismiss=
|hrefsurround=Used for images that should be surrounded by an ''a'' link
|targetsurround=
|alt=
}}
example
- does not work