Template:Assign edit button/doc

From Moegirlpedia
< Template:Assign edit button
Revision as of 15:16, 4 October 2023 by LiaMinina (talk | contribs) (Created page with "== Syntax == * Variable 1: The name of the article to edit. The default value is the full name of the page that references this template. If the page referencing this template...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

  • Variable 1: The name of the article to edit. The default value is the full name of the page that references this template. If the page referencing this template is not in the (Main:) namespace, then the default value of Variable 1 will contain the namespace of the page.
  • Variable 2: Replaceable text. The default value is "Click me to edit Variable 1".

Usage

{{Assign edit button|1=(Variable 1)|2=(Variable 2)}}

Or:

{{Assign edit button|(Variable 1)|(Variable 2)}}

Or:

{{Assign edit button|(Variable 1)}} (Omitting Variable 2)

Examples

{{Assign edit button|1=Template:Moe points/Others|2=Edit Template:Moe points/Others}}

Result: Edit Template:Moe points/Others

{{Assign edit button|1=Template:Moe points/Others}}

Result: Click me to edit Template:Moe points/Others

See also

  • {{ColoredEdit}}: Provides more perfect link color definition functions.