Difference between revisions of "Template:Author"
From Dungeons and Dragons Wiki
m (changed link for editing -- still red, but at least it's the right link now) |
Tarkisflux (talk | contribs) m (cleaned up code, unable to find bug killing new params) |
||
Line 1: | Line 1: | ||
− | <includeonly>{| cellspacing="0" cellpadding="0" class="toccolours author" style="{{{style|}}}" | + | <includeonly> |
+ | {| 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|}}} |
− | ! colspan="2" class="user" | {{#if:{{{adopter|}}} | + | |{{#if: {{{url|}}} |
− | |{{ | + | |[{{{url}}} {{#if: {{{isnotuser|}}} |
− | |||
− | |[{{{url}}} | ||
− | |||
− | |||
|{{{adopter}}}] | |{{{adopter}}}] | ||
− | |{{ | + | |{{#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|}}} | |
− | |[[User:{{{adopter}}}|{{ | ||
− | |||
|{{{display_name}}} | |{{{display_name}}} | ||
|{{{adopter}}} | |{{{adopter}}} | ||
}}]] ([[User talk:{{{adopter}}}|talk]]) | }}]] ([[User talk:{{{adopter}}}|talk]]) | ||
− | |{{#ifeq: {{{isnotuser|}}}|no||{{{adopter}}} | + | |{{#ifeq: {{{isnotuser|}}}|no||{{{adopter}}} |
+ | }} | ||
}} | }} | ||
}} | }} | ||
− | |{{ | + | |{{#if: {{{url|}}} |
− | |||
|[{{{url}}} | |[{{{url}}} | ||
− | + | {{#if: {{{isnotuser|}}} | |
− | |||
|{{{author_name}}}] | |{{{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}}}|no |
− | + | |[[User:{{{author_name}}}|{{#if: {{{display_name|}}} | |
− | |[[User:{{{author_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: | ||
− | |||
}} | }} | ||
+ | |||
|- | |- | ||
{{#if:{{{date_adopted|}}} | {{#if:{{{date_adopted|}}} | ||
− | | ! Date Adopted: | + | | ! Date Adopted:{{!}} {{{date_adopted|}}} |
− | + | | ! Date Created:{{!}} {{{date_created}}} | |
− | | ! Date Created: | + | }} |
− | {{!}} {{{ | + | |
+ | |- | ||
+ | {{#if:{{{level|}}} | ||
+ | | {{!}}- | ||
+ | ! Level:{{!}} {{{level}}} | ||
}} | }} | ||
+ | |||
|- | |- | ||
! 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/> | |
− | {{!}}- | + | {{!}}- |
− | ! Editing: | + | ! Editing: {{!}} {{{editing|Please feel free to edit [[Dungeons and Dragons Wiki:Constructive Editing|constructively]]!}}} |
− | {{!}} {{{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;" {{!}} |
− | |||
− | |||
− | |||
{{#switch:{{{favor}}} | {{#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;" {{!}} <!-- Problems :\ --> | {{!}} colspan="2" style="text-align:center;" {{!}} <!-- Problems :\ --> | ||
}} | }} | ||
+ | |||
+ | |- | ||
{{#if:{{{img|}}} | {{#if:{{{img|}}} | ||
− | | | + | | {{!}}- |
− | |||
{{!}} colspan="2" style="text-align:center;" {{!}} | {{!}} colspan="2" style="text-align:center;" {{!}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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}}} | |
− | |||
}} | }} | ||
− | |||
}} | }} | ||
− | |}</includeonly><noinclude> | + | |
+ | |} </includeonly> | ||
+ | |||
+ | <noinclude> | ||
<!-- <span class="plainlinks">[[{{fullurl:RC:Nominations|action=edit§ion=new&editintro=Rating+Formatting+Instructions&preload=Rating+Preload }} Nominate this article to be rated]]</span> --> | <!-- <span class="plainlinks">[[{{fullurl:RC:Nominations|action=edit§ion=new&editintro=Rating+Formatting+Instructions&preload=Rating+Preload }} Nominate this article to be rated]]</span> --> | ||
===Examples=== | ===Examples=== | ||
Line 117: | Line 110: | ||
|date_created=2007-05-29 | |date_created=2007-05-29 | ||
|status=Done for now | |status=Done for now | ||
+ | |favor=2 | ||
+ | |level=Monk | ||
}} | }} | ||
<nowiki>{{Author | <nowiki>{{Author | ||
Line 122: | Line 117: | ||
|date_created=2007-05-29 | |date_created=2007-05-29 | ||
|status=Done for now | |status=Done for now | ||
+ | |favor=2 | ||
+ | |level=Monk | ||
}}</nowiki> | }}</nowiki> | ||
Revision as of 07:05, 23 September 2009
Contents
Examples
No Optional Params (Default)
| |||||||||
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 |favor=2 |level=Monk }}
display_name Param
| |||||||||
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
| |||||||||
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
| |||||||||
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
| |||||||||
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
| |||||||||
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
| |||||||||
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
| |||||||||
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
| |||||||||
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! }}