Difference between revisions of "Template:Author"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (ordering)
m (Reverted edits by Tarkisflux (talk) to last revision by TFBot)
 
(68 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}"
+
<includeonly>
|+ {{#if:{{{adopter|}}}|Adopted By|Created By}}
+
{| cellspacing="0" cellpadding="0" class="toccolours authorlite"
 
|-
 
|-
! colspan="2" class="user" | {{#if:{{{adopter|}}}
+
| colspan="2" align="center" |[[File:Homebrew.png|link=Project:About|center]]
|{{#set:Adopter={{{adopter}}}|Author={{{author_name}}}}}{{
+
|-
  #if: {{{url|}}}
+
| colspan="2" |
  |[{{{url}}}  
+
{{{!}} style="margin: 0.5em auto 0em auto; border:1px solid #8C794E;" width="100%"
{{
+
{{#if:{{{adopter|}}}|
    #if: {{{isnotuser|}}}
+
{{!}}- valign="top"
    |{{{adopter}}}]
+
!Adopter:  
    |{{
+
{{!}} {{#if: {{{aisnotuser|}}}
      #if: {{{display_name|}}}
+
|{{#if: {{{aurl|}}}
      |{{{display_name}}}
+
|[{{{aurl}}} {{{adopter_display_name|{{{adopter}}}}}}]
      |{{{adopter}}}
+
|{{{adopter_display_name|{{{adopter}}}}}}
    }}] ([[User talk:{{{adopter}}}|talk]])
+
}}|{{#if: {{{aurl|}}}
  }}
+
|[{{{aurl}}} {{{adopter_display_name|{{{adopter}}}}}}] <small>([[User talk:{{{adopter}}}{{!}}talk]])</small>
  |{{
+
|[[User:{{{adopter}}}{{!}}{{{adopter_display_name|{{{adopter}}}}}}]] <small>([[User talk:{{{adopter}}}{{!}}talk]])</small>
    #ifeq: {{{isnotuser|no}}}|no
+
}}
    |[[User:{{{adopter}}}|{{
+
}} [[Adopter::{{{adopter}}}| ]]
      #if: {{{display_name|}}}
+
{{!}}- valign="top"
      |{{{display_name}}}
+
}}
      |{{{adopter}}}
+
! {{#if:{{{adopter|}}}|Original}} Author:
    }}]] ([[User talk:{{{adopter}}}|talk]])
+
{{!}} {{#if: {{{isnotuser|}}}
    |{{#ifeq: {{{isnotuser|}}}|no||{{{adopter}}} }}
+
|{{#if: {{{url|}}}
  }}
+
|[{{{url}}} {{{display_name|{{{author_name}}}}}}]
}}
+
|{{{display_name|{{{author_name}}}}}}
|{{#set:Author={{{author_name}}}}}{{
+
}}|{{#if: {{{url|}}}
  #if: {{{url|}}}
+
|[{{{url}}} {{{display_name|{{{author_name}}}}}}] <small>([[User talk:{{{author_name}}}{{!}}talk]])</small>
  |[{{{url}}}  
+
|[[User:{{{author_name}}}{{!}}{{{display_name|{{{author_name}}}}}}]] <small>([[User talk:{{{author_name}}}{{!}}talk]])</small>
{{
+
}}[[Author::{{{author_name}}}| ]]
    #if: {{{isnotuser|}}}
 
    |{{{author_name}}}]
 
    |{{
 
      #if: {{{display_name|}}}
 
      |{{{display_name}}}
 
      |{{{author_name}}}
 
    }}] ([[User talk:{{{author_name}}}|talk]])
 
  }}
 
  |{{
 
    #ifeq: {{{isnotuser|no}}}|no
 
    |[[User:{{{author_name}}}|{{
 
      #if: {{{display_name|}}}
 
      |{{{display_name}}}
 
      |{{{author_name}}}
 
    }}]] ([[User talk:{{{author_name}}}|talk]])
 
    |{{#ifeq: {{{isnotuser|}}}|no||{{{author_name}}} }}
 
   
 
 
 
  }}
 
}}
 
 
}}
 
}}
{{#if:{{{adopter|}}}
+
{{!}}- valign="top"
|
+
{{#if: {{{co-authors|}}}|
{{!}}-
+
! Co-Authors:
! Original Creator:
+
{{!}} {{#arraymap: {{{co-authors}}}|, |x|[[User:x|x]][[Author::x| ]]|,<br />}}
{{!}} {{{author_name}}}
+
{{!}}- valign="top"
 
}}
 
}}
|-
+
{{#if: {{{contributors|}}}|
{{#if: {{{contributors|}}}
 
|
 
{{!}}-
 
 
! Contributors:
 
! Contributors:
{{!}} {{{contributors}}}<span style="display: none;">{{#arraymap: {{{contributors}}}|,|x|{{#set:Author=x}}}}</span>
+
{{!}} {{#arraymap: {{{contributors}}}|, |x|[[User:x|x]]|,<br />}}
 +
{{!}}- valign="top"
 
}}
 
}}
|-
+
! Date Created:
{{#if:{{{date_adopted|}}}
+
{{!}} {{{date_created|}}}
| ! Date Adopted:
+
{{!}}- valign="top"
 +
{{#if:{{{adopter|}}} |{{#if:{{{date_adopted|}}}|
 +
! Date Adopted:
 
{{!}} {{{date_adopted|}}}
 
{{!}} {{{date_adopted|}}}
| ! Date Created:
+
{{!}}- valign="top"
{{!}} {{{date_created}}}
+
}}}}
}}
 
|-
 
 
 
 
! Status:
 
! Status:
| {{{status}}}
+
{{!}} {{{status}}}
|-
+
{{!}}- valign="top"
 
! Editing:
 
! Editing:
{{#if: {{{editing|}}}|
+
{{!}} {{#switch: {{{editing|}}}
  {{!}} {{{editing}}}|
+
|=[[Project:Editing Policy|Clarity edits]] only please
  {{!}} Please feel free to edit [[Dungeons and Dragons Wiki:Constructive Editing|constructively]]!
+
|conservative=[[Project:Editing Policy#Conservative Edits|Conservative edits]] only
 +
|#default ={{{editing}}}
 +
}}
 +
{{!}}}
 +
{{#if:{{{balance|}}}|{{!}}-
 +
{{!}} colspan=2 align="center" {{!}}
 +
{{{!}} style="margin: 0.5em auto 0em auto; border:1px solid #8C794E;" width="100%"
 +
{{!}} align="center" {{!}} [[File:Scale.png|link=]] <small>{{#switch:{{lc:{{{balance}}}}}
 +
|monk
 +
|low=<big>'''[[Project:Article Balance#Low Balance|Low]]'''</big> - Moderate - High - Very High[[Article Balance::Low| ]]
 +
|fighter
 +
|moderate=Low - <big>'''[[Project:Article Balance#Moderate Balance|Moderate]]'''</big> - High - Very High[[Article Balance::Moderate| ]]
 +
|rogue
 +
|high=Low - Moderate - <big>'''[[Project:Article Balance#High Balance|High]]'''</big> - Very High[[Article Balance::High| ]]
 +
|wizard
 +
|very high=Low - Moderate - High - <big>'''[[Project:Article Balance#Very High Balance|Very High]]'''</big>[[Article Balance::Very High| ]]
 +
|unquantifiable=<big>'''[[Project:Article Balance#Unquantifiable Balance|Unquantifiable]][[Article Balance::Unquantifiable| ]]'''</big>
 +
|Article is not balanced per wiki [[Project:Article Balance|guidelines]][[Article Balance::None Assigned| ]]
 +
}}</small>
 +
{{!}}}
 
}}
 
}}
 
|-
 
|-
{{#if:{{{balance|}}}
+
| colspan=2 align="center"| {{#if: {{NAMESPACE}}|Rating box not supported outside of the main namespace. |{{#ifexist: {{TALKPAGENAME}}
|
+
|{{Author/Rating Pass
{{!}}-
+
|favor={{#ifeq:{{#show: {{TALKPAGENAME}} |?Favored}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Favored}}|, |x|1|+}}}}}}
! Balance:  
+
|like={{#ifeq:{{#show: {{TALKPAGENAME}} |?Liked}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Liked}}|, |x|1|+}}}}}}
{{!}} {{#switch:{{{balance|}}}
+
|neutral={{#ifeq:{{#show: {{TALKPAGENAME}} |?Neutral}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Neutral}}|, |x|1|+}}}}}}
|Monk=[[Dungeons and Dragons_Wiki:Balance Points#Monk Level|Monk]]{{#set:Balance Point=Monk}}
+
|dislike={{#ifeq:{{#show: {{TALKPAGENAME}} |?Disliked}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Disliked}}|, |x|1|+}}}}}}
|Fighter=[[Dungeons and Dragons Wiki:Balance Points#Fighter Level|Fighter]]{{#set:Balance Point=Fighter}}
+
|oppose={{#ifeq:{{#show: {{TALKPAGENAME}} |?Opposed}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Opposed}}|, |x|1|+}}}}}}
|Rogue=[[Dungeons and Dragons Wiki:Balance Points#Rogue Level|Rogue]]{{#set:Balance Point=Rogue}}
 
|Wizard=[[Dungeons and Dragons Wiki:Balance Points#Wizard Level|Wizard]]{{#set:Balance Point=Wizard}}
 
                |Unquantifiable=[[Dungeons and Dragons Wiki:Balance Points#Unquantifiable|Unquantifiable]]{{#set:Balance Point=Unquantifiable}}
 
|Article is not balanced per wiki [[Dungeons_and_Dragons_Wiki:Balance_Points|guidelines]]
 
 
}}
 
}}
}}
+
|[[File:ArticleUndiscussed.png|center|link=Project:Rating Articles]][[Rating::Undiscussed| ]]
 +
}}}}
 
|-
 
|-
 
+
| colspan=2 align="center" | <addrating /><br />[[{{TALKPAGENAME}}|Discuss this article]]
{{#if:{{{favor|}}}
 
|
 
{{!}}-
 
! style="vertical-align:middle" {{!}} Rating:
 
{{!}} style="vertical-align:middle;" {{!}}
 
{{#switch:{{{favor}}}
 
|0
 
|1
 
|2=This article has been rated, but has not<br> received sufficient favor for any distinction.
 
|3
 
|4
 
|5=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]] {{#set:Rating=Bronze}}
 
|6
 
|7
 
|8=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]] {{#set:Rating=Silver}}
 
|9
 
|10
 
|11=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]] {{#set:Rating=Gold}}
 
|12
 
|13
 
|14
 
|15
 
|16
 
|17
 
|18
 
|19
 
|20=This is a featured article! [[Image:Goldstar.png{{!}}25px]] {{#set:Rating=Featured Article}}
 
|Nominate this article to be rated
 
}}
 
|
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} <!-- Problems :\ -->
 
 
 
}}
 
 
{{#if:{{{img|}}}
 
{{#if:{{{img|}}}
 
|
 
|
Line 143: Line 102:
 
 
 
}}
 
}}
|}{{#if: {{{raters|}}}|<span style="display: none;">{{#arraymap: {{{raters}}}|,|x|{{#set:Rated By=x}}}}</span>}}</includeonly>
+
|}{{Pagedata}}{{#arraymap:{{#show: {{TALKPAGENAME}} |?Favored}}|, |x|[[Rated By::x| ]]|}}{{#arraymap:{{#show: {{TALKPAGENAME}} |?Liked}}|, |x|[[Rated By::x| ]]|}}{{#arraymap:{{#show: {{TALKPAGENAME}} |?Neutral}}|, |x|[[Rated By::x| ]]|}}{{#arraymap:{{#show: {{TALKPAGENAME}} |?Disliked}}|, |x|[[Rated By::x| ]]|}}{{#arraymap:{{#show: {{TALKPAGENAME}} |?Opposed}}|, |x|[[Rated By::x| ]]|}}</includeonly><noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>
 

Latest revision as of 03:06, 22 April 2017

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

Usage

{{Author
|author_name=
|date_created=
|adopter=
|date_adopted=
|display_name=
|url=
|isnotuser=
|co-authors=
|contributors=
|status=
|editing=
|balance=
|img=
|imgsize=
|caption=
}}

Note that unused fields may be omitted.

Parameters
Name Required Description Example
author_name Yes The wiki user name of the article's primary author. The author's name will be used as a link to their user page, and is case sensitive.
If the author is not a member of the wiki they may enter whatever name they like, but must also set the "isnotuser" parameter.
Tarkisflux
date_created Yes The date the article was created. This may be different from the date that the article is added to the wiki 23 December, 2011
adopter Varies The wiki user name of the article's current adopter. The adopter's name will be used as a link to their user page, and is case sensitive.
If the adopter is not a member of the wiki they may enter whatever name they like, but must also set the "isnotuser" parameter.
Note that this field is only used when the article has been adopted by a new author, and the original author is no longer responsible for its content. In those instances it is required, but in no others.
Aarnott
date_adopted No The date the article was adopted by the current adopter. If this field is left blank, the creation date of the article will show instead. 24 December, 2011
display_name No The name the author or adopter would rather have shown to people who view the page. This text will replace the author_name or adopter parameter text as the default text for the user page link. This parameter is redundant in conjunction with the "isnotuser" parameter, and should not be used in those cases. SuperAmazingMan
url No If specified, this url will replace the default author or adopter name link behavior with a link to the url instead. www.SuperAmazingMan.com
isnotuser No This parameter is only used to specify the work of non-wiki users. If any value is entered for this parameter the default author or adopter name linking behavior is changed. The link to their talk page is removed, and the name itself does not function as a link unless the "url" parameter is also specified. True
co-authors No This parameter is used to specify additional authors on a project. Any number of additional authors can be added in a comma separated list. Each entry here is assumed to be a wiki user name, and a link to their user page will be generated. These entries will also be granted author credit in the SMW Author property. This parameter does not support co-authors without wiki accounts. Guntank, SolEiji, TK-Tesaracted
contributors No This parameter is used to specify additional contributors to a project, people who submitted work but not a sufficient amount to split authorship. Any number of contributors can be added in a comma separated list. No links will be created for these entries, and none of them will be granted author credit in the SMW Author property. This parameter does not support co-authors without wiki accounts. PoltergeistOval, UnlivingRogue
status Yes This parameter should contain a summary of the completion status of the article. Complete
editing No This parameter is used to specify editing restrictions on an article. If no value is entered here, the default text of "Clarity edits only please" will be used. Mechanical edits welcome
balance Varies This parameter specifies the intended balance level of the article, though some article types do not require a balance tag (incl: all 4e articles, 3.5e races, 3.5e equipment, etc.). All 3.5e article types that require a balance tag must choose one of "Low", "Moderate", "High", "Very High", or "Unquantifiable". Moderate
img No This parameter specifies an image, which has been uploaded to the wiki via Special:Upload, to show in the author box. foo.png
imgsize No This parameter specifies the width, in pixels, to show the image specified by the image parameter. It otherwise defaults to 200px. 300px
caption No This parameter adds a caption to the image used in the author box. A Foo drinking away its troubles in a bar.

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