Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Custom edit/doc: Difference between revisions

Template page
Undo revision 356150535 by Verdy p (talk)
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 2: Line 2:
|name=Custom edit
|name=Custom edit
|shorthand=
|shorthand=
|desc={{LangSwitch
|desc=This ticket provides a custom link for editing a page
  | en = Provides a custom link for editing a page
   |desc-fr = Produit un lien personnalisé pour modifier une page
   | fr = Produit un lien personnalisé pour modifier une page
   |desc-de=Dieses Ticket bietet einen benutzerdefinierten Link zum Bearbeiten einer Seite
   }}
|usage-notes=
Example: {{tlx|custom edit|Commons:Sandbox|<nowiki>'''Play in the sandbox'''</nowiki>}} gives {{custom edit|Commons:Sandbox|'''Play in the sandbox'''}}.
 
Note you ''can'' use an internationalised text template like {{Tl|Support}}:
: {{Tlx|Custom edit|Commons:Sandbox|<nowiki>{{Support}}</nowiki>}}
gives {{Custom edit|Commons:Sandbox|{{Support}}}}.
 
|1=1
|1=1
|1type=wiki-page-name
|1type=wiki-page-name
|1stat=optional
|1stat=optional
|1label-en=page
|1label=page
|1d-en=Full pagename of the page to be edited.
|1d=Full pagename of the page to be edited.
|1d-de=Vollständiger Seitenname der zu bearbeitenden Seite.
|1d-fr=Nom complet de la page à modifier.
|1d-fr=Nom complet de la page à modifier.
|1def-en=<nowiki>{{FULLPAGENAME}}</nowiki>
|1def=<nowiki>{{FULLPAGENAME}}</nowiki>


|2=text
|2=text
Line 25: Line 18:
|2type=wiki-page-name
|2type=wiki-page-name
|2stat=optional
|2stat=optional
|2label-en=text
|2label=text
|2d-en=Text to display in the edit link.
|2d=Text to display in the edit link.
|2d-de=Text, der im Bearbeitungslink angezeigt werden soll.
|2d-fr=Texte à afficher dans le lien de modification.
|2d-fr=Texte à afficher dans le lien de modification.
|2def-en={{lcfirst:{{int:Edit}}}}
|2def-en={{lcfirst:{{int:Edit}}}}
Line 33: Line 27:
|3type=number
|3type=number
|3stat=optional-
|3stat=optional-
|3label-en=old id
|3label=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 a 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=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 a 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-de=Eindeutige Identifikationsnummer der Version der Seite in ihrer Geschichte. Beachte, dass dies auch den aktuellen Seitennamen überschreibt, wenn die Seite verschoben wurde oder sich auf eine Version einer anderen Seite im selben Wiki bezieht. Wenn dieser Parameter verwendet wird, wird dem/der Benutzer/in oben im Bearbeitungsformular eine zusätzliche Warnung angezeigt, da die Veröffentlichung von Änderungen, die der/die Benutzer/in in dieser Session vorgenommen hat, die bereits veröffentlichten Änderungen auf der Zielseite nach dieser historischen Version rückgängig macht.
|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 36:
|4type=line
|4type=line
|4stat=optional-
|4stat=optional-
|4label-en=section
|4label=section
|4label-fr=section
|4label-fr=section
|4d-en=Section name on target page to edit.
|4d=Section name on target page to edit.
|4d-de=Name des Abschnitts auf der zu bearbeitenden Zielseite.
|4d-fr=Nom de la section à modifier dans la page cible.
|4d-fr=Nom de la section à modifier dans la page cible.
|4def=
|4def=
Line 50: Line 46:
|5type=wiki-page-name
|5type=wiki-page-name
|5stat=optional-
|5stat=optional-
|5label-en=edit intro
|5label=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=Full name of a page to render as an introduction or guide just above the edit form.
|5d-de=Vollständiger Name einer Seite, die als Einleitung oder Leitfaden direkt über dem Bearbeitungsformular angezeigt wird.
|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 56:
|6type=line
|6type=line
|6stat=optional-
|6stat=optional-
|6label-en=preload title
|6label=preload title
|6label-fr=titre préchargé
|6label-fr=titre préchargé
|6d-en=Section heading title to preload in the edit form when creating a new section in the target page.
|6d=Section heading title to preload in the edit form when creating a new section in the target page.
|6d-de=Titel der Abschnittsüberschrift, der beim Erstellen eines neuen Abschnitts auf der Zielseite im Bearbeitungsformular vorgeladen wird.
|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.
|6def=
|6def=
Line 68: Line 66:
|7type=wiki-page-name
|7type=wiki-page-name
|7stat=optional-
|7stat=optional-
|7label-en=preload page
|7label=preload page
|7label-fr=page préchargée
|7label-fr=page préchargée
|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=Full name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section.
|7d-de=Vollständiger Name einer Seite (in der Regel eine eigene Vorlage), die bei der Erstellung einer neuen Seite oder eines neuen Abschnitts in das Formular zur Bearbeitung des Inhalts übernommen wird.
|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.
|7def=
|7def=
Line 81: Line 80:
|lines=one
|lines=one
|relieson=
|relieson=
|example=
|seealso=
|seealso=
* {{Tl|edit}}
* {{Tl|edit}}


|i18n-method=mediawiki-msg
|i18n-method=mediawiki-msg
|i18n-desc=Edit
|i18n-mediawiki-msg=Edit
|i18n-desc=
|example=<nowiki>Commons:Sandbox|'''Play in the sandbox'''</nowiki>
|example-value={{Custom edit|Commons:Sandbox|'''Play in the sandbox'''}}.
|useTemplateData=true
|useTemplateData=true
}}<includeonly>
}}<includeonly>

Latest revision as of 03:41, 11 August 2026

This ticket provides a custom link for editing a page

Usage

{{Custom edit |1= |text= }}

Template parameters

ParameterDescriptionDefaultStatus
1pageFull pagename of the page to be edited.{{FULLPAGENAME}}optional
text
2
textText to display in the edit link.editoptional
oldidold idUnique 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 a 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.emptyoptional
sectionsectionSection name on target page to edit.emptyoptional
editintroedit introFull name of a page to render as an introduction or guide just above the edit form.emptyoptional
preloadtitlepreload titleSection heading title to preload in the edit form when creating a new section in the target page.emptyoptional
preloadpreload pageFull name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section.emptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

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
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This ticket provides a custom link for editing a page

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
page1

Full pagename of the page to be edited.

Default
{{FULLPAGENAME}}
Page nameoptional
edit introeditintro

Full name of a page to render as an introduction or guide just above the edit form.

Page nameoptional
old idoldid

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 a 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.

Numberoptional
preload pagepreload

Full name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section.

Page nameoptional
preload titlepreloadtitle

Section heading title to preload in the edit form when creating a new section in the target page.

Lineoptional
sectionsection

Section name on target page to edit.

Lineoptional
texttext 2

Text to display in the edit link.

Default
edit
Page nameoptional

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

Example

{{Custom edit|Commons:Sandbox|'''Play in the sandbox'''}}

renders as:

See also

Localization

This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).

Cookies help us deliver our services. By using our services, you agree to our use of cookies.