Template:Authorbox/Doc: Difference between revisions

From questden
Jump to navigationJump to search
(A clarification, and manually building wikitable formatting so it doesn't recursively apply borders to the example)
No edit summary
Line 20: Line 20:
| style="text-align:left; width: 50%; border:1px solid #BBB" |
| style="text-align:left; width: 50%; border:1px solid #BBB" |
==Template:NAME==
==Template:NAME==
__NOEDITSECTION__
  <nowiki> {{subst:makebox}}
  <nowiki> {{subst:makebox}}


Line 32: Line 33:
| style="border:1px solid #BBB" |
| style="border:1px solid #BBB" |
==Template:NAME==
==Template:NAME==
__NOEDITSECTION__
{{authorbox|author=NAME|authoralias={{{authoralias|}}}}}  
{{authorbox|author=NAME|authoralias={{{authoralias|}}}}}  


Line 42: Line 44:


{|class="wikitable" style="width:100%"
{|class="wikitable" style="width:100%"
|[[:Category:Author Boxes]]
|[[Special:Categories|Category]]: [[:Category:Author Boxes|Author Boxes]]
|}
|}
|}
|}

Revision as of 15:23, 18 October 2015

This is a template documentation page. It is transcluded into place.

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 authoralias 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

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.