Difference between revisions of "Template:TEMPLATENAME"
From Project: Gorgon Wiki
m (dropin Template:BASEPAGENAME) |
m (Formating source code) |
||
Line 1: | Line 1: | ||
− | <includeonly><!--(Template:TEMPLATENAME start:) | + | <includeonly><!-- |
− | -->{{safesubst:#ifeq:{{{require|{{{1|{{Template:SUBPAGENAMEE}}}}}}}}|{{Template:SUBPAGENAMEE}} | + | (Template:TEMPLATENAME start:) |
− | + | -->{{safesubst:#ifeq: {{{require|{{{1|{{Template:SUBPAGENAMEE}} }}} }}} | {{Template:SUBPAGENAMEE}} | |
− | + | | {{safesubst:#ifeq: {{safesubst:NAMESPACE}} | {{ns:Template}} | |
− | + | | | |
− | + | | {{safesubst:NAMESPACE}}: | |
− | + | }}{{safesubst:#ifeq: {{safesubst:Template:SUBPAGENAMEE}} | {{{docpage|{{{override|doc}}}}}} | |
− | + | | {{safesubst:Template:BASEPAGENAME}} | |
− | + | | {{safesubst:#switch:{{Template:SUBPAGENAMEE}} | |
− | --></includeonly><noinclude>{{Documentation}}</noinclude> | + | |doc |sandbox |testcases = {{safesubst:Template:BASEPAGENAME}} |
+ | | {{safesubst:PAGENAME}} | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | (Template:TEMPLATENAME ends) | ||
+ | --></includeonly><noinclude> | ||
+ | {{Documentation}}</noinclude> |
Latest revision as of 02:10, 19 April 2016
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Contents
This template was copied from Template:TEMPLATENAME on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
When used on a template's /doc
subpage, Template:Tl evaluates to the name of the associated template. The result will be accurate when the end page is either the /doc
subpage or the actual template page. The template makes a special case for the Template:
namespace: the Template:
prefix will be removed.
Note that the result will not be URL-safe. For a URL-encoded version, see Template:Tl.
Parameters
- {{{1}}} Template:Smaller or require
- Sets the subpage from which the template extracts a name. If the parameter's value does not match the current subpage,Template:Clarify nothing will be returned. This is useful in preventing potentially endless recursive loops on some templates pages that might otherwise reference themselves.
- docpage or override
- Use to indicate the documentation page's location if it is other than the subpage
/doc
, e.g.{{TEMPLATENAME|docpage=Documentation}}
if the subpage is/Documentation
.
The following subpages will always be removed [?] :
- /doc
- /sandbox
- /testcases
See also
The above text is transcluded from Template:TEMPLATENAME/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:TEMPLATENAME/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:TEMPLATENAME/doc. (View all subpages of this page.)