Template:Custom edit/doc: Difference between revisions
More actions
No edit summary |
(Übersetzung) Die einzelnen Parameter im 'Template:TemplateBox' nun für 'de' (Deutsch) übersetzt (1. 'desc' via neuer 'Langswitch'-Zeile für 'de', 2. 'usage-notes' via neuem 'Langswitch' und neuem -Block für 'de' erstellt (dabei auch für 'en' das Layout nun als 'LangSwitch'-Block etwas verbessert), 3. 7x '*label-de' und '*d-de' (mit *: 1..7) hinzugefügt (jew. extra TemplateBox-Parameter für den Parameternamen als Wort(e) und für die Parameterbeschreibung als Zeile bzw. Zeilenblock)), kk |
||
| Line 3: | Line 3: | ||
|shorthand= | |shorthand= | ||
|desc={{LangSwitch | |desc={{LangSwitch | ||
| en = Provides a custom link for editing a page | | de = Erzeugt einen Link zur Bearbeitung einer Seite. | ||
| fr = Produit un lien personnalisé pour modifier une page | | en = Provides a custom link for editing a page. | ||
| fr = Produit un lien personnalisé pour modifier une page. | |||
}} | }} | ||
|usage-notes= | |usage-notes={{LangSwitch | ||
Example: {{ | | de = | ||
'''Beispiel''' (mit den 2 Hauptparametern): | |||
: <code>{{Tlx|Custom edit|Commons:Sandbox|<nowiki>'''Spiele in der Sandbox'''</nowiki>}}</code> ergibt {{custom edit|Commons:Sandbox|'''Spiele in der Sandbox'''}}. | |||
Bemerke, Du ''darfst'' auch eine internationalisierte Textvorlage wie {{Tl|Support}} verwenden: | |||
: <code>{{Tlx|Custom edit|Commons:Sandbox|<nowiki>{{Support}}</nowiki>}}</code> ergibt {{Custom edit|Commons:Sandbox|{{Support}}}}. | |||
| en = | |||
'''Example''' (with the two main parameters): | |||
: <code>{{Tlx|Custom edit|Commons:Sandbox|<nowiki>'''Play in the sandbox'''</nowiki>}}</code> gives {{custom edit|Commons:Sandbox|'''Play in the sandbox'''}}. | |||
Note you ''can'' use an internationalised text template like {{Tl|Support}}: | Note you ''can'' use an internationalised text template like {{Tl|Support}}: | ||
: {{Tlx|Custom edit|Commons:Sandbox|<nowiki>{{Support}}</nowiki>}} | : <code>{{Tlx|Custom edit|Commons:Sandbox|<nowiki>{{Support}}</nowiki>}}</code> gives {{Custom edit|Commons:Sandbox|{{Support}}}}. | ||
gives {{Custom edit|Commons:Sandbox|{{Support}}}}. | }} | ||
|1=1 | |1=1 | ||
|1type=wiki-page-name | |1type=wiki-page-name | ||
|1stat=optional | |1stat=optional | ||
|1label-de=Seite | |||
|1label-en=page | |1label-en=page | ||
|1label-fr=page | |||
|1d-de=Voller Seitenname der zu bearbeitenden Seite. | |||
|1d-en=Full pagename of the page to be edited. | |1d-en=Full pagename of the page to be edited. | ||
|1d-fr=Nom complet de la page à modifier. | |1d-fr=Nom complet de la page à modifier. | ||
|1def | |1def=<nowiki>{{FULLPAGENAME}}</nowiki> | ||
|2=text | |2=text | ||
| Line 25: | Line 37: | ||
|2type=wiki-page-name | |2type=wiki-page-name | ||
|2stat=optional | |2stat=optional | ||
|2label-de=Text | |||
|2label-en=text | |2label-en=text | ||
|2label-fr=text | |||
|2d-de=Text, der als Bearbeiten-Link angezeigt werden soll. | |||
|2d-en=Text to display in the edit link. | |2d-en=Text to display in the edit link. | ||
|2d-fr=Texte à afficher dans le lien de modification. | |2d-fr=Texte à afficher dans le lien de modification. | ||
|2def | |2def={{lcfirst:{{int:Edit}}}} | ||
|3=oldid | |3=oldid | ||
|3type=number | |3type=number | ||
|3stat=optional- | |3stat=optional- | ||
|3label-de=Old ID | |||
|3label-en=old id | |3label-en=old id | ||
|3d-en=Unique identifier number of the page version in its history. Note that this also overrides its current pagename, if that page was moved or if this refers to a version of another page on the same wiki. If that parameter is used, the user will see an additional | |3label-fr=old id | ||
|3d-de=Eindeutige Identifikationsnummer der Seitenversion in ihrer Versionsgeschichte. Bemerke, dass diese auch den aktuellen Seitennamen überschreibt, falls diese Seite verschoben wurde oder diese ID auf eine Version einer anderen Seite auf demselben Wiki verweist. Wenn dieser Parameter verwendet wird, sieht der Benutzer über dem Bearbeitungsfeld eine zusätzliche Warnung, weil das Speichern der Änderungen des Benutzers alle nach dieser historischen Version bereits für diese Seite gespeicherten Änderungen zurücksetzen wird. | |||
|3d-en=Unique identifier number of the page version in its history. Note that this also overrides its current pagename, if that page was moved or if this refers to a version of another page on the same wiki. If that parameter is used, the user will see an additional warning at top of the edit form, because publishing changes made by the user in this edit session this will revert existing changes already published in the target page after that historic version. | |||
|3d-fr=Numéro identifiant unique de la version de la page dans son historique. Noter que cela ne tient pas compte de son nom de page actuel ou si cela ce réfère à une version d'une autre page sur le même wiki. Si ce paramètre est utilisé, l'utilisateur verra un avertissement supplémentaire en haut du formulaire de modification, parce que la publication de modifications réalisées par l'utilisateur dans cette session de modification annulera les modifications déjà publiées dans la page cible après cette version historique. | |3d-fr=Numéro identifiant unique de la version de la page dans son historique. Noter que cela ne tient pas compte de son nom de page actuel ou si cela ce réfère à une version d'une autre page sur le même wiki. Si ce paramètre est utilisé, l'utilisateur verra un avertissement supplémentaire en haut du formulaire de modification, parce que la publication de modifications réalisées par l'utilisateur dans cette session de modification annulera les modifications déjà publiées dans la page cible après cette version historique. | ||
|3def= | |3def= | ||
| Line 41: | Line 59: | ||
|4type=line | |4type=line | ||
|4stat=optional- | |4stat=optional- | ||
|4label-de=Abschnitt | |||
|4label-en=section | |4label-en=section | ||
|4label-fr=section | |4label-fr=section | ||
|4d-de=Name vom auf der Seite zu bearbeitenden Abschnitt. | |||
|4d-en=Section name on target page to edit. | |4d-en=Section name on target page to edit. | ||
|4d-fr=Nom de la section à modifier dans la page cible. | |4d-fr=Nom de la section à modifier dans la page cible. | ||
| Line 50: | Line 70: | ||
|5type=wiki-page-name | |5type=wiki-page-name | ||
|5stat=optional- | |5stat=optional- | ||
|5label-de=Anleitungsseite | |||
|5label-en=edit intro | |5label-en=edit intro | ||
|5label-fr=intro de modif | |5label-fr=intro de modif | ||
|5d=Full name of a page to render as an introduction or guide just above the edit form. | |5d-de=Voller Name von einer als Einführung oder Anleitung direkt über dem Bearbeitungsfenster anzuzeigenden Seite. | ||
|5d-en=Full name of a page to render as an introduction or guide just above the edit form. | |||
|5d-fr=Nom complet d'une page à afficher en introduction ou comme guide juste au dessus du formulaire de modification. | |5d-fr=Nom complet d'une page à afficher en introduction ou comme guide juste au dessus du formulaire de modification. | ||
|5def= | |5def= | ||
| Line 59: | Line 81: | ||
|6type=line | |6type=line | ||
|6stat=optional- | |6stat=optional- | ||
|6label-de=Vorgabe-Abschnitttitel | |||
|6label-en=preload title | |6label-en=preload title | ||
|6label-fr=titre préchargé | |6label-fr=titre préchargé | ||
|6d-de=Vorgabe vom Titel für den zu erstellenden Abschnitt, der bei der Erzeugung eines neuen Seitenabschnitts im Eingabefeld direkt oberhalb vom Bearbeitungsfenster als Titelvorgabe angezeigt wird. | |||
|6d-en=Section heading title to preload in the edit form when creating a new section in the target page. | |6d-en=Section heading title to preload in the edit form when creating a new section in the target page. | ||
|6d-fr=Titre de l'entête de section à précharger dans le formulaire lors de la création d'une nouvelle section dans la page cible. | |6d-fr=Titre de l'entête de section à précharger dans le formulaire lors de la création d'une nouvelle section dans la page cible. | ||
| Line 68: | Line 92: | ||
|7type=wiki-page-name | |7type=wiki-page-name | ||
|7stat=optional- | |7stat=optional- | ||
|7label-de=Vorgabe-Seiteninhalt | |||
|7label-en=preload page | |7label-en=preload page | ||
|7label-fr=page préchargée | |7label-fr=page préchargée | ||
|7d-de=Voller Name einer Seite (meistens einer speziellen Vorlage), die bei der Erzeugung einer neuen Seite oder eines neuen Abschnitts als Inhalt im Bearbeitungsfenster als Textvorgabe angezeigt wird. | |||
|7d-en=Full name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section. | |7d-en=Full name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section. | ||
|7d-fr=Nom complet d'une page (habituellement un modèle dédié) à transclure dans le formulaire de modification du contenu lors de la création d'une nouvelle page ou d'une section. | |7d-fr=Nom complet d'une page (habituellement un modèle dédié) à transclure dans le formulaire de modification du contenu lors de la création d'une nouvelle page ou d'une section. | ||
| Line 76: | Line 102: | ||
|namespace=all | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
|example= | |||
|example-value= | |||
|placement= | |placement= | ||
|type= | |type= | ||
| Line 81: | Line 109: | ||
|lines=one | |lines=one | ||
|relieson= | |relieson= | ||
|seealso= | |seealso= | ||
* {{Tl|edit}} | * {{Tl|edit}} | ||
|i18n-method=mediawiki-msg | |i18n-method=mediawiki-msg | ||
|i18n-mediawiki-msg=Edit | |i18n-mediawiki-msg=Edit | ||
Revision as of 11:09, 25 February 2021
Provides a custom link for editing a page.
Usage
{{Custom edit |1= |text= }}
Example (with the two main parameters):
{{Custom edit|Commons:Sandbox|'''Play in the sandbox'''}}gives .
Note you can use an internationalised text template like {{Support}}:
{{Custom edit|Commons:Sandbox|{{Support}}}}gives .
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | page | Full pagename of the page to be edited. | {{FULLPAGENAME}} | optional |
text2 | text | Text to display in the edit link. | edit | optional |
oldid | old id | Unique identifier number of the page version in its history. Note that this also overrides its current pagename, if that page was moved or if this refers to a version of another page on the same wiki. If that parameter is used, the user will see an additional warning at top of the edit form, because publishing changes made by the user in this edit session this will revert existing changes already published in the target page after that historic version. | empty | optional |
section | section | Section name on target page to edit. | empty | optional |
editintro | edit intro | Full name of a page to render as an introduction or guide just above the edit form. | empty | optional |
preloadtitle | preload title | Section heading title to preload in the edit form when creating a new section in the target page. | empty | optional |
preload | preload page | Full name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section. | empty | optional |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Provides a custom link for editing a page.
| ||||||||||||||||||||||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
Localization
This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).