Difference between revisions of "Template:Author"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m
m (Something broke, reverting to Surgo's last)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}"
{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}"
 
 
|+ {{#if:{{{adopter|}}}|Adopted By|Created By}}
 
|+ {{#if:{{{adopter|}}}|Adopted By|Created By}}
|- ! colspan="2" class="user" | {{#if:{{{adopter|}}}
+
|-
|{{#if: {{{url|}}}
+
! colspan="2" class="user" | {{#if:{{{adopter|}}}
  |[{{{url}}} {{#if: {{{isnotuser|}}}
+
|{{
 +
  #if: {{{url|}}}
 +
  |[{{{url}}}  
 +
{{
 +
    #if: {{{isnotuser|}}}
 
    |{{{adopter}}}]
 
    |{{{adopter}}}]
    |{{#if: {{{display_name|}}}
+
    |{{
 +
      #if: {{{display_name|}}}
 
      |{{{display_name}}}
 
      |{{{display_name}}}
 
      |{{{adopter}}}
 
      |{{{adopter}}}
 
    }}] ([[User talk:{{{adopter}}}|talk]])
 
    }}] ([[User talk:{{{adopter}}}|talk]])
 
  }}
 
  }}
  |{{#ifeq: {{{isnotuser|no}}}|no
+
  |{{
    |[[User:{{{adopter}}}|{{#if: {{{display_name|}}}
+
    #ifeq: {{{isnotuser|no}}}|no
 +
    |[[User:{{{adopter}}}|{{
 +
      #if: {{{display_name|}}}
 
      |{{{display_name}}}
 
      |{{{display_name}}}
 
      |{{{adopter}}}
 
      |{{{adopter}}}
 
    }}]] ([[User talk:{{{adopter}}}|talk]])
 
    }}]] ([[User talk:{{{adopter}}}|talk]])
    |{{#ifeq: {{{isnotuser|}}}|no||{{{adopter}}}
+
    |{{#ifeq: {{{isnotuser|}}}|no||{{{adopter}}} }}
    }}
 
 
  }}
 
  }}
 
}}
 
}}
|{{#if: {{{url|}}}
+
|{{
 +
  #if: {{{url|}}}
 
  |[{{{url}}}  
 
  |[{{{url}}}  
    {{#if: {{{isnotuser|}}}
+
{{
 +
    #if: {{{isnotuser|}}}
 
    |{{{author_name}}}]
 
    |{{{author_name}}}]
    |{{#if: {{{display_name|}}}
+
    |{{
 +
      #if: {{{display_name|}}}
 
      |{{{display_name}}}
 
      |{{{display_name}}}
 
      |{{{author_name}}}
 
      |{{{author_name}}}
 
    }}] ([[User talk:{{{author_name}}}|talk]])
 
    }}] ([[User talk:{{{author_name}}}|talk]])
 
  }}
 
  }}
  |{{#ifeq: {{{isnotuser|no}}}|no
+
  |{{
    |[[User:{{{author_name}}}|{{#if: {{{display_name|}}}
+
    #ifeq: {{{isnotuser|no}}}|no
 +
    |[[User:{{{author_name}}}|{{
 +
      #if: {{{display_name|}}}
 
      |{{{display_name}}}
 
      |{{{display_name}}}
 
      |{{{author_name}}}
 
      |{{{author_name}}}
 
    }}]] ([[User talk:{{{author_name}}}|talk]])
 
    }}]] ([[User talk:{{{author_name}}}|talk]])
 
    |{{#ifeq: {{{isnotuser|}}}|no||{{{author_name}}}  }}
 
    |{{#ifeq: {{{isnotuser|}}}|no||{{{author_name}}}  }}
 +
   
 +
 
  }}
 
  }}
 
}}
 
}}
 
}}
 
}}
 
|-
 
 
{{#if:{{{adopter|}}}
 
{{#if:{{{adopter|}}}
| {{!}}-
+
|
! Original Creator:{{!}} {{{author_name}}}
+
{{!}}-
 +
! Original Creator:
 +
{{!}} {{{author_name}}}
 
}}
 
}}
 
 
|-
 
|-
 
{{#if:{{{date_adopted|}}}
 
{{#if:{{{date_adopted|}}}
| ! Date Adopted:{{!}} {{{date_adopted|}}}
+
| ! Date Adopted:
| ! Date Created:{{!}} {{{date_created}}}
+
{{!}} {{{date_adopted|}}}
 +
| ! Date Created:
 +
{{!}} {{{date_created}}}
 
}}
 
}}
 
|-
 
{{#if:{{{balance|}}}
 
| {{!}}-
 
! Balance:{{!}} {{{balance}}}
 
}}
 
 
 
|-
 
|-
 
! Status:
 
! Status:
 
| {{{status}}}
 
| {{{status}}}
 
{{#if: {{{editing|Please feel free to edit [[Dungeons and Dragons Wiki:Constructive Editing|constructively]]!}}}
 
{{#if: {{{editing|Please feel free to edit [[Dungeons and Dragons Wiki:Constructive Editing|constructively]]!}}}
|<nowiki/>  
+
  |<nowiki/>
{{!}}-
+
{{!}}-
! Editing: {{!}} {{{editing|Please feel free to edit [[Dungeons and Dragons Wiki:Constructive Editing|constructively]]!}}}
+
! Editing:
 +
{{!}} {{{editing|Please feel free to edit [[Dungeons and Dragons Wiki:Constructive Editing|constructively]]!}}}
 
}}
 
}}
 
|-
 
 
{{#if:{{{favor|}}}
 
{{#if:{{{favor|}}}
|{{!}}- ! style="vertical-align:middle" {{!}} Rating: {{!}} style="vertical-align:middle;" {{!}}  
+
|
 +
{{!}}-
 +
! style="vertical-align:middle" {{!}} Rating:  
 +
{{!}} style="vertical-align:middle;" {{!}}  
 
{{#switch:{{{favor}}}
 
{{#switch:{{{favor}}}
  |1
+
|1
  |2=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]] [[Category:Bronze Rated]]  
+
|2=This article is rated Bronze! [[Image:Bronzestar.png{{!}}25px]] [[Category:Bronze Rated]]
  |3
+
|3
  |4
+
|4
  |5=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]] [[Category:Silver Rated]]
+
|5=This article is rated Silver! [[Image:Silverstar.png{{!}}25px]] [[Category:Silver Rated]]
  |6
+
|6
  |7
+
|7
  |8
+
|8
  |9=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]] [[Category:Gold Rated]]
+
|9=This article is rated Gold! [[Image:Goldstar.png{{!}}25px]] [[Category:Gold Rated]]
  |Nominate this article to be rated
+
|Nominate this article to be rated
 
}}
 
}}
| {{!}}-  
+
|
 +
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} <!-- Problems :\ -->
 
{{!}} colspan="2" style="text-align:center;" {{!}} <!-- Problems :\ -->
  
 
}}
 
}}
 
|-
 
 
{{#if:{{{img|}}}
 
{{#if:{{{img|}}}
| {{!}}-  
+
|
 +
{{!}}-  
 
{{!}} colspan="2" style="text-align:center;" {{!}} &nbsp;
 
{{!}} colspan="2" style="text-align:center;" {{!}} &nbsp;
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} [[Image:{{{img}}}{{!}}{{{imgsize|200px}}}]]
 
{{!}} colspan="2" style="text-align:center;" {{!}} [[Image:{{{img}}}{{!}}{{{imgsize|200px}}}]]
 
{{#if:{{{caption|}}}
 
{{#if:{{{caption|}}}
  | {{!}}-
+
|
  {{!}} colspan="2" {{!}} {{{caption}}}
+
{{!}}-
 +
{{!}} colspan="2" {{!}} {{{caption}}}
 
}}
 
}}
 +
 
}}
 
}}
 
+
|}</includeonly><noinclude>
|} </includeonly>
 
 
 
<noinclude>
 
 
<!-- <span class="plainlinks">[[{{fullurl:RC:Nominations|action=edit&section=new&editintro=Rating+Formatting+Instructions&preload=Rating+Preload }} Nominate this article to be rated]]</span> -->
 
<!-- <span class="plainlinks">[[{{fullurl:RC:Nominations|action=edit&section=new&editintro=Rating+Formatting+Instructions&preload=Rating+Preload }} Nominate this article to be rated]]</span> -->
 
===Examples===
 
===Examples===
Line 109: Line 116:
 
|author_name=Sledged
 
|author_name=Sledged
 
|date_created=2007-05-29
 
|date_created=2007-05-29
|balance=Monk
 
 
|status=Done for now
 
|status=Done for now
|favor=2
 
 
}}
 
}}
 
  <nowiki>{{Author
 
  <nowiki>{{Author
 
|author_name=Sledged
 
|author_name=Sledged
 
|date_created=2007-05-29
 
|date_created=2007-05-29
|balance=Monk
 
 
|status=Done for now
 
|status=Done for now
|favor=2
 
 
 
}}</nowiki>
 
}}</nowiki>
  

Revision as of 07:23, 23 September 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!
}}