Template:Edit this template/doc: Difference between revisions

no edit summary
(Created page with "The '''Edit this template''' template is used to make it easier to access templates from the pages that they're placed on. Prior to this template, if you were to catch an erro...")
 
No edit summary
 
Line 1: Line 1:
The '''Edit this template''' template is used to make it easier to access templates from the pages that they're placed on. Prior to this template, if you were to catch an error in a template, you would need to either type its name into the search bar, or access it via the "templates used on this page" section that displays below the "Save this page" button of on a edit page. This template aims to simplify that by giving a direct link to the template page on whatever page it has been transcluded to.
The '''Edit this template''' template is used to make it easier to access templates from the pages that they're placed on. Prior to this template, if you were to catch an error in a template, you would need to either type its name into the search bar, or access it via the "templates used on this page" section that displays below the "Save this page" button of on a edit page. This template aims to simplify that by giving a direct link to the template page on whatever page it has been transcluded to.
This template can be displayed on the right or left upper corners of where you're putting it on a page (i.e. within a table).
==Use==
==Use==
Check out the "Edit this template" link to the right.
Check out the "Edit this template" link to the right.
Line 14: Line 16:


[[File:Edit this template documentation 2.png|thumb|600px|left]]{{clear}}
[[File:Edit this template documentation 2.png|thumb|600px|left]]{{clear}}
===Right/left justify===
This template makes use of "default" parameters to automatically display right-justified. This posed a problem with Navboxes, so this template provides the ''option'' of entering a third parameter:
<pre>
{{Template:Edit this template|Ozma Discography|left}}
</pre>
Produces:<br><br>
{{Template:Edit this template|Ozma Discography|left}}<br><br>
The "default" position of the template is to justify right. If it's left blank (as in the first example on this page), it will display to the right. You can, of course, type "right" in this third parameter as well.
<pre>
{{Template:Edit this template|Ozma Discography|right}}
</pre>
Produces:<br><br>
{{Template:Edit this template|Ozma Discography|right}}<br><br>


==Troubleshooting==
==Troubleshooting==
Line 23: Line 43:


:That link leads to [[Template:Template:Ozma Discography]], which, of course, doesn't exist! Though I'm sure Moon will try to figure out how we can make such a template in the future, we don't have one yet.
:That link leads to [[Template:Template:Ozma Discography]], which, of course, doesn't exist! Though I'm sure Moon will try to figure out how we can make such a template in the future, we don't have one yet.
*"Center" does not work in the third parameter.