Difference between revisions of "User:GrampaSwood/Template:Border"

From Team Fortress Wiki
Jump to: navigation, search
m (test... do not tell)
(Added some doc)
Line 2: Line 2:
 
<td class="gradient" <!--Swood was here--> style="text-align:left; font-size:110%; font-weight:bold; color:black; background-color:{{{colour|#F3A957}}}; -moz-border-radius:0 11px 0 0; border-top-right-radius:0px; padding:5px;">{{#if:{{{image|}}}|[[File:{{{image}}}{{!}}{{#if:{{{image-size|}}}|{{{image-size}}}|16px}}{{!}}link={{#if:{{{image-link|}}}|{{{image-link}}}|}}]]&nbsp;&nbsp;}}{{{title|Header}}}</td></tr>
 
<td class="gradient" <!--Swood was here--> style="text-align:left; font-size:110%; font-weight:bold; color:black; background-color:{{{colour|#F3A957}}}; -moz-border-radius:0 11px 0 0; border-top-right-radius:0px; padding:5px;">{{#if:{{{image|}}}|[[File:{{{image}}}{{!}}{{#if:{{{image-size|}}}|{{{image-size}}}|16px}}{{!}}link={{#if:{{{image-link|}}}|{{{image-link}}}|}}]]&nbsp;&nbsp;}}{{{title|Header}}}</td></tr>
 
<tr><td style="padding:5px">
 
<tr><td style="padding:5px">
{{{content|[insert content here]}}}<div align="right" class="plainlinks"><small>{{#ifeq:{{{edit|}}}|||[{{fullurl:User:GrampaSwood/{{{edit|Error}}}|action=edit}} Edit]{{md}}[[User:GrampaSwood/{{{edit|Error}}}|view]]}}</small></div></td></tr>
+
{{{content|[insert content here]}}}<div style="right:0px; bottom:0px;" class="plainlinks"><small>{{#ifeq:{{{edit|yes}}}|||[{{fullurl:User:{{{user|GrampaSwood}}}/{{{edit|Error}}}|action=edit}} Edit]{{md}}[[User:{{{user|GrampaSwood}}}/{{{edit|Error}}}|view]]}}</small></div></td></tr>
</table>
+
</table><noinclude>{{Doc begin}}
 +
 
 +
== Parameters ==
 +
; image
 +
: Image used next to the text. Can be empty.
 +
 
 +
; image-size
 +
: Image size
 +
 
 +
; title
 +
: Text at the top
 +
 
 +
; content
 +
: Content inside the border
 +
 
 +
; edit
 +
: The link to the current page. Used for the "Edit {{md}} view" buttons. Example usage: <code>| edit = Template:Todo</code>. This would link to [[User:GrampaSwood/Template:Todo]].
 +
: {{Note|Note that by default, it uses my userpage ([[User:GrampaSwood]]) at the start of the URL, and it defaults to [[Special:MyPage/Error|{{WikiUsername}}/Error]]. Please use the "user" parameter listed below to change it}}
 +
 
 +
; user
 +
: Used to change the user page linked to with the "edit" parameter.
 +
 
 +
; width
 +
: Width of the whole thing
 +
 
 +
; colour
 +
: Colour of the border
 +
</noinclude>

Revision as of 20:12, 18 May 2024

Header
[insert content here]

Documentation for GrampaSwood/Template:Border


Parameters

image
Image used next to the text. Can be empty.
image-size
Image size
title
Text at the top
content
Content inside the border
edit
The link to the current page. Used for the "Edit  ·  view" buttons. Example usage: | edit = Template:Todo. This would link to User:GrampaSwood/Template:Todo.
Pictogram comment.png Note that by default, it uses my userpage (User:GrampaSwood) at the start of the URL, and it defaults to WikiUsername/Error. Please use the "user" parameter listed below to change it
user
Used to change the user page linked to with the "edit" parameter.
width
Width of the whole thing
colour
Colour of the border