Difference between revisions of "Template:Transclude"

From Wikidot - Australian Business Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div class="plainlinks hlist navbar {{#if:{{{mini|}}}|mini}}" style="{{{style|}}}"><!-- -->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else: --><span style=...")
 
 
Line 1: Line 1:
<includeonly><div class="plainlinks hlist navbar {{#if:{{{mini|}}}|mini}}" style="{{{style|}}}"><!--
+
{{#switch: {{NAMESPACE: {{{1}}} }}
 
+
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- the namespace was specified eg "User:Foo" "Template:Foo", "Category:Foo" -->
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
+
|{{ns:0}} = <!-- we have either ":Foo" (mainspace) or "Foo" (a template) -->
--><span style="word-spacing:0;{{{fontstyle|}}}">{{{text|This box:}}} </span>}}<!--
+
    {{#ifeq: {{First character|{{{1|}}}}}|:
 
+
      |{{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article -->
-->{{#if:{{{brackets|}}}|<span style="margin-right:-0.125em;{{{fontstyle|}}}">&#91;</span>}}<!--
+
      |Template:{{{1}}} <!-- no leading colon, eg "Foo", so we want the template -->
 
+
    }}
--><ul><!--
+
}}
--><li class="nv-view">[[{{transclude|{{{1}}}}}|<span title="View this template" <!--
 
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|v|view}}</span>]]</li><!--
 
 
 
--><li class="nv-talk">[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span title="Discuss this template" <!--
 
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|t|talk}}</span>]]</li><!--
 
 
 
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:
 
--><li class="nv-edit">[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span title="Edit this template" <!--
 
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|e|edit}}</span>]</li>}}<!--
 
--></ul><!--
 
 
 
-->{{#if:{{{brackets|}}}|<span style="margin-left:-0.125em;{{{fontstyle|}}}">&#93;</span>}}<!--
 
 
 
--></div></includeonly><noinclude>
 
 
 
{{documentation}}
 
</noinclude>
 

Latest revision as of 02:24, 15 December 2020

Template:{{{1}}}