Difference between revisions of "Template:Author"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (1 revision: old templates)
Line 1: Line 1:
 
<includeonly>{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}"
 
<includeonly>{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}"
|+ Created By
+
|+ {{#if:{{{adopter|}}}|Adopted By|Created By}}
 
|-
 
|-
! colspan="2" class="user" | {{
+
! colspan="2" class="user" | {{#if:{{{adopter|}}}
  #if: {{{url|}}}
+
|{{
  |[{{{url}}} {{
+
  #if: {{{url|}}}
    #if: {{{isnotuser|}}}
+
  |[{{{url}}}  
    |{{{author_name}}}]
+
{{
    |{{
+
    #if: {{{isnotuser|}}}
      #if: {{{display_name|}}}
+
    |{{{adopter}}}]
      |{{{display_name}}}
+
    |{{
      |{{{author_name}}}
+
      #if: {{{display_name|}}}
    }}] ([[User talk:{{{author_name}}}|talk]])
+
      |{{{display_name}}}
  }}
+
      |{{{adopter}}}
  |{{
+
    }}] ([[User talk:{{{adopter}}}|talk]])
    #ifeq: {{{isnotuser|no}}}|no
+
  }}
    |[[User:{{{author_name}}}|{{
+
  |{{
      #if: {{{display_name|}}}
+
    #ifeq: {{{isnotuser|no}}}|no
      |{{{display_name}}}
+
    |[[User:{{{adopter}}}|{{
      |{{{author_name}}}
+
      #if: {{{display_name|}}}
    }}]] ([[User talk:{{{author_name}}}|talk]])
+
      |{{{display_name}}}
    |{{#ifeq: {{{isnotuser|}}}|no||{{{author_name}}}  }}
+
      |{{{adopter}}}
   
+
    }}]] ([[User talk:{{{adopter}}}|talk]])
 +
    |{{#ifeq: {{{isnotuser|}}}|no||{{{adopter}}}  }}
 +
  }}
 +
}}
 +
|{{
 +
  #if: {{{url|}}}
 +
  |[{{{url}}}
 +
{{
 +
    #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|}}}
 +
|
 +
{{!}}-
 +
! Original Creator:
 +
{{!}} {{{author_name}}}
 
}}
 
}}
 
|-
 
|-
! Date Created:
+
{{#if:{{{date_adopted|}}}
| {{{date_created}}}
+
| ! Date Adopted:
 +
{{!}} {{{date_adopted|}}}
 +
| ! Date Created:
 +
{{!}} {{{date_created}}}
 +
}}
 
|-
 
|-
 
! Status:
 
! Status:
| {{{status}}}{{
+
| {{{status}}}
  #if: {{{editing|Please feel free to edit [[Constructive Editing (DnD Guideline)|constructively]]!}}}
+
{{#if: {{{editing|Please feel free to edit [[Constructive Editing (DnD Guideline)|constructively]]!}}}
 
   |<nowiki/>
 
   |<nowiki/>
 
{{!}}-
 
{{!}}-
 
! Editing:
 
! Editing:
 
{{!}} {{{editing|Please feel free to edit [[Constructive Editing (DnD Guideline)|constructively]]!}}}
 
{{!}} {{{editing|Please feel free to edit [[Constructive Editing (DnD Guideline)|constructively]]!}}}
 +
}}
 +
{{#if:{{{favor|}}}
 +
|
 +
{{!}}-
 +
! style="vertical-align:middle" {{!}} Rating:
 +
{{!}} style="vertical-align:middle;" {{!}}
 +
{{#switch:{{{favor}}}
 +
|1
 +
|2=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]] [[Category:Bronze Rated]]
 +
|3
 +
|4
 +
|5=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]] [[Category:Silver Rated]]
 +
|6
 +
|7
 +
|8
 +
|9=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]] [[Category:Gold Rated]]
 +
|Nominate this article to be rated
 +
}}
 +
|
 +
{{!}}-
 +
{{!}} 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>
 +
 +
}}
 +
{{#if:{{{img|}}}
 +
|
 +
{{!}}-
 +
{{!}} colspan="2" style="text-align:center;" {{!}} &nbsp;
 +
{{!}}-
 +
{{!}} colspan="2" style="text-align:center;" {{!}} [[Image:{{{img}}}{{!}}200px]]
 +
{{#if:{{{caption|}}}
 +
|
 +
{{!}}-
 +
{{!}} colspan="2" {{!}} {{{caption}}}
 +
}}
 +
 
}}
 
}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>

Revision as of 18:30, 13 August 2009

Examples

No Optional Params (Default)

Homebrew.png
Author: Sledged (talk)
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{Author
|author_name=Sledged
|date_created=2007-05-29
|status=Done for now
}}

display_name Param

Homebrew.png
Author: Your Lord and Master (talk)
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{Author
|author_name=Sledged
|display_name=Your Lord and Master
|date_created=2007-05-29
|status=Done for now
}}

isnotuser Param

Homebrew.png
Author: Sledged
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{Author
|author_name=Sledged
|isnotuser=I'm not a user!!
|date_created=2007-05-29
|status=Done for now
}}

url Param

Homebrew.png
Author: Sledged (talk)
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{Author
|author_name=Sledged
|url=http://www.dandwiki.com/wiki/User:Sledged
|date_created=2007-05-29
|status=Done for now
}}

display_name and isnotuser Params

Homebrew.png
Author: Your Lord and Master
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{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

Homebrew.png
Author: Your Lord and Master (talk)
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{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
}}

isnotuser and url Params

Homebrew.png
Author: Sledged
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{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
}}

display_name, isnotuser, and url Params

Homebrew.png
Author: Your Lord and Master
Date Created: 2007-05-29
Status: Done for now
Editing: Clarity edits only please
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{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
}}

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

editing Param

Homebrew.png
Author: Sledged (talk)
Date Created: 2007-05-29
Status: In progress...
Editing: Please ask before editing!
Rating box not supported outside of the main namespace.
Rate this article
Discuss this article
{{Author
|author_name=Sledged
|date_created=2007-05-29
|status=In progress...
|editing=Please ask before editing!
}}