Difference between revisions of "User:GrampaSwood/Template:Border"
GrampaSwood (talk | contribs) m (test... do not tell) |
m (Fix edit/view links placement (help request)) |
||
(One intermediate revision by one other user not shown) | |||
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}}}|}}]] }}{{{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}}}|}}]] }}{{{title|Header}}}</td></tr> | ||
<tr><td style="padding:5px"> | <tr><td style="padding:5px"> | ||
− | {{{content|[insert content here]}}}<div | + | {{{content|[insert content here]}}}<div style="float:right;clear:both;" 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 22:14, 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. - 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