Difference between revisions of "Reference:Widgets"
(Created page with "The '''Widgets''' extension allows the creation of raw HTML pages that can be embedded (similarly to templates) in normal wiki pages. You do this by creating pages in the '...") |
Fbaeckmann (talk | contribs) m (Text replacement - "|edition=BlueSpice pro |active=Yes" to "|edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |active=Yes") |
Extension: Widgets
Overview | |||
---|---|---|---|
Description: | integration of external content from social media sites. | ||
State: | stable | Dependency: | MediaWiki |
Developer: | Sergey Chernyshev, Yaron Koren | License: | GPL v2+ |
Type: | MediaWiki | Category: | Rich Articles |
Edition: | BlueSpice pro, BlueSpice Farm, BlueSpice Cloud | ||
Features[edit source]
The Widgets extension allows the creation of raw HTML pages that can be embedded (similarly to templates) in normal wiki pages. You do this by creating pages in the Widget namespace.
They avoid the security problems of raw HTML in editable wiki pages because the privilege to edit in the Widget namespace is managed.
Many pre-written Widgets are available.
Usage[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Widgets&action=edit§ion=6" title="Edit section: Usage">edit][edit | edit source] To add a widget to your MediaWiki installation, just create a page in the Widget: namespace and then use the
parser function to include it in the pages of the wiki. {{#widget}} parser function[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Widgets&action=edit§ion=7" title="Edit section: {{#widget}} parser function">edit][edit | edit source]
To add a defined widget to pages, users can use the {{#widget}}
parser function. The syntax is as follows:
{{#widget:WidgetName|param1=value1|param2=value2}}
Where WidgetName is a page name in the Widget namespace (e.g. Widget:WidgetName) and param=value pairs are the settable parameters, defined within the widget code.
Parameters can be expanded inside a widget using Smarty syntax, as follows:
<a href="<!--{$param1|escape:'url'}-->"><!--{$param2|escape:'html'}--></a>
The escape
options specifies how the parameter will be 'escaped', or encoded, in the resultant Widget. See http://www.smarty.net/docsv2/en/language.modifier.escape for more information on this.
Source: mediawiki For more information please visit MediaWiki.
The {{BSExtensionInfobox |desc=integration of external content from social media sites. |status=stable |developer=Sergey Chernyshev, Yaron Koren |type=MediaWiki |edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |active=Yes |compatible=MediaWiki |category=Rich Articles |license=GPL v2+ |docu=https://www.mediawiki.org/wiki/Extension:Widgets#Usage }}The '''Widgets''' extension allows the creation of raw HTML pages that can be embedded (similarly to templates) in normal wiki pages. You do this by creating pages in the ''Widget'' namespace. They avoid the security problems of raw HTML in editable wiki pages because the privilege to edit in the Widget namespace is managed. Many pre-written Widgets are available. ==<span id="Usage" class="mw-headline">Usage</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Widgets&action=edit§ion=6" title="Edit section: Usage">edit]</span></span>== To add a widget to your MediaWiki installation, just create a page in the Widget: namespace and then use the <code>{{#widget:...}}</code> parser function to include it in the pages of the wiki. ===<span id=".7B.7B.23widget.7D.7D_parser_function"></span><span id="{{#widget}}_parser_function" class="mw-headline">{{#widget}} parser function</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Widgets&action=edit§ion=7" title="Edit section: {{#widget}} parser function">edit]</span></span>=== To add a defined widget to pages, users can use the <code>{{#widget}}</code> parser function. The syntax is as follows: <pre>{{#widget:WidgetName|param1=value1|param2=value2}} </pre> Where WidgetName is a page name in the Widget namespace (e.g. Widget:WidgetName) and param=value pairs are the settable parameters, defined within the widget code. Parameters can be expanded inside a widget using [http://www.smarty.net/syntax_comparison Smarty syntax], as follows: <pre><a href="<!--{$param1|escape:'url'}-->"><!--{$param2|escape:'html'}--></a> </pre> The <code>escape</code> options specifies how the parameter will be 'escaped', or encoded, in the resultant Widget. See [http://www.smarty.net/docsv2/en/language.modifier.escape http://www.smarty.net/docsv2/en/language.modifier.escape] for more information on this. '''Source: '''[https://www.mediawiki.org/wiki/Extension:Widgets mediawiki]For more information please visit [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki]. {{Translation}} [[Category:BlueSpice_pro]] [[Category:MediaWiki]] [[Category:Extension]]
(20 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{BSExtensionInfobox | |
+ | |desc=integration of external content from social media sites. | ||
+ | |status=stable | ||
+ | |developer=Sergey Chernyshev, Yaron Koren | ||
+ | |type=MediaWiki | ||
+ | |edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud | ||
+ | |active=Yes | ||
+ | |compatible=MediaWiki | ||
+ | |category=Rich Articles | ||
+ | |license=GPL v2+ | ||
+ | |docu=https://www.mediawiki.org/wiki/Extension:Widgets#Usage | ||
+ | }}The '''Widgets''' extension allows the creation of raw HTML pages that can be embedded (similarly to templates) in normal wiki pages. You do this by creating pages in the ''Widget'' namespace. | ||
+ | They avoid the security problems of raw HTML in editable wiki pages because the privilege to edit in the Widget namespace is managed. | ||
− | + | Many pre-written Widgets are available. | |
− | |||
− | |||
− | |||
− | + | For more information please visit [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki]. | |
− | |||
− | |||
− | + | {{Translation}} | |
− | + | [[Category:BlueSpice_pro]] | |
− | + | [[Category:MediaWiki]] | |
− | + | [[Category:Extension]] | |
− | |||
− | |||
− | |||
− |