Template:Edit: Difference between revisions

From Funkinchan
Jump to navigationJump to search
(making template)
 
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
<span class="noprint plainlinks" title="{{#if:{{{tooltip|}}}|{{{tooltip}}}|Edit {{{1}}}}}">[{{fullurl:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|action=edit{{#if:{{{section|}}}|&section={{{section}}}}}{{#if:{{{editintro|}}}|&editintro={{urlencode:{{{editintro}}}|wiki}}}}{{#if:{{{preload|}}}|&preload={{urlencode:{{{preload}}}|wiki}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle}}}}}}}}} {{{2|edit}}}]</span><noinclude>
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
{{documentation}}
It shows a list of templates used to generate a link to edit a template or page or section.
</noinclude>
 
== Usage ==
{{Tlx|ed}}
: <code><nowiki>{{ed|SomeTemplate}}</nowiki></code> gives {{ed|SomeTemplate}}
: <code><nowiki>{{ed|edit templates|edit this link}}</nowiki></code> gives {{ed|SomeTemplate|edit this link}}
 
{{Tlx|ed right}}
: <code><nowiki>{{ed right|SomeTemplate}}</nowiki></code> gives {{ed right|SomeTemplate}}
: <code><nowiki>{{ed right|SomeTemplate|this link}}</nowiki></code> gives {{ed right|SomeTemplate|this link}}
 
{{Tlx|Edit}}
: <code><nowiki>{{edit}}</nowiki></code> gives {{edit}}
: <code><nowiki>{{edit|1=Rape|2=edit here|section=1}}</nowiki></code> gives {{edit|1=Rape|2=edit here|section=1}}
: Parameters explained:
:: <code><nowiki>{{edit</nowiki></code>
:: {{para|1|Page to edit}} — Leave blank to edit current page.
:: {{para|2|Text to display}} — Default: "edit"
:: {{para|section|Section to edit}} — specific section to edit (e.g. <code>0</code> to edit the lead section only). Default: none (i.e. edit whole page)
:: <code><nowiki>}}</nowiki></code>
 
{{Tlx|edit section}}
: <code><nowiki>{{edit section}}</nowiki></code> gives {{edit section}}
 
 
{{Tlx|Navbar}}
: <code><nowiki>{{navbar|{{PAGENAME}}}}</nowiki></code> gives {{navbar|{{PAGENAME}}}}
: <code><nowiki>{{navbar|{{PAGENAME}}|mini=1}}</nowiki></code> gives {{navbar|{{PAGENAME}}|mini=1}}
: <code><nowiki>{{navbar|{{PAGENAME}}|plain=1}}</nowiki></code> gives {{navbar|{{PAGENAME}}|plain=1}}
: <code><nowiki>{{navbar|{{PAGENAME}}|fontstyle=color:green}}</nowiki></code> gives {{navbar|{{PAGENAME}}|fontstyle=color:green}}
 
<includeonly>{{sandbox other||
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:Documentation shared content templates]]
}}</includeonly>

Latest revision as of 09:35, 20 September 2023

edit