Template:Edit: Difference between revisions
(Add support for tooltips per edit request on talk) |
m (57 revisions imported from wikipedia:Template:Edit) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<div style="float:left;width:3.4em;text-align:left;text-transform:lowercase;padding:0 0 0 0.3em">[<span class="plainlinks">[{{fullurl:Template:{{{1}}}|action=edit}} {{int:edit}}]</span>]</div><noinclude>{{br}} |
|||
<span class="noprint plainlinks" title="{{#if:{{{tooltip|}}}|{{{tooltip}}}|Edit {{{1}}}}}">[{{fullurl:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|action=edit{{#if:{{{section|}}}|§ion={{{section}}}}}{{#if:{{{editintro|}}}|&editintro={{urlencode:{{{editintro}}}|wiki}}}}{{#if:{{{preload|}}}|&preload={{urlencode:{{{preload}}}|wiki}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle}}}}}}}}} {{{2|edit}}}]</span><noinclude> |
|||
This template is to be placed on every navigation template directly in front of the title in the template's header. It must be typed in the form of <code><nowiki>{{edit|NAME}}</nowiki></code>, where "NAME" is the name of the template (minus "Template:"). For example, on [[Template:Croc series]], <code><nowiki>{{edit|Croc series}}</nowiki></code> would be used, and the coding at the top of the template would look like this: |
|||
{{documentation}} |
|||
</noinclude> |
|||
<pre>{| class="mw-collapsible mw-collapsed navbox" |
|||
!colspan=2 style=background:#CC0000|{{edit|Croc series}} [[Croc (series)|''Croc'' series]] |
|||
|-</pre> |
|||
Keep in mind that the names of the template must be added as they appear ''in the address bar'', meaning it is case-sensitive, spaces must be rendered as underscores ( _ ) and while colons (:), apostrophes (') and regular dashes (-) are not affected, other symbols may need to be entered as code, including ampersands (&). For example, <code>%26</code> is substituted for <code>&</code>, and <code>_</code> for the space. |
|||
The original template is from the [[mariowiki:Template:Edit|Super Mario Wiki]]. |
|||
[[Category:Navigation templates|*]]</noinclude> |
Latest revision as of 22:20, January 28, 2022
This template is to be placed on every navigation template directly in front of the title in the template's header. It must be typed in the form of {{edit|NAME}}
, where "NAME" is the name of the template (minus "Template:"). For example, on Template:Croc series, {{edit|Croc series}}
would be used, and the coding at the top of the template would look like this:
{| class="mw-collapsible mw-collapsed navbox" !colspan=2 style=background:#CC0000|{{edit|Croc series}} [[Croc (series)|''Croc'' series]] |-
Keep in mind that the names of the template must be added as they appear in the address bar, meaning it is case-sensitive, spaces must be rendered as underscores ( _ ) and while colons (:), apostrophes (') and regular dashes (-) are not affected, other symbols may need to be entered as code, including ampersands (&). For example, %26
is substituted for &
, and _
for the space.
The original template is from the Super Mario Wiki.