Template:Authorbox/Doc: Difference between revisions

From questden
Jump to navigationJump to search
(Created page with "<noinclude>{{Doc}}</noinclude> A template for making authorboxes. It replaces this header you used to have to copy-paste into every new one you made: <nowiki> {| id="toc" widt...")
 
(A clarification, and manually building wikitable formatting so it doesn't recursively apply borders to the example)
Line 14: Line 14:
==Example==
==Example==


{| style="margin: auto; background-color:#FFFFFF; width:95%" class="wikitable"
{| style="margin: auto; background-color:#F2F2F2; width:95%; border-collapse:collapse; border:1px solid #BBB" cellpadding="2"
! Code
! style="border:1px solid #BBB" | Code
! Output
! style="border:1px solid #BBB" | Output
|- valign="top"  
|- valign="top" style="background-color:#FFFFFF"
| style="text-align:left; width: 50%" |
| style="text-align:left; width: 50%; border:1px solid #BBB" |
==Template:NAME==
==Template:NAME==
  <nowiki> {{subst:makebox}}
  <nowiki> {{subst:makebox}}
Line 30: Line 30:


  <noinclude>[[Category:Author Boxes]]</noinclude></nowiki>
  <noinclude>[[Category:Author Boxes]]</noinclude></nowiki>
|
| style="border:1px solid #BBB" |
==Template:NAME==
==Template:NAME==
{{authorbox|author=NAME|authoralias={{{authoralias|}}}}}
{{authorbox|author=NAME|authoralias={{{authoralias|}}}}}  


'''TGchan:'''
'''TGchan:'''
Line 40: Line 40:


|}
|}
{|class="wikitable" style="width:100%"
{|class="wikitable" style="width:100%"
|[[:Category:Author Boxes]]
|[[:Category:Author Boxes]]
|}
|}
|}
|}
When you edit the author box in the future, the first line of code will have changed to:
<code><nowiki>{{authorbox|author=NAME|authoralias={{{authoralias|}}}}}</nowiki></code>.
This is expected behavior, and you don't need to mess with it.

Revision as of 02:59, 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.