Help:Custom Edittools: Difference between revisions

Want an adless experience? Log in or Create an account.
m
→‎Edittools: added " after "{{CURRENTUSER}}
(Created page with "If there's a complex bit of code that you find yourself copy/pasting a lot, or if you're trying to establish or conform to a consistent format, '''Custom Edittools''' allow yo...")
 
m (→‎Edittools: added " after "{{CURRENTUSER}})
Line 34: Line 34:
Now, back to your [[User:{{CURRENTUSER}}/Edittools]] page, you need to transclude the sections from your Macro page.  The code for the example above would be:
Now, back to your [[User:{{CURRENTUSER}}/Edittools]] page, you need to transclude the sections from your Macro page.  The code for the example above would be:
<pre><nowiki><charinsert>{{subst:#lst:User:Fi/Macro|Lipsum}}</charinsert></nowiki></pre>
<pre><nowiki><charinsert>{{subst:#lst:User:Fi/Macro|Lipsum}}</charinsert></nowiki></pre>
Replace "Fi" with "{{CURRENTUSER}} and "Lipsum" with the id you defined on the Macro page.
Replace "Fi" with "{{CURRENTUSER}}" and "Lipsum" with the id you defined on the Macro page.


This won't insert the text into the editing window, but it will add the code to ''substitute'' it into the article.  If you need to add to the inserted text, you'll have to save your work and start another edit.  It's not recommended to include templates that need to be filled out this way, as the extra edit(s) it requires clogs up the Recent Edits.  And is making two edits really more convenient than having a jumble of text at the bottom of the Edittools?
This won't insert the text into the editing window, but it will add the code to ''substitute'' it into the article.  If you need to add to the inserted text, you'll have to save your work and start another edit.  It's not recommended to include templates that need to be filled out this way, as the extra edit(s) it requires clogs up the Recent Edits.  And is making two edits really more convenient than having a jumble of text at the bottom of the Edittools?
131

edits