Changes

Jump to: navigation, search

Template:Widget

4,931 bytes added, 16:57, 27 December 2020
Created page with "<noinclude> This is the 'Widget' template. It should be called in the following format: <pre> {{Widget |name= |description= |author= |provider= |providerurl= |status= |..."
<noinclude>
This is the 'Widget' template.
It should be called in the following format:
<pre>
{{Widget
|name=
|description=
|author=
|provider=
|providerurl=
|status=
|security=
}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly>{{#ifeq: {{#show: {{PAGENAME}} |?Widget Status }} | defunct |
<div style="border: 3px solid #970000; background: #ffffff; padding: 1em; min-height: 100px">
<span style="color: #970000; font-size: 150%; font-weight: 700">This widget is defunct since the respective service is no longer available.</span><br><br><span style="color: #970000; font-size: 125%">You are advised do remove all references to this widget on your wiki followed by deleting the "Widget:{{PAGENAME}}" page.</span>
</div>
<br />
<table cellpadding="0" cellspacing="0" border="0"><tr valign="top"><td>
<table style="width: 25em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; padding: 0.2em; text-align:left;">
<tr><td style="text-align: center; background-color:#006398; color: #fff;" colspan="2">'''<big>{{PAGENAME}} widget</big>'''</td></tr>
<tr valign="top"><td align="right">'''Description:'''</td><td>[[Widget Description::{{{description|}}}]]</td></tr>
<tr valign="top"><td align="right">'''Author:'''</td><td>{{#arraymap:{{{author|}}}|,|@@@|[[Widget Author::User:@@@|@@@]]}}</td></tr>
{{#if:{{{providerurl|}}}{{{provider|}}}|<tr valign="top"><td align="right">'''Provider:'''</td><td>{{{provider|}}}</td></tr>}}
<tr valign="top"><td align="right">'''Status:'''</td><td>{{{status|unknown}}}</td></tr>
<tr valign="top"><td align="right">'''Security:'''</td><td>[[Widget Security::{{{security|unknown}}}]]</td></tr>
<tr valign="top"><td colspan="2" align="center">{{AddThis}}</td></tr>
</table>
</td><td style="padding-left: 10px">
</td></tr>
</table>
|
<table cellpadding="0" cellspacing="0" border="0"><tr valign="top"><td>
<table style="width: 25em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; padding: 0.2em; text-align:left;">
<tr><td style="text-align: center; background-color:#006398; color: #fff;" colspan="2">'''<big>{{PAGENAME}} widget</big>'''</td></tr>
<tr valign="top"><td align="right">'''Description:'''</td><td>[[Widget Description::{{{description|}}}]]</td></tr>
<tr valign="top"><td align="right">'''Author:'''</td><td>{{#arraymap:{{{author|}}}|,|@@@|[[Widget Author::User:@@@|@@@]]}}</td></tr>
{{#if:{{{providerurl|}}}{{{provider|}}}|<tr valign="top"><td align="right">'''Provider:'''</td><td>[[Widget Provider URL::{{{providerurl|}}}|{{{provider|}}}]] [[Widget Provider::{{{provider|}}}|]]</td></tr>}}
<tr valign="top"><td align="right">'''Code:'''</td><td>[[Widget Code Page::Widget:{{PAGENAME}}]]</td></tr>
<tr valign="top"><td align="right">'''Status:'''</td><td>{{{status|unknown}}}</td></tr>
<tr valign="top"><td align="right">'''Updated:'''</td><td>{{#show: Widget:{{PAGENAME}} |?Modification date#-F[F j, Y] }} {{#info: If you use code on your wiki which is older than this date you may want to update since your widget may be insecure or broken. |note }}</td></tr>
<tr valign="top"><td align="right">'''Security:'''</td><td>[[Widget Security::{{{security|unknown}}}]]</td></tr>
<tr valign="top"><td colspan="2" align="center">{{AddThis}}</td></tr>
</table>
</td><td style="padding-left: 10px">

<div style="border: 3px solid #006398; background: #f9f9f9; padding: 10px; text-align: center">
[[Image:Inv-Icon tools.svg.png|100px|left|link=]]
'''To copy this widget to your wiki''', cut and paste the entire source of the '''[{{fullurl:Widget:{{PAGENAME}}|action=edit}} {{PAGENAME}} widget code page]''' into a page called '''Widget:{{PAGENAME}}''' on your wiki.

If you don't have the '''[[mediawikiwiki:Extension:Widget|Widget extension]]''' set up on your wiki, go to its description page on MediaWiki.org and follow the '''[[mediawikiwiki:Extension:Widgets#Download_instructions|installation instructions]]'''.
</div>

</td></tr>
</table>
}}
<br />
{{#switch:
{{{status}}}
|active=[[Category:Widget status - active]]
|broken=[[Category:Widget status - broken]]
|defunct=[[Category:Widget status - defunct]]
|unknown=[[Category:Widget status - unknown]]
}}
{{#switch:
{{{security}}}
|checked=[[Category:Widget security - checked]]
|failed=[[Category:Widget security - failed]]
|unknown=[[Category:Widget security - unknown]]
}}
[[Category:Widget]]
<div style="display: none">
{{#set:
Widget Name={{PAGENAME}}
|Widget Added On={{#show: {{PAGENAME}} |?Creation date }}
|Widget Updated On={{#show: Widget:{{PAGENAME}} |?Modification date#ISO }}
|Widget Status={{{status|unknown}}}|+sep=,
|Meta element keywords=MediaWiki, Widget, Widgets, {{PAGENAME}}|+sep=,
|Meta element description=This site is hosting a public collection of MediaWiki Widgets to be used with the Widgets extension. This page is about the {{PAGENAME}} widget.
}}
</div>
<div style="float: right; margin: 0 0 1em 1em;">__TOC__</div>
</includeonly>
Root Admin, Bots, Bureaucrats, flow-bot, oversight, Administrators, Widget editors
24,656
edits

Navigation menu