Template:Titled box: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
(if we want to show complicated stuff we have to use keyword args anyway, so make them nice)
Line 2: Line 2:
|
|
{|style="width: 100%; height: 1em; background: #cef2e0; border: 1px solid #a3bfb1; padding: 0 5px;"
{|style="width: 100%; height: 1em; background: #cef2e0; border: 1px solid #a3bfb1; padding: 0 5px;"
|style="font-size: 1.2em; font-weight: bold;"|{{{1|Title}}}{{#if:{{{3|}}}|<br />
|style="font-size: 1.2em; font-weight: bold;"|{{{title|Title}}}{{#if:{{{editlink|}}}|<br />
{{!}}style="text-align:right;"{{!}}[{{fullurl:{{{3}}}|action=edit}} edit]}}
{{!}}style="text-align:right;"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}}
|}
|}
|-
|-
|
|
{{{2|Content.}}}
{{{content|Content.}}}
|}<noinclude>
|}<noinclude>


==Use==
==Use==
<nowiki>{{Titled box|title|content|edit link}}</nowiki>
<nowiki>{{titled box|title=...|content=...|editlink=...}}</nowiki>


Edit link title 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.


[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 12:30, September 19, 2010

Title

Content.

Use

{{titled box|title=...|content=...|editlink=...}}

editlink is optional, and is the page to link to; if not given, no edit link is shown.