Template:Titled box: Difference between revisions
Jump to navigation
Jump to search
Greenpickle (talk | contribs) m (remove external link icon on edit links) |
m (Adding custom colors; I have an idea.) |
||
Line 1: | Line 1: | ||
{|style="width: 100%; background: #f5fffa; border: 1px solid #cef2e0; margin-top: 10px; padding: 6px;" | {|style="width: 100%; background: {{{bg|#f5fffa}}}; border: 1px solid {{{border|#cef2e0}}}; margin-top: 10px; padding: 6px;" | ||
| | | | ||
{|style="width: 100%; height: 1em; background: #cef2e0; border: 1px solid #a3bfb1; padding: 0 5px;" | {|style="width: 100%; height: 1em; background: {{{tbg|#cef2e0}}}; border: 1px solid {{{tborder|#a3bfb1}}}; padding: 0 5px;" | ||
|style="font-size: 1.2em; font-weight: bold;"|{{{title|Title}}}{{#if:{{{editlink|}}}|<br /> | |style="font-size: 1.2em; font-weight: bold;"|{{{title|Title}}}{{#if:{{{editlink|}}}|<br /> | ||
{{!}}style="text-align:right;" class="plainlinks"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}} | {{!}}style="text-align:right;" class="plainlinks"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}} | ||
Line 11: | Line 11: | ||
==Use== | ==Use== | ||
<nowiki>{{titled box|title=...|content=...|editlink=...}}</nowiki> | <nowiki>{{titled box|title=...|content=...|editlink=...|bg=...|border=...|tbg=...|tborder=...}}</nowiki> | ||
editlink is optional, and is the page to link to; if not given, no edit link is shown. | editlink is optional, and is the page to link to; if not given, no edit link is shown. | ||
bg and border are the colors for the background and border, respectively. The same ones, but starting with t are for the title's box. | |||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 12:29, October 1, 2014
| |
Content. |
Use
{{titled box|title=...|content=...|editlink=...|bg=...|border=...|tbg=...|tborder=...}}
editlink is optional, and is the page to link to; if not given, no edit link is shown. bg and border are the colors for the background and border, respectively. The same ones, but starting with t are for the title's box.