Åtgärder

Mall

Skillnad mellan versioner av "Draft article"

Från DAU-handboken

m (1 version importerades)
Rad 1: Rad 1:
<includeonly>{{Namespace detect|
<noinclude>
|main={{if preview|{{Error|Do not use {{tl|Draft article}} in mainspace}}|}}
<languages />
|other={{#ifeq:{{{catonly|}}}|yes||{{mbox
</noinclude>{{#switch:<translate></translate>
| name = Draft article
| =
| image = [[File:Under_construction_icon-blue.svg|40px|alt=|link=]]
{{mbox
| text = <center>{{Draft article check}}</center>'''This is a [[WP:Drafts|draft article]]'''. It is a work in progress [[WP:BOLD|open to editing]] by [[WP:ANYONE|anyone]]. Please ensure [[WP:CCPOL|core content policies]] are met before publishing it as a  [[WP:ARTICLE|live Wikipedia article]]{{#if:{{{1|}}}|{{sp}}at [[{{{1}}}]]}}.{{sp}}{{{text|}}}{{#ifeq:{{{brief|}}}|yes||
  |image   = [[File:Under construction icon-blue.svg|50px]]
<div style="font-size: 85%">
|text   = '''<translate><!--T:1--> This page is currently a draft.</translate>'''<br /><!--
----
--><translate><!--T:2--> More information and discussion about changes to this draft may be on the [<tvar|url>{{{discussion|{{fullurl:{{TALKPAGENAME}}}}}}}</> discussion page].</translate>{{#if: {{{note|{{{1|}}}}}}|<br />{{{note|{{{1|}}}}}}|}}
{{find sources}}<br>
}}
{{automated tools}}{{·}}{{Wikipedia logs|note={{{lognotes|}}}}}.
| #default=
----
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Draft|noshift=1}}
</div>}}{{#ifeq:{{{brief|}}}|yes|<span style=font-size:85%>|{{clear}}<div style="float:left; font-size:85%;">}}{{last edited by|brief=yes}}{{#ifeq:{{{brief|}}}|yes|</span>|</div>}}{{#ifeq:{{{brief|}}}|yes||<div style=float:right>}}
}}<noinclude>
{{Namespace detect showall|1={{#ifeq:{{{brief|}}}|yes||{{#invoke:AFC submission catcheck|submitted|This draft has been submitted and is currently awaiting review.|{{#if:{{REVISIONID}}<noinclude>0</noinclude>|{{Clickable button 2|Finished drafting? Submit for review!|url={{fullurl:{{FULLPAGENAME}}|action=edit&veswitched=0&section=new&nosummary=1&preload=Template:AFC_submission/Subst&editintro=Template:AFC_submission/Subst/Editintro}}|class=mw-ui-progressive|style=style=line-height: 1.6em; padding: 0 1.6em 0 1.6em}}|Save your work by pressing the "<bdi>{{int:Publishpage}}</bdi>" button below, and a button will appear here allowing you to submit your draft for review.}}}}}}|draft=1|other={{#ifeq:{{{demo|<noinclude>yes</noinclude>}}}|yes|1}}}}{{#ifeq:{{{brief|}}}|yes||</div>}}}}{{#if:{{{join-in|}}}|{{mbox|text='''Join in and [[WP:BOLD|help expand this draft]]!'''}}}}{{#ifeq:{{{demo|}}}|yes||[[Category:{{#switch:{{lc:{{{subject|}}}}}
[[Category:Templates{{#translation:}}]]<templatedata>
|agriculture|food|drink|agriculture, food, and drink=Drafts about agriculture, food, and drink
{
|art|architecture|art and architecture=Drafts about art and architecture
"params": {
|engineering|technology|engineering and technology=Drafts about engineering and technology
"note": {
|geography|places|geography and places=Drafts about geography and places
"aliases": [
|history=Drafts about history
"1"
|language|literature|language and literature=Drafts about language and literature
],
|math|mathematics=Drafts about mathematics
"label": "Note",
|media|drama|media and drama=Drafts about media and drama
"description": "An extra note displayed on a second line within the message box.",
|music=Drafts about music
"type": "string"
|natural sciences=Drafts about natural sciences
},
|philosophy|religion|philosophy and religion=Drafts about philosophy and religion
"discussion": {
|social sciences|society|social sciences and society=Drafts about social sciences and society
"label": "Discussion url",
|sports|recreation|sports and recreation=Drafts about sports and recreation
"description": "Custom url for the discussion link.",
|video games=Drafts about video games
"type": "url",
|warfare=Drafts about warfare
"default": "Talk page url"
|#default=Draft articles}}|{{PAGENAME}}]]}}{{NOINDEX}}}}}}</includeonly><noinclude>{{Documentation}}
}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES/doc SUBPAGE AND INTERWIKIS TO THE WIKIDATA, THANKS -->
},
"paramOrder": [
"discussion",
"note"
]
}
</templatedata>
</noinclude>
</noinclude>

Versionen från 15 maj 2019 kl. 07.25

<languages /> {{#switch:<translate></translate> | = Skriptfel: Modulen "Message box" finns inte. | #default=

 Skriptfel: Modulen "Template translation" finns inte.

}} [[Category:Templates{{#translation:}}]]<templatedata> { "params": { "note": { "aliases": [ "1" ], "label": "Note", "description": "An extra note displayed on a second line within the message box.", "type": "string" }, "discussion": { "label": "Discussion url", "description": "Custom url for the discussion link.", "type": "url", "default": "Talk page url" } }, "paramOrder": [ "discussion", "note" ] } </templatedata>