Extension:InputBox/sv: Difference between revisions

Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(7 intermediate revisions by the same user not shown)
Line 17:
|version = Continuous updates
|update =
|mediawiki = 1.30+
|download = {{WikimediaDownload|phab=EINB}}
|needs-updatephp = No
Line 26 ⟶ 25:
|rights =
|example =
<inputbox>
type=search2
buttonlabel=Search
width=24
placeholder=Type to search...
labeltext=Search For:
</inputbox>
|compatibility =
|phabricator = MediaWiki-extensions-InputBox
Line 43 ⟶ 49:
|registration=required
}}
 
 
<span id="Example"></span>
Line 76 ⟶ 81:
Inmatningsrutor är uppbyggda så här:
 
<syntaxhighlight lang="html">
{| cellspacing="5" bgcolor="#ffffff" rules="all" cellpadding="5" border="0"
|<syntaxhighlight lang="html"><inputbox>
type=
bgcolor=
Line 107 ⟶ 112:
</inputbox>
</syntaxhighlight>
|}
 
<span class="mw-translate-fuzzy">Parametern ''<code>type''</code> är obligatorisk.</span>
Alla andra parametrar är valfria.
''<span class="mw-translate-fuzzy"><code>preloadparams[]''</code> kan användas fler än en gång.</span>
 
<span id="Box_types"></span>
Line 160 ⟶ 164:
page={{TALKPAGENAME}}
</inputbox>
| Lägger till ett nytt avsnitt med avsnittsrubriken som skrivits in i textrutan. Titeln kan anges med parametern <code>default=</code>. Sidan har angivits med parametern <code>page=</code>. For some reason this does NOT work when using the extension by invoking it with <nowiki>{{#tag}}</nowiki>, only when using {{tag|inputbox|open}}. {{introduced-inline|[[rev:47203]]}}
|-
| fulltext
Line 175 ⟶ 179:
page={{PAGENAME}}
</inputbox>
| Flytta en sida till ett annat namn. This also doesn't work when creating it by invoking a tag. {{introduced-inline|[[gerrit:97559]]}}
|}
 
Line 301 ⟶ 305:
| <span lang="en" dir="ltr" class="mw-content-ltr">This specifies that there is no InputBox.</span>
 
<span lang="en" dir="ltr" class="mw-content-ltr">It is used with parameter "<code>default"</code>, now not being a default, but the fixed value of the name of the page.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Any value means ''yes/true''.</span>
|create, comment
|''?''
Line 420 ⟶ 425:
</inputbox>
 
<span lang="en" dir="ltr" class="mw-content-ltr">The button below prefixes the name with ''<code>Special:Mypage/</code>''.</span>
 
<inputbox>
type=create
Line 520 ⟶ 526:
|-
|'''inline='''
| <span lang="en" dir="ltr" class="mw-content-ltr">Make the InputBox be an inline element (no line break at beginning).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Any value means ''yes/true''.</span>
| search2
|
Line 570 ⟶ 576:
|'''searchfilter='''
|<span lang="en" dir="ltr" class="mw-content-ltr">Specify parameters to append to the search</span>
|search, fulltext
|{{MW version|version=1.30|comment=and later|gerrit change=|compact=1}}
|<syntaxhighlight lang="html"><inputbox>
Line 582 ⟶ 588:
|-
|'''useve='''
| <span lang="en" dir="ltr" class="mw-content-ltr">When creating a page the input box will use the new visual editor, if the extension is installed, and this parameter is set to trueany value.</span>
| create, comment
|
Line 597 ⟶ 603:
|-
|'''usedt='''
|<span lang="en" dir="ltr" class="mw-content-ltr">When adding a new section, the input box will open the [[Special:MyLanguage/Help:DiscussionTools#New topic tool|DiscussionTools new topic tool]], if the extension is installed, and this parameter is set to <code>true</code>any value.</span>
|comment, commenttitle
|
Line 618 ⟶ 624:
<span lang="en" dir="ltr" class="mw-content-ltr">The texts taken from the <code>MediaWiki:</code> namespace are of course only examples, any existing page can be used for <code>editintro</code> or <code>preload</code>.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Unfortunately <code>preload</code> does not yet work for the [[Special:Upload|Upload]] summary.</span>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">