Ugrás a tartalomhoz

Szerkesztő:Karmela/inputbox

Új téma nyitása
A Wikipédiából, a szabad enciklopédiából

preload

[szerkesztés]

• &action=submit • &action=edit • &action=edit&viewsource=1 • &action=edit&preload=... •

http://hu.wikipedia.org/w/index.php?title=
Special:Mypage
&action=edit
&preload=(preloadlap) space helyett _ !
&editintro=(introlap) space helyett _ !
  • [- MediaWiki]
  • This code will create a new button called [view source] to the left of the [edit this page] button (unless you're already editing a page or the page is protected

Box types

[szerkesztés]
Type Example
type=search
Generates a search box with a default width of 50 characters. The button labels can be specified, see below; defaults MediaWiki:Tryexact and MediaWiki:Searchfulltext. The text field specifies the search criteria.
type=create

Allows creating a new page. The button label can be specified, see below; default MediaWiki:Createarticle. The text field specifies which page is to be edited.
type=comment

Add one or more sections to an existing page, or create a page, with an edit summary that is automatically the same as the (first) new section header. The button label can be specified, see below; default MediaWiki:Postcomment also used in the sidebar of the "Standard" skin. The text field specifies which page is to be edited.


inputbox helyett

[szerkesztés]

Az én ajánlásom


<span style="font-size:80%;"><i>[{{SERVER}}{{localurl:Wikipédia:Zene_anyag/Mazsolajegyzék/2|action=edit&preload=Wikipédia:Zene_portál/Mazsola/Űrlap&editintro=Wikipédia:Zene_portál/Mazsola/Segítség}} Az én ajánlásom]</i></span>

inputbox help

[szerkesztés]

Összefoglalás

[szerkesztés]
<inputbox>
type=create
preload=User:Karmela/test/formula
editintro=User:Karmela/test/intro
default=User:Karmela/test/új
buttonlabel=Beirom az ajánlásomat!
bgcolor=#d0f0d0
width=30
</inputbox>.


<inputbox>
type=create
preload=A
editintro=B
default=entered_text
buttonlabel=Create!
bgcolor=#d0f0d0
width=30
</inputbox>

produces this URL:

upon submission of this input form:


After entering the name of a non-existing page C, it gives the edit box of C, filled with the contents of A, with page B rendered after the title C. If the wikitext of page B contains {{PAGENAME}}, this is rendered as C.

After entering the name of an existing page C, it simply gives the edit box of C.

If A does not exist, the edit box is not pre-filled. If B does not exist, the default MediaWiki:Newarticletext is used.

If a default is specified, it will be entered in the text box; if not, the text box will be empty. An optional buttonlabel will appear on the form's submit button, instead of "Create article" if none is specified. If you do not specify a bgcolor, the background color will be white. The default input text width is 20.

The preceding documentation applies when the mandatory type parameter is type=create (all other parameters are optional.) The type parameter may also be type=comment — useful for adding a new section to talk pages, adding "&section=new" to the URL — or type=search with which you may wish to use the optional searchbuttonlabel parameter. Note that buttonlabel parameter is also valid within type=search inputboxes, the difference being that search results from the non-search button are shown as an optional offer to create the page instead of a search producing no results. Complete documentation is available at m:Help:Inputbox.

create with preload

[szerkesztés]

<inputbox>
type=create
preload=User:Karmela/test/formula
editintro=User:Karmela/test/intro
default=User:Karmela/test/új
buttonlabel=Beirom az ajánlásomat!
bgcolor=#d0f0d0
width=30
</inputbox>

gomb az ablak mellett break=no

[szerkesztés]
<inputbox>
type=create
width=24
break=no
</inputbox>