Difference between revisions of "Template:Author"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (Reverted edits by Tarkisflux (talk) to last revision by TFBot)
 
(99 intermediate revisions by 9 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]]
|{{
+
|-
  #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}}}}}}
|{{
+
}}|{{#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}}}]
+
{{!}}- valign="top"
    |{{
+
{{#if: {{{co-authors|}}}|
      #if: {{{display_name|}}}
+
! Co-Authors:
      |{{{display_name}}}
+
{{!}} {{#arraymap: {{{co-authors}}}|, |x|[[User:x|x]][[Author::x| ]]|,<br />}}
      |{{{author_name}}}
+
{{!}}- valign="top"
    }}] ([[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|}}}
+
{{#if: {{{contributors|}}}|
|
+
! Contributors:
{{!}}-
+
{{!}} {{#arraymap: {{{contributors}}}|, |x|[[User:x|x]]|,<br />}}
! Original Creator:
+
{{!}}- valign="top"
{{!}} {{{author_name}}}
 
 
}}
 
}}
|-
+
! 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}}}
{{#if: {{{editing|Please feel free to edit [[Constructive Editing (DnD Guideline)|constructively]]!}}}
+
{{!}}- valign="top"
  |<nowiki/>
 
{{!}}-
 
 
! Editing:
 
! Editing:
{{!}} {{{editing|Please feel free to edit [[Constructive Editing (DnD Guideline)|constructively]]!}}}
+
{{!}} {{#switch: {{{editing|}}}
 +
|=[[Project:Editing Policy|Clarity edits]] only please
 +
|conservative=[[Project:Editing Policy#Conservative Edits|Conservative edits]] only
 +
|#default ={{{editing}}}
 
}}
 
}}
{{#if:{{{favor|}}}
+
{{!}}}
|
+
{{#if:{{{balance|}}}|{{!}}-
{{!}}-
+
{{!}} colspan=2 align="center" {{!}}
! style="vertical-align:middle" {{!}} Rating:
+
{{{!}} style="margin: 0.5em auto 0em auto; border:1px solid #8C794E;" width="100%"
{{!}} style="vertical-align:middle;" {{!}}  
+
{{!}} align="center" {{!}} [[File:Scale.png|link=]] <small>{{#switch:{{lc:{{{balance}}}}}
{{#switch:{{{favor}}}
+
|monk
|1
+
|low=<big>'''[[Project:Article Balance#Low Balance|Low]]'''</big> - Moderate - High - Very High[[Article Balance::Low| ]]
|2=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]] [[Category:Bronze Rated]]
+
|fighter
|3
+
|moderate=Low - <big>'''[[Project:Article Balance#Moderate Balance|Moderate]]'''</big> - High - Very High[[Article Balance::Moderate| ]]
|4
+
|rogue
|5=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]] [[Category:Silver Rated]]
+
|high=Low - Moderate - <big>'''[[Project:Article Balance#High Balance|High]]'''</big> - Very High[[Article Balance::High| ]]
|6
+
|wizard
|7
+
|very high=Low - Moderate - High - <big>'''[[Project:Article Balance#Very High Balance|Very High]]'''</big>[[Article Balance::Very High| ]]
|8
+
|unquantifiable=<big>'''[[Project:Article Balance#Unquantifiable Balance|Unquantifiable]][[Article Balance::Unquantifiable| ]]'''</big>
|9=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]] [[Category:Gold Rated]]
+
|Article is not balanced per wiki [[Project:Article Balance|guidelines]][[Article Balance::None Assigned| ]]
|Nominate this article to be rated
+
}}</small>
 +
{{!}}}
 +
}}
 +
|-
 +
| 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|+}}}}}}
 +
|like={{#ifeq:{{#show: {{TALKPAGENAME}} |?Liked}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Liked}}|, |x|1|+}}}}}}
 +
|neutral={{#ifeq:{{#show: {{TALKPAGENAME}} |?Neutral}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Neutral}}|, |x|1|+}}}}}}
 +
|dislike={{#ifeq:{{#show: {{TALKPAGENAME}} |?Disliked}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Disliked}}|, |x|1|+}}}}}}
 +
|oppose={{#ifeq:{{#show: {{TALKPAGENAME}} |?Opposed}}||0|{{#expr:{{#arraymap:{{#show: {{TALKPAGENAME}} |?Opposed}}|, |x|1|+}}}}}}
 
}}
 
}}
|
+
|[[File:ArticleUndiscussed.png|center|link=Project:Rating Articles]][[Rating::Undiscussed| ]]
{{!}}-
+
}}}}
{{!}} colspan="2" style="text-align:center;" {{!}} <span class="plainlinks">[{{fullurl:RC:Nominations|action=edit&section=new&editintro=Rating+Formatting+Instructions&preload=Rating+Preload }} Nominate this article to be rated]</span>
+
|-
 
+
| colspan=2 align="center" | <addrating /><br />[[{{TALKPAGENAME}}|Discuss this article]]
}}
 
 
{{#if:{{{img|}}}
 
{{#if:{{{img|}}}
 
|
 
|
Line 99: Line 94:
 
{{!}} colspan="2" style="text-align:center;" {{!}} &nbsp;
 
{{!}} colspan="2" style="text-align:center;" {{!}} &nbsp;
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[Image:{{{img}}}{{!}}200px]]
+
{{!}} colspan="2" style="text-align:center;" {{!}} [[Image:{{{img}}}{{!}}{{{imgsize|200px}}}]]
 
{{#if:{{{caption|}}}
 
{{#if:{{{caption|}}}
 
|
 
|
Line 107: Line 102:
 
 
 
}}
 
}}
|}</includeonly><noinclude>
+
|}{{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>
===Examples===
 
 
 
====No Optional Params (Default)====
 
 
 
{{Author
 
|author_name=Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
====''display_name'' Param====
 
 
 
{{Author
 
|author_name=Sledged
 
|display_name=Your Lord and Master
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|display_name=Your Lord and Master
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
====''isnotuser'' Param====
 
 
 
{{Author
 
|author_name=Sledged
 
|isnotuser=I'm not a user!!
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|isnotuser=I'm not a user!!
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
====''url'' Param====
 
 
 
{{Author
 
|author_name=Sledged
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
====''display_name'' and ''isnotuser'' Params====
 
 
 
{{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
 
}}
 
<nowiki>{{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
 
}}</nowiki>
 
 
 
Note that that the ''dislpay_name'' parameter is ignored and the result is the same as the [[#isnotuser Param|''isnotuser'' Param]] example.
 
 
 
====''display_name'' and ''url'' Params====
 
 
 
{{Author
 
|author_name=Sledged
 
|display_name=Your Lord and Master
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|display_name=Your Lord and Master
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
====''isnotuser'' and ''url'' Params====
 
 
 
{{Author
 
|author_name=Sledged
 
|isnotuser=I'm not a user!!
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|isnotuser=I'm not a user!!
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
====''display_name'', ''isnotuser'', and ''url'' Params====
 
 
 
{{Author
 
|author_name=Sledged
 
|display_name=Your Lord and Master
 
|isnotuser=I'm not a user!!
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|display_name=Your Lord and Master
 
|isnotuser=I'm not a user!!
 
|url=http://www.dandwiki.com/wiki/User:Sledged
 
|date_created=2007-05-29
 
|status=Done for now
 
}}</nowiki>
 
 
 
Note that that the ''dislpay_name'' parameter is ignored and the result is the same as the [[#isnotuser and url Params|''isnotuser'' and ''url'' Params]] example
 
 
 
====''editing'' Param====
 
 
 
{{Author
 
|author_name=Sledged
 
|date_created=2007-05-29
 
|status=In progress...
 
|editing=Please ask before editing!
 
}}
 
<nowiki>{{Author
 
|author_name=Sledged
 
|date_created=2007-05-29
 
|status=In progress...
 
|editing=Please ask before editing!
 
}}</nowiki>
 
 
 
</noinclude><includeonly>[[Category:User]]</includeonly>
 

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?)