Difference between revisions of "Template:Authorbox"
From questden
(Okay, this works now, I think. Finalizing.) |
|||
Line 1: | Line 1: | ||
− | <noinclude>A template for making authorboxes. | + | <noinclude>A template for making authorboxes. It replaces this header you used to have to copy-paste into every new one you made: |
− | <includeonly>{| id="toc" width="70%" style="text-align:left; clear:both;" align=center | + | |
+ | <nowiki> {| id="toc" width="70%" style="text-align:left; clear:both;" align=center | ||
+ | |- style="background:#ccccff" align="center" width="95%" | ||
+ | | '''Quests by [[NAME]]''' | ||
+ | |- | ||
+ | | style="font-size:11px" |</nowiki> | ||
+ | |||
+ | Just type <code><nowiki>{{subst:makebox}}</nowiki></code>, add your links, and close the table with <code><nowiki>|}</nowiki></code>. | ||
+ | |||
+ | This template also makes it so author boxes now support the <code>authorlias</code> parameter! | ||
+ | |||
+ | ==Example== | ||
+ | |||
+ | {| style="margin: auto; background-color:#FFFFFF; width:95%" class="wikitable" | ||
+ | ! Code | ||
+ | ! Output | ||
+ | |- valign="top" | ||
+ | | style="text-align:left; width: 50%" | | ||
+ | ==Template:NAME== | ||
+ | <nowiki> {{subst:makebox}} | ||
+ | |||
+ | '''TGchan:''' | ||
+ | [[Example Quest 1]] | | ||
+ | [[Example Quest 2]] | | ||
+ | [[Example Quest 3]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | <noinclude>[[Category:Author Boxes]]</noinclude></nowiki> | ||
+ | | | ||
+ | ==Template:NAME== | ||
+ | {{authorbox|author=NAME|authoralias={{{authoralias|}}}}} | ||
+ | |||
+ | '''TGchan:''' | ||
+ | [[Example Quest 1]] | | ||
+ | [[Example Quest 2]] | | ||
+ | [[Example Quest 3]] | ||
+ | |||
+ | |} | ||
+ | {|class="wikitable" style="width:100%" | ||
+ | |[[:Category:Author Boxes]] | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | </noinclude><includeonly>{| id="toc" width="70%" style="text-align:left; clear:both;" align=center | ||
|- style="background:#ccccff" align="center" width="95%" | |- style="background:#ccccff" align="center" width="95%" | ||
| '''Quests by [[{{{author}}}{{#if:{{{authoralias|}}}|{{!}}{{{authoralias}}}}}]]''' | | '''Quests by [[{{{author}}}{{#if:{{{authoralias|}}}|{{!}}{{{authoralias}}}}}]]''' | ||
|- | |- | ||
| style="font-size:11px" |</includeonly><noinclude>[[Category:Templates]]</noinclude> | | style="font-size:11px" |</includeonly><noinclude>[[Category:Templates]]</noinclude> |
Revision as of 01:22, 18 October 2015
A template for making authorboxes. It replaces this header you used to have to copy-paste into every new one you made:
{| id="toc" width="70%" style="text-align:left; clear:both;" align=center |- style="background:#ccccff" align="center" width="95%" | '''Quests by [[NAME]]''' |- | style="font-size:11px" |
Just type {{subst:makebox}}
, add your links, and close the table with |}
.
This template also makes it so author boxes now support the authorlias
parameter!
Example
Code | Output | |||
---|---|---|---|---|
Template:NAME{{subst:makebox}} '''TGchan:''' [[Example Quest 1]] | [[Example Quest 2]] | [[Example Quest 3]] |} <noinclude>[[Category:Author Boxes]]</noinclude> |
Template:NAME
|