Difference between revisions of "Template:Navbar"

From D&D 5e
Jump to: navigation, search
(code updates)
(Extended style parameter to apply to all links as well (to accept other template's style parameters). The fontcolor parameter still overrides the style parameter.)
Line 9: Line 9:
  
 
-->{{#if:{{{mini|}}} |<!--then:
 
-->{{#if:{{{mini|}}} |<!--then:
-->[[Template:{{{1}}}|<span title="View this template" {{#if:{{{fontcolor|}}}|style="color:{{{fontcolor}}};"}}>v</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span {{#ifexist: Template talk:{{{1}}}|<!--do nothing-->{{#if:{{{fontcolor|}}}|style="color:{{{fontcolor}}};"}}|style="color:{{#if:{{{fontcolor|}}}|{{{fontcolor}}}|#002bb8}};"}} title="Discussion about this template">d</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="color:{{#if:{{{fontcolor|}}}|{{{fontcolor}}}|#002bb8}};" title="You can edit this template. Please use the preview button before saving.">e</span>]<!--
+
-->[[Template:{{{1}}}|<span title="View this template" style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}border:none;padding:0;margin:0;"}}>v</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span {{#ifexist: Template talk:{{{1}}}|<!--do nothing-->style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}border:none;padding:0;margin:0;"}}|style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};|##002bb8;}}border:none;padding:0;margin:0;"}} title="Discussion about this template">d</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};|#002bb8;}}border:none;padding:0;margin:0;"}};" title="You can edit this template. Please use the preview button before saving.">e</span>]<!--
 
-->}}<!--
 
-->}}<!--
  
 
-->{{#ifeq:{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then:
 
-->{{#ifeq:{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then:
-->[[Template:{{{1}}}|<span title="View this template" {{#if:{{{fontcolor|}}}|style="color:{{{fontcolor}}};"}}>v{{#if:{{{viewplain|}}}|iew}}</span>]]<!--
+
-->[[Template:{{{1}}}|<span title="View this template" {{#if:{{{fontcolor|}}}|style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}border:none;padding:0;margin:0;"}}>v{{#if:{{{viewplain|}}}|iew}}</span>]]<!--
 
-->|<!--else:(nothing)--> |}}<!--
 
-->|<!--else:(nothing)--> |}}<!--
  
 
-->{{#ifeq:{{{mini|}}}{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then:(nothing)--> |<!--else:
 
-->{{#ifeq:{{{mini|}}}{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then:(nothing)--> |<!--else:
-->[[Template:{{{1}}}|<span title="View this template" {{#if:{{{fontcolor|}}}|style="color:{{{fontcolor}}};"}}>view</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span {{#ifexist: Template talk:{{{1}}}|<!--do nothing-->{{#if:{{{fontcolor|}}}|style="color:{{{fontcolor}}};"}}|style="color:{{#if:{{{fontcolor|}}}|{{{fontcolor}}}|#002bb8}};"}} title="Discussion about this template">talk</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="color:{{#if:{{{fontcolor|}}}|{{{fontcolor}}}|#002bb8}};" title="You can edit this template. Please use the preview button before saving.">edit</span>]<!--
+
-->[[Template:{{{1}}}|<span title="View this template" style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}border:none;padding:0;margin:0;">view</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span {{#ifexist: Template talk:{{{1}}}|<!--do nothing-->style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}border:none;padding:0;margin:0;"|style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor;}}}|#002bb8;}}border:none;padding:0;margin:0;"}} title="Discussion about this template">talk</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="{{{style|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};|#002bb8;}}border:none;padding:0;margin:0;" title="You can edit this template. Please use the preview button before saving.">edit</span>]<!--
 
-->}}<!--
 
-->}}<!--
  

Revision as of 09:11, 5 November 2007

Template:Pp-template


Template:Purge the Wikipedia cache of this template.

Template:Navbar/doc