Template:Authorbox: Difference between revisions

From questden
Jump to navigationJump to search
No edit summary
(Updating template to account for toc style changes with wiki update)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>A template for making authorboxes.Still experimental.</noinclude>
<noinclude>{{authorbox/Doc}}</noinclude><includeonly>{| width="70%" style="text-align:left; clear:both; background-color: #F9F9F9; border:1px solid #AAAAAA; border-spacing: 7px; border-collapse: separate;" align=center
<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 [[{{safesubst:SUBPAGENAME}}{{#if:{{{authoralias|}}}|{{!}}{{{authoralias}}}}}]]'''
| style="font-size:12px" | '''Quests by [[{{{author}}}{{#if:{{{authoralias|}}}|{{!}}{{{authoralias}}}}}]]'''
|-
|-
| style="font-size:11px" |</includeonly><noinclude>[[Category:Templates]]</noinclude>
| style="font-size:11px" |</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 01:13, 14 December 2015

A template for making authorboxes. It replaces this header you used to have to copy-paste into every new one you made:

 {| width="70%" style="text-align:left; clear:both; background-color: #F9F9F9; border:1px solid #AAAAAA; border-spacing: 7px; border-collapse: separate;" align=center
 |- style="background:#ccccff" align="center" width="95%"
 | style="font-size:12px" | '''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 authoralias parameter!


Examples

Creating an authorbox

Code Output

Template:NAME

 {{subst:makebox}}

 '''TGchan:'''
 [[Example Quest 1]] |
 [[Example Quest 2]] |
 [[Example Quest 3]]

 |}

 <noinclude>[[Category:Author Boxes]]</noinclude>

Template:NAME

Quests by NAME

TGchan: Example Quest 1 | Example Quest 2 | Example Quest 3

Category: Author Boxes

When you edit the author box in the future, the first line of code will have changed to:

{{authorbox|author=NAME|authoralias={{{authoralias|}}}}}.

This is expected behavior, and you don't need to mess with it.

Calling an authorbox

Code Output
{{NAME}}
Quests by NAME

TGchan: Example Quest 1 | Example Quest 2 | Example Quest 3

{{NAME|authoralias=Alternate Name}}
Quests by Alternate Name

TGchan: Example Quest 1 | Example Quest 2 | Example Quest 3