Template:Abandoned: Difference between revisions
From FrathWiki
Jump to navigationJump to search
m (Bit myself on global replace again...) |
(Added usage notes) |
||
Line 2: | Line 2: | ||
!style="background:#CCCCFF;"| Author | !style="background:#CCCCFF;"| Author | ||
|- | |- | ||
|valign="top"| {{ #if: {{{username|}}} | [[User:{{{username|}}}|{{{realname|{{{username|}}} }}}]] | unknown}} {{#if: {{{username|}}} |  | [[User_talk:{{{username|}}}|{{{talk|Talk}}}]] |}} | |valign="top"| {{ #if: {{{username|}}} | [[User:{{{username|}}}|{{{realname|{{{username|}}} }}}]] | {{ #if: {{{realname|}}} | {{{realname|}}} | unknown}} }} | ||
{{#if: {{{username|}}} |  | [[User_talk:{{{username|}}}|{{{talk|Talk}}}]] |}} | |||
|- | |- | ||
!style="background:#CCCCFF;"| Status | !style="background:#CCCCFF;"| Status | ||
|- | |- | ||
|valign="top"| <span style="color:red">abandoned</span> {{ #if: {{{date|}}} | ({{{date|}}}) |}} | |valign="top"| <span style="color:red">abandoned</span> {{ #if: {{{date|}}} | ({{{date|}}}) |}} | ||
|} | |}<noinclude> | ||
This infobox template is used to mark a page as abandoned (no longer worked on). | |||
It is based on the box [[User:Muke|Muke]] made at [[Latin Pinyin]]. | |||
It takes the following parameters: | |||
* <tt>username</tt> e.g. <tt>bartman</tt> | |||
:— creates a link to the userpage of the named user. | |||
* <tt>realname</tt> e.g. <tt>Bart Simpson</tt> | |||
:— If defined this will show in the user page link instead of the user name. If <tt>realname</tt> is defined but <tt>username</tt> isn't <tt>realname</tt> will be shown without a link. | |||
* <tt>talk</tt> e.g. <tt>Talk to me!</tt> | |||
:&mdash will be shown as the text of a link to the user talk page of <tt>username</tt>. If <tt>username</tt> is defined and <tt>talk</tt> isn't the link text will be ''Talk''. | |||
* <tt>date</tt> e.g. <tt>2012</tt> or <tt>December 21, 2012</tt> or <tt>Because I lost interest</tt> | |||
:— will be shown in parentheses after the word ''abandoned'', and should contain the (approximate) date the article was abandoned and/or the reason it was abandoned. If <tt>date</tt> is not defined nothing will be shown after ''abandoned'', not even the parentheses. | |||
Thus | |||
<nowiki>{{Abandoned|username=Melroch|realname=BPJ|date=2007,<br>because I was done with it}}</nowiki> | |||
will be shown as here to the right. | |||
{{Abandoned|username=Melroch|realname=BPJ|date=2007,<br>because I was done with it}} | |||
Some people don't like named parameters, but as I see them they help to separate logical content from formatting, which IMHO is a Good Thing in a template. [[User:Melroch|BPJ]] 04:24, 5 January 2007 (PST)</noinclude> |
Revision as of 04:24, 5 January 2007
Author |
---|
unknown |
Status |
abandoned |
This infobox template is used to mark a page as abandoned (no longer worked on). It is based on the box Muke made at Latin Pinyin.
It takes the following parameters:
- username e.g. bartman
- — creates a link to the userpage of the named user.
- realname e.g. Bart Simpson
- — If defined this will show in the user page link instead of the user name. If realname is defined but username isn't realname will be shown without a link.
- talk e.g. Talk to me!
- &mdash will be shown as the text of a link to the user talk page of username. If username is defined and talk isn't the link text will be Talk.
- date e.g. 2012 or December 21, 2012 or Because I lost interest
- — will be shown in parentheses after the word abandoned, and should contain the (approximate) date the article was abandoned and/or the reason it was abandoned. If date is not defined nothing will be shown after abandoned, not even the parentheses.
Thus
{{Abandoned|username=Melroch|realname=BPJ|date=2007,<br>because I was done with it}}
will be shown as here to the right.
Author |
---|
BPJ
| Talk |
Status |
abandoned (2007, because I was done with it) |
Some people don't like named parameters, but as I see them they help to separate logical content from formatting, which IMHO is a Good Thing in a template. BPJ 04:24, 5 January 2007 (PST)