Wikia

Dungeons and Dragons Wiki

Changes: Template:Author

Edit

Back to page

(Sets the title of the page. Complete working feat list coming soon...)
(how about pushing it to the right?)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#set:Title={{PAGENAME}}}}{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}"
+
<includeonly>{| cellspacing="0" cellpadding="0" class="toccolours author" style="float:right;{{{style|}}}"
 
|+ {{#if:{{{adopter|}}}|Adopted By|Created By}}
 
|+ {{#if:{{{adopter|}}}|Adopted By|Created By}}
 
|-
 
|-
 
! colspan="2" class="user" | {{#if:{{{adopter|}}}
 
! colspan="2" class="user" | {{#if:{{{adopter|}}}
|{{#set:Adopter={{{adopter}}}|Author={{{author_name}}}}}{{
+
|{{
 
#if: {{{url|}}}
 
#if: {{{url|}}}
 
|[{{{url}}}
 
|[{{{url}}}
Line 25: Line 25:
 
}}
 
}}
 
}}
 
}}
|{{#set:Author={{{author_name}}}}}{{
+
|{{
 
#if: {{{url|}}}
 
#if: {{{url|}}}
 
|[{{{url}}}
 
|[{{{url}}}
Line 61: Line 61:
 
{{!}}-
 
{{!}}-
 
! Co-Authors:
 
! Co-Authors:
{{!}} {{#arraymap: {{{co-authors}}}|,|x|[[User:x|x]]{{#set:Author=x}}}}
+
{{!}} {{#arraymap: {{{co-authors}}}|,|x|[[User:x|x]]}}
 
}}
 
}}
 
{{#if: {{{contributors|}}}
 
{{#if: {{{contributors|}}}
Line 92: Line 92:
 
! Balance:
 
! Balance:
 
{{!}} {{#switch:{{{balance|}}}
 
{{!}} {{#switch:{{{balance|}}}
|Monk=[[Dungeons and Dragons_Wiki:Balance Points#Monk Level|Monk]]{{#set:Balance Point=Monk}}
+
|Monk=[[Dungeons and Dragons_Wiki:Balance Points#Monk Level|Monk]]
|Fighter=[[Dungeons and Dragons Wiki:Balance Points#Fighter Level|Fighter]]{{#set:Balance Point=Fighter}}
+
|Fighter=[[Dungeons and Dragons Wiki:Balance Points#Fighter Level|Fighter]]
|Rogue=[[Dungeons and Dragons Wiki:Balance Points#Rogue Level|Rogue]]{{#set:Balance Point=Rogue}}
+
|Rogue=[[Dungeons and Dragons Wiki:Balance Points#Rogue Level|Rogue]]
|Wizard=[[Dungeons and Dragons Wiki:Balance Points#Wizard Level|Wizard]]{{#set:Balance Point=Wizard}}
+
|Wizard=[[Dungeons and Dragons Wiki:Balance Points#Wizard Level|Wizard]]
|Unquantifiable=[[Dungeons and Dragons Wiki:Balance Points#Unquantifiable|Unquantifiable]]{{#set:Balance Point=Unquantifiable}}
+
|Unquantifiable=[[Dungeons and Dragons Wiki:Balance Points#Unquantifiable|Unquantifiable]]
|Article is not balanced per wiki [[Dungeons_and_Dragons_Wiki:Balance_Points|guidelines]]{{#set:Balance Point=None Assigned}}
+
|Article is not balanced per wiki [[Dungeons_and_Dragons_Wiki:Balance_Points|guidelines]]
 
}}
 
}}
 
}}
 
}}
Line 113: Line 113:
 
|3
 
|3
 
|4
 
|4
|5=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]] {{#set:Rating=Bronze}}
+
|5=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]]
 
|6
 
|6
 
|7
 
|7
|8=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]] {{#set:Rating=Silver}}
+
|8=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]]
 
|9
 
|9
 
|10
 
|10
|11=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]] {{#set:Rating=Gold}}
+
|11=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]]
 
|12
 
|12
 
|13
 
|13
Line 128: Line 128:
 
|18
 
|18
 
|19
 
|19
|20=This is a featured article! [[Image:Goldstar.png{{!}}25px]] {{#set:Rating=Featured Article}}
+
|20=This is a featured article! [[Image:Goldstar.png{{!}}25px]]
 
|Nominate this article to be rated
 
|Nominate this article to be rated
 
}}
 
}}
Line 149: Line 149:
 
 
 
}}
 
}}
|}{{#if: {{{raters|}}}|<span style="display: none;">{{#arraymap: {{{raters}}}|,|x|{{#set:Rated By=x}}}}</span>}}</includeonly>
+
|}{{#if: {{{raters|}}}|<span style="display: none;">{{#arraymap: {{{raters}}}|,|x|}}</span>}}</includeonly>
 
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:38, January 23, 2012

Template documentation (for the above template, sometimes hidden or invisible)


Examples

No Optional Params (Default)

Created By
Sledged (talk)
Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|date_created=2007-05-29
|status=Done for now
}}

display_name Param

Created By
Your Lord and Master (talk)
Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|display_name=Your Lord and Master
|date_created=2007-05-29
|status=Done for now
}}

isnotuser Param

Created By
Sledged
Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|isnotuser=I'm not a user!!
|date_created=2007-05-29
|status=Done for now
}}

url Param

Created By
[http://dungeons.wikia.com/wiki/User:Sledged

Sledged] (talk)

Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|url=http://dungeons.wikia.com/wiki/User:Sledged
|date_created=2007-05-29
|status=Done for now
}}

display_name and isnotuser Params

Created By
Sledged
Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|display_name=Your Lord and Master
|isnotuser=I'm not a user!!
|date_created=2007-05-29
|status=Done for now
}}

Note that that the dislpay_name parameter is ignored and the result is the same as the isnotuser Param example.

display_name and url Params

Created By
[http://dungeons.wikia.com/wiki/User:Sledged

Your Lord and Master] (talk)

Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|display_name=Your Lord and Master
|url=http://dungeons.wikiai.com/wiki/User:Sledged
|date_created=2007-05-29
|status=Done for now
}}

isnotuser and url Params

Created By
[http://dungeons.wikia.com/wiki/User:Sledged

Sledged]

Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|isnotuser=I'm not a user!!
|url=http://dungeons.wikia.com/wiki/User:Sledged
|date_created=2007-05-29
|status=Done for now
}}

display_name, isnotuser, and url Params

Created By
[http://dungeons.wikia.com/wiki/User:Sledged

Sledged]

Date Created: 2007-05-29
Status: Done for now
Editing: Please feel free to edit constructively!
{{Author
|author_name=Sledged
|display_name=Your Lord and Master
|isnotuser=I'm not a user!!
|url=http://dungeons.wikia/wiki/User:Sledged
|date_created=2007-05-29
|status=Done for now
}}

Note that that the dislpay_name parameter is ignored and the result is the same as the isnotuser and url Params example

editing Param

Created By
Sledged (talk)
Date Created: 2007-05-29
Status: In progress...
Editing: Please ask before editing!
{{Author
|author_name=Sledged
|date_created=2007-05-29
|status=In progress...
|editing=Please ask before editing!
}}

Visit Template:Author/doc to edit this text! (How does this work?)

Around Wikia's network

Random Wiki